2 # $Id: makefile.ztc,v 1.5 1999/12/01 22:07:58 lhecking Exp $
4 # GNUPLOT Makefile for Zortech C++ 3.x
7 # where to place gnuplot.gih helpfile
11 # -f means in-line 8087
12 # -mx means X memory model
13 # -o+space means optimize for space, -o means optimize for speed
14 # -p means turn off autoprototyping (pre-ANSI codes)
15 # Jm means relax type checking
16 # one can disable command-line history by comment out -DREADLINE
18 CFLAGS=-c -mx -o+space -Jm -DREADLINE -DHAVE_STRNICMP
23 OBJ1 = alloc.obj binary.obj bitmap.obj command.obj contour.obj datafile.obj
24 OBJ2 = dynarray.obj eval.obj fit.obj graph3d.obj graphics.obj help.obj
25 OBJ3 = hidden3d.obj internal.obj interpol.obj matrix.obj misc.obj parse.obj
26 OBJ4 = plot.obj plot2d.obj plot3d.obj readline.obj save.obj scanner.obj
27 OBJ5 = set.obj show.obj specfun.obj standard.obj stdfn.obj tables.obj term.obj
28 OBJ6 = time.obj unset.obj util.obj util3d.obj variable.obj version.obj history.obj
30 OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6)
32 CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
33 term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
34 term\hp2648.trm term\hpgl.trm term\hpljii.trm
35 CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
36 term\iris4d.trm term\kyo.trm term\latex.trm term\fg.trm
37 CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
38 term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
39 term\v384.trm term\x11.trm
40 CSOURCE8 = contour.c specfun.c binary.c interpol.c
42 all: gnuplot.exe $(HELPFILE) demo\bf_test.exe
53 bitmap.obj: bitmap.c bitmap.h plot.h
55 command.obj: command.c plot.h setshow.h help.h fit.h
56 $(CC) $(CFLAGS) command.c
58 contour.obj: contour.c plot.h
60 eval.obj: eval.c plot.h
62 graphics.obj: graphics.c plot.h setshow.h
64 graph3d.obj: graphics.c plot.h setshow.h
66 fit.obj: fit.c fit.h matrix.h plot.h
68 matrix.obj: matrix.c matrix.h fit.h
70 help.obj: help.c plot.h help.h
72 internal.obj: internal.c plot.h
74 interpol.obj: interpol.c plot.h setshow.h
76 misc.obj: misc.c plot.h setshow.h help.h
78 parse.obj: parse.c plot.h
79 $(CC) $(CFLAGS) parse.c
81 plot.obj: plot.c plot.h setshow.h
82 $(CC) $(CFLAGS) plot.c
84 readline.obj: readline.c
86 save.obj: save.c plot.h setshow.h
88 scanner.obj: scanner.c plot.h
90 set.obj : set.c plot.h setshow.h
92 show.obj: show.c plot.h setshow.h
94 specfun.obj: specfun.c
96 standard.obj: standard.c plot.h
98 stdfn.obj: stdfn.c stdfn.h
100 tables.obj: tables.c plot.h tables.h
102 # the CSOURCE? dependencies are not up to date (but who cares)
103 term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
104 $(CC) $(CFLAGS) $(TERMFLAGS) -Iterm -I. term.c
106 unset.obj: unset.c plot.h setshow.h tables.h
108 util.obj: util.c plot.h
110 variable.obj: variable.c plot.h variable.h
112 version.obj: version.c
114 $(HELPFILE): doc2gih.exe docs\gnuplot.doc
115 doc2gih docs\gnuplot.doc $(HELPFILE)
117 # convert gnuplot.doc to gnuplot.gih
118 doc2gih.exe: docs\doc2gih.c docs\termdoc.c
119 $(CC) -mx -odoc2gih.exe docs\doc2gih.c docs\termdoc.c
121 demo\bf_test.exe: bf_test.c binary.obj alloc.obj
122 $(CC) -mx -odemo\bf_test.exe bf_test.c binary.obj alloc.obj
124 # clean target - remove all temp files, but leave executable intact
125 # needed when changing configuration (model or overlaying)
132 # realclean target - remove all files created by the makefile