1 CC =gcc
2 CFLAGS =-O -Wall -fstrength-reduce -fcombine-regs -fomit-frame-pointer \
3 -finline-functions -nostdinc -I../include
4 AS =gas
5 AR =gar
6 LD =gld
7 CPP =gcc -E -nostdinc -I../include
8
9 .c.o:
10 $(CC) $(CFLAGS) \
11 -c -o $*.o $<
12 .s.o:
13 $(AS) -o $*.o $<
14 .c.s:
15 $(CC) $(CFLAGS) \
16 -S -o $*.s $<
17
18 OBJS = memory.o page.o
19
20 all: mm.o
21
22 mm.o: $(OBJS)
23 $(LD) -r -o mm.o $(OBJS)
24
25 clean:
26 rm -f core *.o *.a tmp_make
27 for i in *.c;do rm -f `basename $$i .c`.s;done
28
29 dep:
30 sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
31 (for i in *.c;do $(CPP) -M $$i;done) >> tmp_make
32 cp tmp_make Makefile
33
34 ### Dependencies:
35 memory.o : memory.c ../include/signal.h ../include/sys/types.h \
36 ../include/asm/system.h ../include/linux/sched.h ../include/linux/head.h \
37 ../include/linux/fs.h ../include/linux/mm.h ../include/linux/kernel.h
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.