Annotation of OpenXM_contrib/gnuplot/makefile.286, Revision 1.1.1.1
1.1 maekawa 1: # make file for Borland C++ 3.x
2: # and Phar Lap LITE286 DOS extender
3: # both LITE286 bin and BORLANDC bin directories must be on the path
4:
5: # where to place gnuplot.gih helpfile
6: HELPFILE = gnuplot.gih
7: # location of LITE286 Pharlap Extender
8: LITE=c:\lite286
9: LITECC=$(LITE)\bin\bcc286
10: # location of Turbo C compiler
11: TC = c:\borlandc
12: # name of C compiler
13: CC = bcc
14: #CC = tcc
15: # location of TLINK.EXE and TCC.EXE or BCC.EXE
16: BIN = $(TC)\bin\\
17: #BIN =
18: # location of BGI files,
19: # change this line if not in TC directory, i.e. $(TC)\bgi
20: BGI = $(TC)\bgi
21:
22: # -c means don't link, -f means emulate 8087 if not present
23: # -ml says large model
24: # -M means produce link map
25: # -y means include line numbers for debugger
26: # -v means include debug info
27: # -w- means ignore warnings and do not report them
28: # -DREADLINE to use the history/line editing capability. If you want this
29: # capability add -DREADLINE to CFLAGS
30: CFLAGS = -Ff=256 -c -f -ml -w- -I$(TC)\include -DMSDOS -DPC -DREADLINE -DHAVE_STRNICMP
31: TERMFLAGS =
32:
33: OBJ1 = bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj
34: OBJ2 = help.obj internal.obj misc.obj parse.obj plot.obj plot2d.obj plot3d.obj readline.obj
35: OBJ3 = scanner.obj set.obj show.obj specfun.obj standard.obj stdfn.obj term.obj util.obj
36: OBJ4 = version.obj binary.obj interpol.obj fit.obj matrix.obj datafile.obj alloc.obj
37: BGIFILES = cga.bgi egavga.bgi herc.bgi att.bgi
38:
39: OBJS = $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
40:
41: CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
42: term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
43: term\hp2648.trm term\hpgl.trm term\hpljii.trm
44: CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
45: term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm
46: CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
47: term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
48: term\v384.trm term\x11.trm
49: CSOURCE8 = contour.c specfun.c binary.c interpol.c
50:
51: all: gnuplot.exe $(HELPFILE) demo\bf_test.exe $(BGIFILES)
52:
53: # use response file to avoid command-line overflow
54: gnuplot.exe: $(OBJS)
55: $(BIN)tlink @&&!
56: $(LITE)\bc3\lib\c0pl +
57: bitmap command eval graphics graph3d help internal misc parse +
58: plot scanner setshow specfun standard stdfn term util version contour +
59: binary interpol datafile alloc +
60: readline +
61: $(LITE)\bc3\lib\emu286.lib +
62: ,gnuplot,gnuplot, +
63: $(TC)\lib\emu +
64: $(TC)\lib\mathl +
65: $(LITE)\bc3\lib\graph286.lib +
66: $(LITE)\bc3\lib\phapi +
67: $(LITE)\bc3\lib\bcl286, +
68: gnuplot.def
69: !
70:
71:
72: # default rules
73:
74: .c.obj:
75: $(LITECC) $(CFLAGS) $<
76:
77: bitmap.obj: bitmap.c bitmap.h plot.h
78:
79: command.obj: command.c plot.h setshow.h help.h
80: $(LITECC) $(CFLAGS) command.c
81:
82: contour.obj: contour.c plot.h
83:
84: eval.obj: eval.c plot.h
85:
86: graphics.obj: graphics.c plot.h setshow.h
87:
88: graph3d.obj: graphics.c plot.h setshow.h
89:
90: fit.obj: fit.c fit.h matrix.h plot.h
91:
92: matrix.obj: matrix.c matrix.h fit.h
93:
94: help.obj: help.c plot.h help.h
95:
96: internal.obj: internal.c plot.h
97:
98: misc.obj: misc.c plot.h setshow.h help.h
99:
100: parse.obj: parse.c plot.h
101: $(LITECC) $(CFLAGS) parse.c
102:
103: plot.obj: plot.c plot.h setshow.h
104: $(LITECC) $(CFLAGS) plot.c
105:
106: readline.obj: readline.c
107:
108: scanner.obj: scanner.c plot.h
109:
110: set.obj: set.c plot.h setshow.h
111:
112: show.obj: show.c plot.h setshow.h
113:
114: specfun.obj: specfun.c
115:
116: interpol.obj: interpol.c plot.h setshow.h
117:
118: standard.obj: standard.c plot.h
119:
120: stdfn.obj: stdfn.c stdfn.h
121:
122: # the CSOURCE? dependencies are not up to date (but who cares)
123: term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
124: $(LITECC) $(CFLAGS) $(TERMFLAGS) -Iterm -I. term.c
125:
126: util.obj: util.c plot.h
127:
128: version.obj: version.c
129:
130: # convert gnuplot.doc to gnuplot.gih
131: $(HELPFILE): doc2gih.exe docs\gnuplot.doc
132: doc2gih docs\gnuplot.doc $(HELPFILE)
133:
134: doc2gih.exe: docs\doc2gih.c docs\termdoc.c
135: $(BIN)$(CC) -edoc2gih.exe -w- -ml -I$(TC)\include -L$(TC)\lib docs\doc2gih.c docs\termdoc.c
136:
137: demo\bf_test.exe: bf_test.c binary.obj alloc.obj
138: $(BIN)$(CC) -edemo\bf_test.exe -w- -ml -I$(TC)\include -L$(TC)\lib bf_test.c binary.obj alloc.obj
139:
140: # copy Borland Graphics Interface files to current directory
141: cga.bgi: $(BGI)\cga.bgi
142: copy $(BGI)\$< $<
143:
144: egavga.bgi: $(BGI)\egavga.bgi
145: copy $(BGI)\$< $<
146:
147: herc.bgi: $(BGI)\herc.bgi
148: copy $(BGI)\$< $<
149:
150: att.bgi: $(BGI)\att.bgi
151: copy $(BGI)\$< $<
152:
153: # clean target - remove all temp files, but leave executable intact
154: # needed when changing configuration (model or overlaying)
155:
156: clean:
157: del *.obj
158: del gnuplot.map
159: del doc2gih.exe
160:
161: # realclean target - remove all files created by the makefile
162:
163: realclean: clean
164: del gnuplot.exe
165: del gnuplot.gih
166: del demo\bf_test.exe
167: del demo\binary1
168: del demo\binary2
169: del demo\binary3
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>