|
|
1.1 root 1: #
2: # Makefile for some libs needed in the kernel.
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:
1.1.1.4 ! root 9: # gcc2 doesn't understand some options..
! 10: # GCC_OPT = -fcombine-regs
! 11:
! 12: AR =ar
! 13: AS =as
! 14: LD =ld
1.1 root 15: LDFLAGS =-s -x
16: CC =gcc
1.1.1.4 ! root 17: CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer $(GCC_OPT) \
! 18: -finline-functions -nostdinc -I../include
1.1 root 19: CPP =gcc -E -nostdinc -I../include
20:
21: .c.s:
22: $(CC) $(CFLAGS) \
23: -S -o $*.s $<
24: .s.o:
25: $(AS) -c -o $*.o $<
26: .c.o:
27: $(CC) $(CFLAGS) \
28: -c -o $*.o $<
29:
30: OBJS = ctype.o _exit.o open.o close.o errno.o write.o dup.o setsid.o \
1.1.1.3 root 31: execve.o wait.o string.o malloc.o
1.1 root 32:
33: lib.a: $(OBJS)
34: $(AR) rcs lib.a $(OBJS)
35: sync
36:
37: clean:
38: rm -f core *.o *.a tmp_make
39: for i in *.c;do rm -f `basename $$i .c`.s;done
40:
41: dep:
42: sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
43: (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
44: $(CPP) -M $$i;done) >> tmp_make
45: cp tmp_make Makefile
46:
47: ### Dependencies:
1.1.1.2 root 48: _exit.s _exit.o : _exit.c ../include/unistd.h ../include/sys/stat.h \
49: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
50: ../include/utime.h
51: close.s close.o : close.c ../include/unistd.h ../include/sys/stat.h \
52: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
53: ../include/utime.h
54: ctype.s ctype.o : ctype.c ../include/ctype.h
55: dup.s dup.o : dup.c ../include/unistd.h ../include/sys/stat.h \
56: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
57: ../include/utime.h
58: errno.s errno.o : errno.c
59: execve.s execve.o : execve.c ../include/unistd.h ../include/sys/stat.h \
60: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
61: ../include/utime.h
1.1.1.3 root 62: malloc.s malloc.o : malloc.c ../include/linux/kernel.h ../include/linux/mm.h \
63: ../include/asm/system.h
1.1.1.2 root 64: open.s open.o : open.c ../include/unistd.h ../include/sys/stat.h \
65: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
66: ../include/utime.h ../include/stdarg.h
67: setsid.s setsid.o : setsid.c ../include/unistd.h ../include/sys/stat.h \
68: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
69: ../include/utime.h
70: string.s string.o : string.c ../include/string.h
71: wait.s wait.o : wait.c ../include/unistd.h ../include/sys/stat.h \
72: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
73: ../include/utime.h ../include/sys/wait.h
74: write.s write.o : write.c ../include/unistd.h ../include/sys/stat.h \
75: ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
76: ../include/utime.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.