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.tc < prev    next >
Makefile  |  1991-02-05  |  3KB  |  103 lines

  1. # make file for Turbo C++ 1.0
  2. # Modified from MSC make by John Campbell and Bill Wilson
  3. # The compile and link includes debug flags.  Take them out if you
  4. # do not want them included  (-y -v -M, /m /s /v /l)
  5.  
  6. # where to place gnuplot.gih helpfile
  7. HELPFILE = gnuplot.gih
  8. # location of Turbo C compiler
  9. # if this is changed then linkopt.tc will need to be edited.
  10. TC = \tc
  11. # location of TCC.EXE and TLINK.EXE
  12. BIN = $(TC)\bin
  13. #BIN = $(TC)
  14. # location of BGI files and BGIOBJ.EXE,
  15. # change this line if not in TC directory, i.e. $(TC)\bgi
  16. BGI = $(TC)\bgi
  17. #BGI = $(TC)
  18. # -c means don't link, -f means emulate 8087 if not present
  19. # -ml means use large model (large code, large data)
  20. # -M means produce link map
  21. # -y means include line numbers for debugger
  22. # -v means include debug info
  23. # -w- means ignore warnings and do not report them
  24. CFLAGS = -c -f -ml -M -y -v -w- -I$(TC)\include -DMSDOS -DPC
  25. TERMFLAGS = 
  26.  
  27. OBJS =     bitmap.obj command.obj eval.obj graphics.obj help.obj internal.obj \
  28.     misc.obj parse.obj plot.obj scanner.obj setshow.obj standard.obj \
  29.     term.obj util.obj version.obj cgaf.obj egavgaf.obj hercf.obj attf.obj
  30.  
  31. CSOURCE5 = term\aed.trm term\cgi.trm term\dxy.trm term\eepic.trm \
  32.     term\epson.trm term\fig.trm term\hp26.trm term\hp2648.trm \
  33.     term\hpgl.trm term\hpljii.trm 
  34. CSOURCE6 = term\imPcodes.h term\imagen.trm term\object.h \
  35.     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  36. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  37.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  38.     term\v384.trm term\x11.trm
  39.  
  40. all: gnuplot.exe $(HELPFILE)
  41.  
  42. # use linkopt.tc to avoid command-line overflow
  43.  
  44. gnuplot.exe: $(OBJS) 
  45.     $(BIN)\tlink /m /s /v /l @linkopt.tc
  46.  
  47. # default rules
  48.  
  49. .c.obj:  
  50.     $(BIN)\tcc $(CFLAGS) $<
  51.  
  52. bitmap.obj: bitmap.c bitmap.h plot.h
  53.  
  54. command.obj: command.c plot.h setshow.h help.h
  55.     $(BIN)\tcc $(CFLAGS) -DHELPFILE="$(HELPFILE)" command.c
  56.  
  57. eval.obj: eval.c plot.h
  58.  
  59. graphics.obj: graphics.c plot.h setshow.h
  60.  
  61. help.obj: help.c plot.h help.h
  62.  
  63. internal.obj: internal.c plot.h
  64.  
  65. misc.obj: misc.c plot.h setshow.h help.h
  66.  
  67. parse.obj: parse.c plot.h
  68.  
  69. plot.obj: plot.c plot.h setshow.h
  70.  
  71. scanner.obj: scanner.c plot.h
  72.  
  73. setshow.obj: setshow.c plot.h setshow.h
  74.  
  75. standard.obj: standard.c plot.h
  76.  
  77. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  78.     $(BIN)\tcc $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  79.     
  80. util.obj: util.c plot.h
  81.  
  82. version.obj: version.c
  83.  
  84. # convert gnuplot.doc to gnuplot.gih
  85. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  86.     doc2gih docs\gnuplot.doc $(HELPFILE)
  87.  
  88. doc2gih.exe: docs\doc2gih.c
  89.     $(BIN)\tcc -I$(TC)\include -L$(TC)\lib docs\doc2gih.c
  90.  
  91. # convert Borland Graphics Interface files to object for linking
  92. cgaf.obj: $(BGI)\cga.bgi
  93.     $(BGI)\bgiobj /F $(BGI)\cga
  94.  
  95. egavgaf.obj: $(BGI)\egavga.bgi
  96.     $(BGI)\bgiobj /F $(BGI)\egavga
  97.  
  98. hercf.obj: $(BGI)\herc.bgi
  99.     $(BGI)\bgiobj /F $(BGI)\herc
  100.  
  101. attf.obj: $(BGI)\att.bgi
  102.     $(BGI)\bgiobj /F $(BGI)\att
  103.