home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / ipc / Makefile next >
Encoding:
Makefile  |  1995-01-04  |  703 b   |  40 lines

  1. #
  2. # Makefile for the linux ipc.
  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. OBJS    =  util.o 
  18. SRCS    =  util.c
  19.  
  20. ifdef CONFIG_SYSVIPC
  21. OBJS    := $(OBJS) msg.o sem.o shm.o 
  22. SRCS    := $(SRCS) msg.c sem.c shm.c
  23. endif
  24.  
  25. ipc.o: $(OBJS) 
  26.     $(LD) -r -o ipc.o $(OBJS) 
  27.  
  28. dep:
  29.     $(CPP) -M $(SRCS) > .depend
  30.  
  31. modules:
  32. dummy:
  33.  
  34. #
  35. # include a dependency file if one exists
  36. #
  37. ifeq (.depend,$(wildcard .depend))
  38. include .depend
  39. endif
  40.