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

  1. #
  2. # Make file for CMENU Menu compiler system (DOS version)
  3. # Developed under Borland C++, but written portably
  4. #
  5.  
  6. ################################################################
  7. # Primary configuration section
  8. ################################################################
  9.  
  10. CC = bcc                    # command-line compiler name
  11.  
  12. # uncomment only one line in each of following 3 pairs of lines:
  13.  
  14. #DEBUG = -v                 # enable Turbo Debugger info
  15. DEBUG =                     # disable debugging
  16.  
  17. #BCCOPTS =                  
  18. BCCOPTS = -w-pia -A         # Borland-specific stuff
  19.  
  20. #NEEDSTR = -DNEEDSTR        # compile own strstr() definition
  21. NEEDSTR =                   # use library version of strstr()
  22.  
  23. WILDLIB = wildargs.obj      # links wildcard module
  24.  
  25. CULIBS = tscurses.lib       # curses library
  26.  
  27. ################################################################
  28. # End of primary configuration section
  29. ################################################################
  30.  
  31. COPTS = $(BCCOPTS) -DDOS=1 $(DEBUG) $(NEEDSTR)
  32. CFILES = cmenu1.obj cmenu2.obj cmenu3.obj
  33. RFILES = rmenu1.obj rmenu2.obj  rmenu3.obj rmenu4.obj
  34.  
  35. all: cmenu.exe rmenu.exe dmenu.exe
  36.  
  37. .c.obj:                         # For non-Borland MAKE, you may need 
  38. to
  39.     $(CC) -c $(COPTS) {$< }     # substitute  "$*.c"  for 
  40. "{$< }"
  41.  
  42. cmenu.exe: $(CFILES)
  43.     $(CC) $(DEBUG) -ecmenu $(CFILES) $(WILDLIB)
  44.  
  45. rmenu.exe: $(RFILES)
  46.     $(CC) $(DEBUG) -ermenu $(RFILES) $(CULIBS)
  47.  
  48. dmenu.exe: dmenu.c cmenu.h
  49.     $(CC) $(COPTS) -edmenu dmenu.c 
  50.  
  51. $(CFILES): ccmenu.h cmenu.h makefile
  52.  
  53. $(RFILES): rcmenu.h cmenu.h makefile
  54.  
  55.