summaryrefslogtreecommitdiff
path: root/kernel/init/Makefile
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2016-06-01 19:37:09 -0700
committerScott Gasch <[email protected]>2016-06-01 19:37:09 -0700
commit0a41dae5f406d498b5c9ab1542cb5660e0d982f6 (patch)
tree67ade9fe31cfd0458cc485e95550f7aaf14abdd1 /kernel/init/Makefile
Initial checkin of toy OS project.HEADmaster
Diffstat (limited to 'kernel/init/Makefile')
-rw-r--r--kernel/init/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/init/Makefile b/kernel/init/Makefile
new file mode 100644
index 0000000..815dc69
--- /dev/null
+++ b/kernel/init/Makefile
@@ -0,0 +1,20 @@
+CC= gcc
+CFLAGS= -Wall -imacros ../defines -I../inc
+OBJS= main.o entry.o
+RM= /bin/rm
+NASM= nasm
+NASMFLAGS= -f elf
+
+.SUFFIXES: .c .asm .o
+
+all: $(OBJS)
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+.asm.o:
+ $(NASM) $(NASMFLAGS) -o $*.o $<
+
+clean:
+ $(RM) -f $(OBJS) *~ #*# .#*
+