Annotation of linux/lib/Makefile, revision 1.1.1.3

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: 
                      9: AR     =gar
                     10: AS     =gas
                     11: LD     =gld
                     12: LDFLAGS        =-s -x
                     13: CC     =gcc
                     14: CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \
                     15:        -finline-functions -mstring-insns -nostdinc -I../include
                     16: CPP    =gcc -E -nostdinc -I../include
                     17: 
                     18: .c.s:
                     19:        $(CC) $(CFLAGS) \
                     20:        -S -o $*.s $<
                     21: .s.o:
                     22:        $(AS) -c -o $*.o $<
                     23: .c.o:
                     24:        $(CC) $(CFLAGS) \
                     25:        -c -o $*.o $<
                     26: 
                     27: OBJS  = ctype.o _exit.o open.o close.o errno.o write.o dup.o setsid.o \
1.1.1.3 ! root       28:        execve.o wait.o string.o malloc.o
1.1       root       29: 
                     30: lib.a: $(OBJS)
                     31:        $(AR) rcs lib.a $(OBJS)
                     32:        sync
                     33: 
                     34: clean:
                     35:        rm -f core *.o *.a tmp_make
                     36:        for i in *.c;do rm -f `basename $$i .c`.s;done
                     37: 
                     38: dep:
                     39:        sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
                     40:        (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
                     41:                $(CPP) -M $$i;done) >> tmp_make
                     42:        cp tmp_make Makefile
                     43: 
                     44: ### Dependencies:
1.1.1.2   root       45: _exit.s _exit.o : _exit.c ../include/unistd.h ../include/sys/stat.h \
                     46:   ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
                     47:   ../include/utime.h 
                     48: close.s close.o : close.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: ctype.s ctype.o : ctype.c ../include/ctype.h 
                     52: dup.s dup.o : dup.c ../include/unistd.h ../include/sys/stat.h \
                     53:   ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
                     54:   ../include/utime.h 
                     55: errno.s errno.o : errno.c 
                     56: execve.s execve.o : execve.c ../include/unistd.h ../include/sys/stat.h \
                     57:   ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
                     58:   ../include/utime.h 
1.1.1.3 ! root       59: malloc.s malloc.o : malloc.c ../include/linux/kernel.h ../include/linux/mm.h \
        !            60:   ../include/asm/system.h 
1.1.1.2   root       61: open.s open.o : open.c ../include/unistd.h ../include/sys/stat.h \
                     62:   ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
                     63:   ../include/utime.h ../include/stdarg.h 
                     64: setsid.s setsid.o : setsid.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 
                     67: string.s string.o : string.c ../include/string.h 
                     68: wait.s wait.o : wait.c ../include/unistd.h ../include/sys/stat.h \
                     69:   ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \
                     70:   ../include/utime.h ../include/sys/wait.h 
                     71: write.s write.o : write.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 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.