Annotation of linux/net/Makefile, revision 1.1.1.5

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: 
1.1.1.5 ! root       10: # only these two lines should need to be changed to remove inet sockets.
        !            11: # (and the tcp/tcpip.o in net.o)
        !            12: 
        !            13: SUBDIRS                =# tcp
        !            14: SOCK_FLAGS     =# -DINET_SOCKETS
        !            15: 
1.1       root       16: .c.o:
1.1.1.5 ! root       17:        $(CC) $(CFLAGS) $(SOCK_FLAGS) -c $<
1.1       root       18: .s.o:
                     19:        $(AS) -o $*.o $<
                     20: .c.s:
1.1.1.3   root       21:        $(CC) $(CFLAGS) -S $<
1.1       root       22: 
1.1.1.5 ! root       23: OBJS   =  socket.o unix.o 
        !            24: 
        !            25: net.o: $(OBJS) subdirs
        !            26:        $(LD) -r -o net.o $(OBJS)# tcp/tcpip.o
1.1       root       27: 
1.1.1.5 ! root       28: 
        !            29: subdirs: dummy
        !            30:        for i in $(SUBDIRS); do (cd $$i && echo $$i && $(MAKE)) || exit; done
1.1       root       31: 
                     32: clean:
                     33:        rm -f core *.o *.a tmp_make
                     34:        for i in *.c;do rm -f `basename $$i .c`.s;done
1.1.1.5 ! root       35:        @for i in $(SUBDIRS); do (cd $$i && echo $$i && $(MAKE) clean) || exit; done
1.1       root       36: 
                     37: dep:
                     38:        sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
1.1.1.5 ! root       39:        $(CPP) -M *.c >> tmp_make
1.1       root       40:        cp tmp_make Makefile
1.1.1.5 ! root       41:        @for i in $(SUBDIRS); do (cd $$i && echo $$i && $(MAKE) dep) || exit; done
        !            42: 
        !            43: dummy:
1.1       root       44: 
                     45: ### Dependencies:
1.1.1.5 ! root       46: socket.o : socket.c /usr/include/linux/signal.h /usr/include/linux/errno.h /usr/include/linux/sched.h \
        !            47:   /usr/include/linux/head.h /usr/include/linux/fs.h /usr/include/linux/limits.h \
        !            48:   /usr/include/linux/wait.h /usr/include/linux/types.h /usr/include/linux/dirent.h \
        !            49:   /usr/include/linux/vfs.h /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h \
        !            50:   /usr/include/linux/ext_fs_i.h /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h \
        !            51:   /usr/include/linux/ext_fs_sb.h /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h \
        !            52:   /usr/include/linux/kernel.h /usr/include/linux/time.h /usr/include/linux/param.h \
        !            53:   /usr/include/linux/resource.h /usr/include/linux/vm86.h /usr/include/linux/stat.h \
        !            54:   /usr/include/linux/socket.h /usr/include/linux/fcntl.h /usr/include/linux/termios.h \
        !            55:   /usr/include/asm/system.h /usr/include/asm/segment.h kern_sock.h socketcall.h 
        !            56: unix.o : unix.c /usr/include/linux/signal.h /usr/include/linux/sched.h /usr/include/linux/head.h \
        !            57:   /usr/include/linux/fs.h /usr/include/linux/limits.h /usr/include/linux/wait.h \
        !            58:   /usr/include/linux/types.h /usr/include/linux/dirent.h /usr/include/linux/vfs.h \
        !            59:   /usr/include/linux/pipe_fs_i.h /usr/include/linux/minix_fs_i.h /usr/include/linux/ext_fs_i.h \
        !            60:   /usr/include/linux/msdos_fs_i.h /usr/include/linux/minix_fs_sb.h /usr/include/linux/ext_fs_sb.h \
        !            61:   /usr/include/linux/msdos_fs_sb.h /usr/include/linux/mm.h /usr/include/linux/kernel.h \
        !            62:   /usr/include/linux/time.h /usr/include/linux/param.h /usr/include/linux/resource.h \
        !            63:   /usr/include/linux/vm86.h /usr/include/linux/errno.h /usr/include/linux/string.h \
        !            64:   /usr/include/linux/stat.h /usr/include/linux/socket.h /usr/include/linux/un.h \
        !            65:   /usr/include/linux/fcntl.h /usr/include/linux/termios.h /usr/include/asm/system.h \
        !            66:   /usr/include/asm/segment.h kern_sock.h 

unix.superglobalmegacorp.com