# file: makefile.dos G. Moody 2 November 1989 # Last revised: 20 March 1992 # MSDOS `make' description file template for DB example programs # # Copyright(C) Massachusetts Institute of Technology 1992. All rights reserved. # This file is a template for a `make' description file generated by `install', # which generates `makefile' by concatenating `dbconfig' with this file (and # stripping out comments). To use this file without `install', define these # variables as appropriate for your system: # CC The name of the command-line C compiler. # CDFLAGS Optional arguments to be supplied to CC to produce object files # with debugging symbols. # COFLAGS Optional arguments to be supplied to CC to produce optimized # object files (or normal object files if no optimization is # available). # LDB CC option to link with the standard DB library. # Commands needed to compile the DB example programs are given below for # several versions of `make'. # # Borland (Turbo) `make': # make install # Microsoft `make' (supplied with Microsoft C before version 6.0): # make makefile # Microsoft `nmake' (supplied with Microsoft C 6.0 and later versions): # nmake install # Most versions of `make' allow you to override the settings of make variables # from the command line, so that it may not be necessary to edit this file to # test the effects of small modifications to it. # For optimized code, uncomment the next line. CFLAGS = $(COFLAGS) # Otherwise, if you modify the sources and need to debug them, uncomment the # next line. # CFLAGS = $(CDFLAGS) # Except as noted at the end of this file, it should not be necessary to modify # anything below this line. # ----------------------------------------------------------------------------- XFILES = psamples.exe exgetvec.exe exputvec.exe exannstr.exe example1.exe \ example2.exe example3.exe example4.exe example5.exe example6.exe \ example7.exe example8.exe example9.exe exampl10.exe refhr.exe # General rule for compiling C sources into executable files .c.exe: $(CC) $(CFLAGS) $*.c $(LDB) clean: del *.obj del *.exe install: $(XFILES)