aboutsummaryrefslogtreecommitdiff
path: root/linux/mm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'linux/mm/Makefile')
-rw-r--r--linux/mm/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/linux/mm/Makefile b/linux/mm/Makefile
new file mode 100644
index 0000000..cee1f09
--- /dev/null
+++ b/linux/mm/Makefile
@@ -0,0 +1,37 @@
+CC =gcc
+CFLAGS =-O -Wall -fstrength-reduce -fcombine-regs -fomit-frame-pointer \
+ -finline-functions -nostdinc -I../include
+AS =gas
+AR =gar
+LD =gld
+CPP =gcc -E -nostdinc -I../include
+
+.c.o:
+ $(CC) $(CFLAGS) \
+ -c -o $*.o $<
+.s.o:
+ $(AS) -o $*.o $<
+.c.s:
+ $(CC) $(CFLAGS) \
+ -S -o $*.s $<
+
+OBJS = memory.o page.o
+
+all: mm.o
+
+mm.o: $(OBJS)
+ $(LD) -r -o mm.o $(OBJS)
+
+clean:
+ rm -f core *.o *.a tmp_make
+ for i in *.c;do rm -f `basename $$i .c`.s;done
+
+dep:
+ sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
+ (for i in *.c;do $(CPP) -M $$i;done) >> tmp_make
+ cp tmp_make Makefile
+
+### Dependencies:
+memory.o : memory.c ../include/signal.h ../include/sys/types.h \
+ ../include/linux/config.h ../include/linux/head.h ../include/linux/kernel.h \
+ ../include/asm/system.h