home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / net / inet / Makefile < prev    next >
Encoding:
Makefile  |  1995-01-24  |  1.2 KB  |  78 lines

  1. #
  2. # Makefile for the Linux TCP/IP (INET) layer.
  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. .c.o:
  11.     $(CC) $(CFLAGS) -c $<
  12. .s.o:
  13.     $(AS) -o $*.o $<
  14. .c.s:
  15.     $(CC) $(CFLAGS) -S $<
  16.  
  17.  
  18. OBJS    := sock.o eth.o dev.o dev_mcast.o skbuff.o datagram.o
  19.  
  20. ifdef CONFIG_INET
  21.  
  22. OBJS    := $(OBJS) utils.o route.o proc.o timer.o protocol.o packet.o \
  23.            arp.o ip.o raw.o icmp.o tcp.o udp.o devinet.o af_inet.o \
  24.            igmp.o ip_fw.o 
  25.  
  26. ifdef CONFIG_INET_RARP
  27.  
  28. OBJS    := $(OBJS) rarp.o
  29.  
  30. endif
  31. endif
  32.  
  33. ifdef CONFIG_AX25
  34.  
  35. OBJS    := $(OBJS) ax25.o ax25_in.o ax25_out.o ax25_route.o ax25_subr.o ax25_timer.o
  36.  
  37. endif
  38.  
  39. ifdef CONFIG_IPX
  40.  
  41. OBJS    := $(OBJS) ipx.o pe2.o p8022.o p8023.o
  42. SNAPO    := psnap.o
  43.  
  44. endif
  45.  
  46. ifdef CONFIG_ATALK
  47.  
  48. OBJS    := $(OBJS) aarp.o ddp.o
  49. SNAPO    := psnap.o
  50. endif
  51.  
  52. OBJS    := $(OBJS) $(SNAPO)
  53.  
  54. ifdef CONFIG_NET
  55.  
  56. inet.o:        $(OBJS)
  57.         $(LD) -r -o inet.o $(OBJS)
  58.  
  59. else
  60.  
  61. inet.o:
  62.         $(AR) rcs inet.o
  63.  
  64. endif
  65.  
  66. dep:
  67.         $(CPP) -M *.c > .depend
  68.  
  69. tar:
  70.         tar -cvf /dev/f1 .
  71.  
  72. #
  73. # include a dependency file if one exists
  74. #
  75. ifeq (.depend,$(wildcard .depend))
  76. include .depend
  77. endif
  78.