|
|
1.1 root 1: #
2: # Makefile for the linux networking.
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:
10: AS =as
11: AR =ar
12: LD =ld
13: CC =gcc -nostdinc -I../include -Wall # -DSOCK_DEBUG
14: CPP =cpp -nostdinc -I../include
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:
25: OBJS = socket.o unix.o
26:
27: net.o: $(OBJS)
28: $(LD) -r -o net.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:
40: socket.o : socket.c ../include/signal.h ../include/sys/types.h ../include/errno.h \
41: ../include/linux/sched.h ../include/linux/head.h ../include/linux/fs.h ../include/sys/dirent.h \
42: ../include/limits.h ../include/linux/mm.h ../include/linux/kernel.h ../include/sys/param.h \
43: ../include/sys/time.h ../include/time.h ../include/sys/resource.h ../include/asm/system.h \
44: ../include/asm/segment.h ../include/sys/socket.h ../include/sys/stat.h ../include/fcntl.h \
45: ../include/termios.h kern_sock.h socketcall.h
46: unix.o : unix.c ../include/signal.h ../include/sys/types.h ../include/errno.h \
47: ../include/linux/string.h ../include/linux/sched.h ../include/linux/head.h ../include/linux/fs.h \
48: ../include/sys/dirent.h ../include/limits.h ../include/linux/mm.h ../include/linux/kernel.h \
49: ../include/sys/param.h ../include/sys/time.h ../include/time.h ../include/sys/resource.h \
50: ../include/asm/system.h ../include/asm/segment.h ../include/sys/socket.h ../include/sys/un.h \
51: ../include/sys/stat.h ../include/fcntl.h ../include/termios.h kern_sock.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.