home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 334_02 / makefile.msc < prev    next >
Makefile  |  1991-02-05  |  2KB  |  91 lines

  1. # Make file for use with Microsoft C  Version 5.10
  2. # and Microsoft Program Maintenance Utility  Version 4.07
  3.  
  4. # where to place gnuplot.gih helpfile
  5. HELPFILE = gnuplot.gih
  6.  
  7. # /c  means don't link
  8. # /AL means large memory model (large code, large data)
  9. # /DPC means define symbol PC
  10. CFLAGS = /c /AL /DPC #/DMSDOS #/Zi #/Od
  11.  
  12. # see other terminal defines in term.h
  13. TERMFLAGS = 
  14.  
  15. # /NOE means NO EXTernal Dictionary
  16. # /EX  means pack EXE file
  17. # /ST:8000 means stack size 8000 bytes
  18. LINKFLAGS = /NOE /EX /ST:8000 #/codeview 
  19.  
  20. OBJS =     bitmap.obj command.obj eval.obj graphics.obj help.obj internal.obj \
  21.     misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
  22.     term.obj util.obj version.obj pcgraph.obj hrcgraph.obj corgraph.obj
  23.  
  24. CSOURCE5 = term\aed.trm term\cgi.trm term\dxy.trm term\eepic.trm \
  25.     term\epson.trm term\fig.trm term\hp26.trm term\hp2648.trm \
  26.     term\hpgl.trm term\hpljii.trm 
  27. CSOURCE6 = term\imPcodes.h term\imagen.trm term\object.h \
  28.     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  29. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  30.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  31.     term\v384.trm term\x11.trm
  32.  
  33. # default rules
  34. .c.obj:
  35.     cl $(CFLAGS) $*.c
  36.  
  37. .asm.obj:
  38.     masm $*;
  39.  
  40. pcgraph.obj: pcgraph.asm header.mac lineproc.mac
  41.  
  42. corgraph.obj: corgraph.asm header.mac lineproc.mac
  43.  
  44. hrcgraph.obj: hrcgraph.asm header.mac lineproc.mac
  45.  
  46. bitmap.obj: bitmap.c bitmap.h plot.h
  47.  
  48. command.obj: command.c plot.h setshow.h help.h
  49.     cl $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" command.c
  50.  
  51. eval.obj: eval.c plot.h
  52.  
  53. graphics.obj: graphics.c plot.h setshow.h
  54.  
  55. help.obj: help.c plot.h help.h
  56.  
  57. internal.obj: internal.c plot.h
  58.  
  59. misc.obj: misc.c plot.h setshow.h
  60.  
  61. parse.obj: parse.c plot.h
  62.  
  63. plot.obj: plot.c plot.h setshow.h
  64.  
  65. scanner.obj: scanner.c plot.h
  66.  
  67. setshow.obj: setshow.c plot.h setshow.h
  68.  
  69. standard.obj: standard.c plot.h
  70.  
  71. term.obj: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  72.     cl $(CFLAGS) $(TERMFLAGS) /Iterm term.c
  73.  
  74. util.obj: util.c plot.h
  75.  
  76. version.obj: version.c
  77.  
  78. # convert gnuplot.doc to gnuplot.gih
  79. doc2gih.exe: docs\doc2gih.c
  80.     cl docs\doc2gih.c
  81.  
  82. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  83.     doc2gih docs\gnuplot.doc $(HELPFILE)
  84.  
  85. # Object files in link command line are ordered to avoid far jumps.
  86. # use linkopt.msc to avoid command-line overflow
  87.  
  88. gnuplot.exe: $(OBJS)
  89.  link $(LINKFLAGS) @linkopt.msc
  90.