2 # $Id: makefile.286,v 1.5 1999/12/01 22:07:56 lhecking Exp $
4 # GNUPLOT Makefile for Borland C++ 3.x
5 # and Phar Lap LITE286 DOS extender
7 # both LITE286 bin and BORLANDC bin directories must be on the path
9 # where to place gnuplot.gih helpfile
10 HELPFILE = gnuplot.gih
11 # location of LITE286 Pharlap Extender
13 LITECC=$(LITE)\bin\bcc286
14 # location of Turbo C compiler
19 # location of TLINK.EXE and TCC.EXE or BCC.EXE
22 # location of BGI files,
23 # change this line if not in TC directory, i.e. $(TC)\bgi
26 # -c means don't link, -f means emulate 8087 if not present
27 # -ml says large model
28 # -M means produce link map
29 # -y means include line numbers for debugger
30 # -v means include debug info
31 # -w- means ignore warnings and do not report them
32 # -DREADLINE to use the history/line editing capability. If you want this
33 # capability add -DREADLINE to CFLAGS
34 CFLAGS = -Ff=256 -c -f -ml -w- -I$(TC)\include -DMSDOS -DPC -DREADLINE -DHAVE_STRNICMP
37 OBJ1 = alloc.obj binary.obj bitmap.obj command.obj contour.obj datafile.obj
38 OBJ2 = dynarray.obj eval.obj fit.obj graph3d.obj graphics.obj help.obj
39 OBJ3 = history.obj hidden3d.obj internal.obj interpol.obj matrix.obj misc.obj
40 OBJ4 = parse.obj plot.obj plot2d.obj plot3d.obj readline.obj save.obj
41 OBJ5 = scanner.obj set.obj show.obj specfun.obj standard.obj stdfn.obj
42 OBJ6 = tables.obj term.obj time.obj unset.obj util.obj util3d.obj
43 OBJ7 = variable.obj version.obj
45 BGIFILES = cga.bgi egavga.bgi herc.bgi att.bgi
47 OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7)
49 CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
50 term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
51 term\hp2648.trm term\hpgl.trm term\hpljii.trm
52 CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
53 term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm
54 CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
55 term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
56 term\v384.trm term\x11.trm
57 CSOURCE8 = contour.c specfun.c binary.c interpol.c
59 all: gnuplot.exe $(HELPFILE) demo\bf_test.exe $(BGIFILES)
61 # use response file to avoid command-line overflow
64 $(LITE)\bc3\lib\c0pl +
65 bitmap command eval graphics graph3d help internal misc parse +
66 plot scanner setshow specfun standard stdfn term util version contour +
67 binary interpol datafile alloc +
69 $(LITE)\bc3\lib\emu286.lib +
73 $(LITE)\bc3\lib\graph286.lib +
74 $(LITE)\bc3\lib\phapi +
75 $(LITE)\bc3\lib\bcl286, +
83 $(LITECC) $(CFLAGS) $<
85 alloc.obj: alloc.c alloc.h plot.h
87 bitmap.obj: bitmap.c bitmap.h plot.h
89 command.obj: command.c plot.h setshow.h help.h
90 $(LITECC) $(CFLAGS) command.c
92 contour.obj: contour.c plot.h
94 datafile.obj: datafile.h plot.h
96 dynarray.obj: dynarray.h ploy.h
98 eval.obj: eval.c plot.h
100 fit.obj: fit.c fit.h matrix.h plot.h
102 graph3d.obj: graphics.c plot.h setshow.h
104 graphics.obj: graphics.c plot.h setshow.h
106 help.obj: help.c plot.h help.h
108 history.obj: history.c gp_hist.h plot.h
110 internal.obj: internal.c plot.h
112 interpol.obj: interpol.c plot.h setshow.h
114 matrix.obj: matrix.c matrix.h fit.h
116 misc.obj: misc.c plot.h setshow.h help.h
118 parse.obj: parse.c plot.h
119 $(LITECC) $(CFLAGS) parse.c
121 plot.obj: plot.c plot.h setshow.h
122 $(LITECC) $(CFLAGS) plot.c
124 readline.obj: readline.c
126 save.obj: save.c plot.h ansichek.h stdfn.h syscfg.h
128 scanner.obj: scanner.c plot.h
130 set.obj: set.c plot.h setshow.h
132 show.obj: show.c plot.h setshow.h
134 specfun.obj: specfun.c
136 standard.obj: standard.c plot.h
138 stdfn.obj: stdfn.c stdfn.h
140 # the CSOURCE? dependencies are not up to date (but who cares)
141 term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
142 $(LITECC) $(CFLAGS) $(TERMFLAGS) -Iterm -I. term.c
144 time.obj: time.c gp_time.h plot.h
146 unset.obj: unset.c plot.h ansichek.h stdfn.h syscfg.h
148 util.obj: util.c plot.h
150 variable.obj: variable.c plot.h variable.h
152 version.obj: version.c
154 # convert gnuplot.doc to gnuplot.gih
155 $(HELPFILE): doc2gih.exe docs\gnuplot.doc
156 doc2gih docs\gnuplot.doc $(HELPFILE)
158 doc2gih.exe: docs\doc2gih.c docs\termdoc.c
159 $(BIN)$(CC) -edoc2gih.exe -w- -ml -I$(TC)\include -L$(TC)\lib docs\doc2gih.c docs\termdoc.c
161 demo\bf_test.exe: bf_test.c binary.obj alloc.obj
162 $(BIN)$(CC) -edemo\bf_test.exe -w- -ml -I$(TC)\include -L$(TC)\lib bf_test.c binary.obj alloc.obj
164 # copy Borland Graphics Interface files to current directory
165 cga.bgi: $(BGI)\cga.bgi
168 egavga.bgi: $(BGI)\egavga.bgi
171 herc.bgi: $(BGI)\herc.bgi
174 att.bgi: $(BGI)\att.bgi
177 # clean target - remove all temp files, but leave executable intact
178 # needed when changing configuration (model or overlaying)
185 # realclean target - remove all files created by the makefile