home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / othergnu / gnuplot.zoo / Makefile < prev    next >
Encoding:
Makefile  |  1992-03-07  |  2.6 KB  |  99 lines

  1. # GNUPLOT makefile for GCC-ST 1.40 and bmake
  2. # Modified from the BorlandC makefile by Alexander Lehmann
  3.  
  4. # where to place gnuplot.gih helpfile
  5. HELPFILE = gnuplot.gih
  6. # name of CC
  7. CC = gcc
  8.  
  9. # -O means optimisation in general
  10. #  o-f-p avoids link-unlink instructions
  11. #  s-r     optimisation of loops and elimination of iterations variables
  12. #  c-r     improve register movement
  13.  
  14. OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce -fcombine-regs
  15.  
  16. # -c means don't link
  17. # -DREADLINE to use the history/line editing capability. If you want this 
  18. #    capability add -DREADLINE to CFLAGS (currently on)
  19.  
  20. CFLAGS = -c $(OPTFLAGS) -DATARI -DNOGAMMA -DREADLINE
  21. TERMFLAGS =
  22.  
  23. OBJS =     bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
  24.     help.o internal.o misc.o parse.o plot.o readline.o \
  25.     scanner.o setshow.o standard.o term.o util.o version.o
  26.  
  27. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  28.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  29.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  30. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  31.     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  32. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  33.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  34.     term\v384.trm term\x11.trm term\atari.trm
  35.  
  36. all: gnuplot.ttp $(HELPFILE)
  37.  
  38. gnuplot.ttp: $(OBJS) 
  39.     $(CC) -o $@ $(OBJS) -lpml -lgem
  40.     fixstk 80k $@
  41. # to run the bivariat demo ca. 75k stack is needed, all others work with ca. 32k
  42.  
  43. # default rules
  44.  
  45. %.o: %.c
  46.     $(CC) -o $@ $(CFLAGS) $<
  47.  
  48. bitmap.o: bitmap.c bitmap.h plot.h
  49.  
  50. command.o: command.c plot.h setshow.h help.h
  51.     $(CC) -o $@ $(CFLAGS) -DHELPFILE="$(HELPFILE)" command.c
  52.  
  53. contour.o: contour.c plot.h
  54.  
  55. eval.o: eval.c plot.h
  56.  
  57. graphics.o: graphics.c plot.h setshow.h
  58.  
  59. graph3d.o: graph3d.c plot.h setshow.h
  60.  
  61. help.o: help.c plot.h help.h
  62.  
  63. internal.o: internal.c plot.h
  64.  
  65. misc.o: misc.c plot.h setshow.h help.h
  66.  
  67. parse.o: parse.c plot.h
  68.  
  69. plot.o: plot.c plot.h setshow.h
  70.  
  71. readline.o: readline.c
  72.  
  73. scanner.o: scanner.c plot.h
  74.  
  75. setshow.o: setshow.c plot.h setshow.h
  76.  
  77. standard.o: standard.c plot.h
  78.  
  79. term.o: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  80.     $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  81.  
  82. util.o: util.c plot.h
  83.  
  84. version.o: version.c
  85.  
  86. # convert gnuplot.doc to gnuplot.gih
  87. $(HELPFILE): doc2gih.ttp docs\gnuplot.doc
  88.     doc2gih.ttp docs\gnuplot.doc $(HELPFILE)
  89.  
  90. doc2gih.ttp: docs\doc2gih.c
  91.     $(CC) -o doc2gih.ttp docs\doc2gih.c
  92.  
  93. # empty rules for file extensions
  94. %.trm:
  95.  
  96. %.doc:
  97.  
  98.  
  99.