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