|
|
1.1.1.7 root 1: #
2: # Makefile for the linux memory manager.
3: #
4: # Note! Dependencies are done automagically by 'make dep', which also
5: # removes any old dependencies. DON'T put your own dependencies here
6: # unless it's something special (ie not a .c file).
7: #
8: # Note 2! The CFLAGS definition is now in the main makefile...
9:
1.1.1.5 root 10: AS =as
11: AR =ar
12: LD =ld
1.1.1.7 root 13: CC =gcc -nostdinc -I../include
14: CPP =cpp -nostdinc -I../include
1.1 root 15:
16: .c.o:
17: $(CC) $(CFLAGS) \
18: -c -o $*.o $<
19: .s.o:
20: $(AS) -o $*.o $<
21: .c.s:
22: $(CC) $(CFLAGS) \
23: -S -o $*.s $<
24:
1.1.1.8 root 25: OBJS = memory.o swap.o mmap.o
1.1 root 26:
27: mm.o: $(OBJS)
28: $(LD) -r -o mm.o $(OBJS)
29:
30: clean:
31: rm -f core *.o *.a tmp_make
32: for i in *.c;do rm -f `basename $$i .c`.s;done
33:
34: dep:
35: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
36: (for i in *.c;do $(CPP) -M $$i;done) >> tmp_make
37: cp tmp_make Makefile
38:
39: ### Dependencies:
1.1.1.8 root 40: memory.o : memory.c ../include/signal.h ../include/sys/types.h ../include/asm/system.h \
41: ../include/linux/sched.h ../include/linux/head.h ../include/linux/fs.h ../include/sys/dirent.h \
1.1.1.9 ! root 42: ../include/limits.h ../include/sys/vfs.h ../include/linux/mm.h ../include/linux/kernel.h \
! 43: ../include/sys/param.h ../include/sys/time.h ../include/time.h ../include/sys/resource.h
! 44: mmap.o : mmap.c ../include/linux/stat.h ../include/linux/sched.h ../include/linux/head.h \
! 45: ../include/linux/fs.h ../include/sys/types.h ../include/sys/dirent.h ../include/limits.h \
! 46: ../include/sys/vfs.h ../include/linux/mm.h ../include/linux/kernel.h ../include/signal.h \
! 47: ../include/sys/param.h ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
! 48: ../include/asm/segment.h ../include/asm/system.h ../include/errno.h ../include/sys/mman.h
! 49: swap.o : swap.c ../include/errno.h ../include/linux/stat.h ../include/linux/mm.h \
! 50: ../include/linux/fs.h ../include/sys/types.h ../include/sys/dirent.h ../include/limits.h \
! 51: ../include/sys/vfs.h ../include/linux/kernel.h ../include/signal.h ../include/linux/string.h \
! 52: ../include/linux/sched.h ../include/linux/head.h ../include/sys/param.h ../include/sys/time.h \
! 53: ../include/time.h ../include/sys/resource.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.