Changed russian description a little bit
[gnuplot] / config / makefile.286
1 #
2 # $Id: makefile.286,v 1.5 1999/12/01 22:07:56 lhecking Exp $
3 #
4 # GNUPLOT Makefile for Borland C++ 3.x
5 #   and Phar Lap LITE286 DOS extender
6 #
7 # both LITE286 bin and BORLANDC bin directories must be on the path
8
9 # where to place gnuplot.gih helpfile
10 HELPFILE = gnuplot.gih
11 # location of LITE286 Pharlap Extender
12 LITE=c:\lite286
13 LITECC=$(LITE)\bin\bcc286
14 # location of Turbo C compiler
15 TC = c:\borlandc
16 # name of C compiler
17 CC = bcc
18 #CC = tcc
19 # location of TLINK.EXE and TCC.EXE or BCC.EXE
20 BIN = $(TC)\bin\\
21 #BIN =
22 # location of BGI files,
23 # change this line if not in TC directory, i.e. $(TC)\bgi
24 BGI = $(TC)\bgi
25
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
35 TERMFLAGS =
36
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
44
45 BGIFILES = cga.bgi egavga.bgi herc.bgi att.bgi
46
47 OBJS =  $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7)
48
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
58
59 all: gnuplot.exe $(HELPFILE) demo\bf_test.exe $(BGIFILES)
60
61 # use response file to avoid command-line overflow
62 gnuplot.exe: $(OBJS)
63         $(BIN)tlink @&&!
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 +
68 readline +
69 $(LITE)\bc3\lib\emu286.lib +
70 ,gnuplot,gnuplot, +
71 $(TC)\lib\emu +
72 $(TC)\lib\mathl +
73 $(LITE)\bc3\lib\graph286.lib +
74 $(LITE)\bc3\lib\phapi +
75 $(LITE)\bc3\lib\bcl286, +
76 gnuplot.def
77 !
78
79
80 # default rules
81
82 .c.obj:
83         $(LITECC) $(CFLAGS) $<
84
85 alloc.obj: alloc.c alloc.h plot.h
86
87 bitmap.obj: bitmap.c bitmap.h plot.h
88
89 command.obj: command.c plot.h setshow.h help.h
90         $(LITECC) $(CFLAGS) command.c
91
92 contour.obj: contour.c plot.h
93
94 datafile.obj: datafile.h plot.h
95
96 dynarray.obj: dynarray.h ploy.h
97
98 eval.obj: eval.c plot.h
99
100 fit.obj: fit.c fit.h matrix.h plot.h
101
102 graph3d.obj: graphics.c plot.h setshow.h
103
104 graphics.obj: graphics.c plot.h setshow.h
105
106 help.obj: help.c plot.h help.h
107
108 history.obj: history.c gp_hist.h plot.h
109
110 internal.obj: internal.c plot.h
111
112 interpol.obj: interpol.c plot.h setshow.h
113
114 matrix.obj: matrix.c matrix.h fit.h
115
116 misc.obj: misc.c plot.h setshow.h help.h
117
118 parse.obj: parse.c plot.h
119         $(LITECC) $(CFLAGS) parse.c
120
121 plot.obj: plot.c plot.h setshow.h
122         $(LITECC) $(CFLAGS) plot.c
123
124 readline.obj: readline.c
125
126 save.obj: save.c plot.h ansichek.h stdfn.h syscfg.h
127
128 scanner.obj: scanner.c plot.h
129
130 set.obj: set.c plot.h setshow.h
131
132 show.obj: show.c plot.h setshow.h
133
134 specfun.obj: specfun.c
135
136 standard.obj: standard.c plot.h
137
138 stdfn.obj: stdfn.c stdfn.h
139
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
143
144 time.obj:  time.c gp_time.h plot.h
145
146 unset.obj: unset.c plot.h ansichek.h stdfn.h syscfg.h
147
148 util.obj: util.c plot.h
149
150 variable.obj: variable.c plot.h variable.h
151
152 version.obj: version.c
153
154 # convert gnuplot.doc to gnuplot.gih
155 $(HELPFILE): doc2gih.exe docs\gnuplot.doc
156         doc2gih docs\gnuplot.doc $(HELPFILE)
157
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
160
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
163
164 # copy Borland Graphics Interface files to current directory
165 cga.bgi: $(BGI)\cga.bgi
166         copy $(BGI)\$< $<
167
168 egavga.bgi: $(BGI)\egavga.bgi
169         copy $(BGI)\$< $<
170
171 herc.bgi: $(BGI)\herc.bgi
172         copy $(BGI)\$< $<
173
174 att.bgi: $(BGI)\att.bgi
175         copy $(BGI)\$< $<
176
177 # clean target - remove all temp files, but leave executable intact
178 # needed when changing configuration (model or overlaying)
179
180 clean:
181         del *.obj
182         del gnuplot.map
183         del doc2gih.exe
184
185 # realclean target - remove all files created by the makefile
186
187 realclean: clean
188         del gnuplot.exe
189         del gnuplot.gih
190         del demo\bf_test.exe
191         del demo\binary1
192         del demo\binary2
193         del demo\binary3