summaryrefslogtreecommitdiff
path: root/kernel/rtl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/rtl/Makefile')
-rw-r--r--kernel/rtl/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/rtl/Makefile b/kernel/rtl/Makefile
new file mode 100644
index 0000000..1767c0a
--- /dev/null
+++ b/kernel/rtl/Makefile
@@ -0,0 +1,19 @@
+CC= gcc
+CFLAGS= -Wall -imacros ../defines -I../inc
+OBJS= string.o memory.o
+RM= /bin/rm
+NASM= nasm
+NASMFLAGS=
+
+.SUFFIXES: .c .o .asm
+
+all: $(OBJS)
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+.asm.o:
+ $(NASM) $(NASMFLAGS) -o $*.o $<
+
+clean:
+ $(RM) -f $(OBJS) *~ #*# .#*