home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_01 / 1001105b < prev    next >
Text File  |  1991-11-22  |  1KB  |  51 lines

  1. #
  2. # Make file for CMENU Menu compiler system
  3. # For use with Unix/Xenix
  4. #
  5.  
  6. CC = cc
  7.  
  8. # Configuration options:
  9.  
  10. # Uncomment only one of the following two lines, XENIX for XENIX only,
  11. # UNIX for any non-XENIX system:
  12. #SYSTEM = UNIX
  13. SYSTEM = XENIX
  14.  
  15. # uncomment one only (first works for XENIX, second for most others):
  16. CULIBS = -ltcap -ltermcap
  17. #CULIBS = -lcurses -ltermcap
  18.  
  19. # uncomment only ONE of the following 2 lines. The first will
  20. # compile the included strstr() definition, the second will cause
  21. # the library version of strstr() to be used.
  22. NEEDSTR = -DNEEDSTR
  23. #NEEDSTR =
  24.  
  25. #
  26. # From this point on, no changes should be necessary.
  27. #
  28.  
  29. COPTS = -D$(SYSTEM)=1 $(NEEDSTR)
  30. CFILES = cmenu1.o cmenu2.o cmenu3.o
  31. RFILES = rmenu1.o rmenu2.o  rmenu3.o rmenu4.o
  32.  
  33. all: cmenu rmenu dmenu
  34.  
  35. .c.o:
  36.     $(CC) -c $(COPTS) $< 
  37.  
  38. cmenu: $(CFILES)
  39.     $(CC) -o $@ $(CFILES)
  40.  
  41. rmenu: $(RFILES)
  42.     $(CC) -o $@ $(RFILES) $(CULIBS)
  43.  
  44. dmenu: dmenu.c cmenu.h
  45.     $(CC) $(COPTS) -o dmenu dmenu.c 
  46.  
  47. $(CFILES): ccmenu.h cmenu.h
  48.  
  49. $(RFILES): rcmenu.h cmenu.h
  50.  
  51.