home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / linux / atari / source / source.lzh / atari-linux-0.01pl3 / net / Makefile < prev    next >
Encoding:
Makefile  |  1994-06-06  |  974 b   |  47 lines

  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. include ../.config
  11. include ../MakeVars
  12.  
  13. # only these two lines should need to be changed to remove inet sockets.
  14. # (and the inet/tcpip.o in net.o)
  15.  
  16. SUBDIRS     := unix # inet
  17.  
  18. SUBOBJS     := $(foreach f,$(SUBDIRS),$f/$f.o)
  19.  
  20. OBJS    =  Space.o ddi.o socket.o
  21.  
  22. all:        subdirs net.o
  23.  
  24. net.o:        $(OBJS) network.a
  25.         $(LD) -r -o net.o $(OBJS) network.a
  26.  
  27. network.a:    $(SUBOBJS)
  28.         rm -f $@
  29.         $(AR) rcs $@ $(SUBOBJS)
  30.  
  31. subdirs:    dummy
  32.         set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i; done
  33.  
  34. dep:
  35.         $(CPP) -M *.c > .depend
  36.         set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i dep; done
  37.  
  38. dummy:
  39.  
  40. #
  41. # include a dependency file if one exists
  42. #
  43. ifeq (.depend,$(wildcard .depend))
  44. include .depend
  45. endif
  46.  
  47.