home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.0 / LINUX-1.0 / LINUX-1 / linux / net / inet / Makefile < prev    next >
Encoding:
Makefile  |  1993-12-14  |  900 b   |  47 lines

  1. #
  2. # Makefile for the Linix 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 -o $*.o $<
  12. .s.o:
  13.     $(AS) -o $*.o $<
  14. .c.s:
  15.     $(CC) $(CFLAGS) -S -o $*.s $<
  16.  
  17.  
  18. OBJS    = sock.o utils.o route.o proc.o timer.o protocol.o loopback.o \
  19.       eth.o packet.o arp.o dev.o ip.o raw.o icmp.o tcp.o udp.o \
  20.       datagram.o skbuff.o
  21. #      ipx.o ax25.o ax25_in.o ax25_out.o ax25_subr.o ax25_timer.o
  22.  
  23. ifdef CONFIG_INET
  24.  
  25. inet.o:        $(OBJS)
  26.         $(LD) -r -o inet.o $(OBJS)
  27.  
  28. else
  29.  
  30. inet.o:
  31.         echo | $(AS) -o inet.o
  32.  
  33. endif
  34.  
  35. dep:
  36.         $(CPP) -M *.c > .depend
  37.  
  38. tar:
  39.         tar -cvf /dev/f1 .
  40.  
  41. #
  42. # include a dependency file if one exists
  43. #
  44. ifeq (.depend,$(wildcard .depend))
  45. include .depend
  46. endif
  47.