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 / unix / Makefile next >
Encoding:
Makefile  |  1993-12-01  |  634 b   |  36 lines

  1. #
  2. # Makefile for the UNIX Protocol Family.
  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) \
  12.     -c -o $*.o $<
  13. .s.o:
  14.     $(AS) -o $*.o $<
  15. .c.s:
  16.     $(CC) $(CFLAGS) \
  17.     -S -o $*.s $<
  18.  
  19. OBJS    = sock.o proc.o
  20.  
  21. unix.o: $(OBJS)
  22.     $(LD) -r -o unix.o $(OBJS)
  23.  
  24. dep:
  25.     $(CPP) -M *.c > .depend
  26.  
  27. tar:
  28.     tar -cvf /dev/f1 .
  29.  
  30. #
  31. # include a dependency file if one exists
  32. #
  33. ifeq (.depend,$(wildcard .depend))
  34. include .depend
  35. endif
  36.