File: makefile.286

package info (click to toggle)
gnuplot 4.0.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,448 kB
  • ctags: 6,623
  • sloc: ansic: 63,562; lisp: 5,011; cpp: 970; sh: 900; makefile: 753; objc: 647; asm: 539; csh: 297; awk: 235; pascal: 192; perl: 44
file content (193 lines) | stat: -rw-r--r-- 5,151 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#
# $Id: makefile.286,v 1.5 1999/12/01 22:07:56 lhecking Exp $
#
# GNUPLOT Makefile for Borland C++ 3.x
#   and Phar Lap LITE286 DOS extender
#
# both LITE286 bin and BORLANDC bin directories must be on the path

# where to place gnuplot.gih helpfile
HELPFILE = gnuplot.gih
# location of LITE286 Pharlap Extender
LITE=c:\lite286
LITECC=$(LITE)\bin\bcc286
# location of Turbo C compiler
TC = c:\borlandc
# name of C compiler
CC = bcc
#CC = tcc
# location of TLINK.EXE and TCC.EXE or BCC.EXE
BIN = $(TC)\bin\\
#BIN =
# location of BGI files,
# change this line if not in TC directory, i.e. $(TC)\bgi
BGI = $(TC)\bgi

# -c means don't link, -f means emulate 8087 if not present
# -ml says large model 
# -M means produce link map
# -y means include line numbers for debugger
# -v means include debug info
# -w- means ignore warnings and do not report them
# -DREADLINE to use the history/line editing capability. If you want this 
#    capability add -DREADLINE to CFLAGS
CFLAGS = -Ff=256 -c -f -ml -w- -I$(TC)\include -DMSDOS -DPC -DREADLINE -DHAVE_STRNICMP
TERMFLAGS =

OBJ1 = alloc.obj binary.obj bitmap.obj command.obj contour.obj datafile.obj
OBJ2 = dynarray.obj eval.obj fit.obj graph3d.obj graphics.obj help.obj
OBJ3 = history.obj hidden3d.obj internal.obj interpol.obj matrix.obj misc.obj
OBJ4 = parse.obj plot.obj plot2d.obj plot3d.obj readline.obj save.obj
OBJ5 = scanner.obj set.obj show.obj specfun.obj standard.obj stdfn.obj
OBJ6 = tables.obj term.obj time.obj unset.obj util.obj util3d.obj
OBJ7 = variable.obj version.obj

BGIFILES = cga.bgi egavga.bgi herc.bgi att.bgi

OBJS =	$(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7)

CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
	term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
	term\hp2648.trm term\hpgl.trm term\hpljii.trm 
CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
	term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
	term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
	term\v384.trm term\x11.trm
CSOURCE8 = contour.c specfun.c binary.c interpol.c

all: gnuplot.exe $(HELPFILE) demo\bf_test.exe $(BGIFILES)

# use response file to avoid command-line overflow
gnuplot.exe: $(OBJS)
	$(BIN)tlink @&&!
$(LITE)\bc3\lib\c0pl +
bitmap command eval graphics graph3d help internal misc parse +
plot scanner setshow specfun standard stdfn term util version contour +
binary interpol datafile alloc +
readline +
$(LITE)\bc3\lib\emu286.lib +
,gnuplot,gnuplot, +
$(TC)\lib\emu +
$(TC)\lib\mathl +
$(LITE)\bc3\lib\graph286.lib +
$(LITE)\bc3\lib\phapi +
$(LITE)\bc3\lib\bcl286, +
gnuplot.def
!


# default rules

.c.obj:
	$(LITECC) $(CFLAGS) $<

alloc.obj: alloc.c alloc.h plot.h

bitmap.obj: bitmap.c bitmap.h plot.h

command.obj: command.c plot.h setshow.h help.h
	$(LITECC) $(CFLAGS) command.c

contour.obj: contour.c plot.h

datafile.obj: datafile.h plot.h

dynarray.obj: dynarray.h ploy.h

eval.obj: eval.c plot.h

fit.obj: fit.c fit.h matrix.h plot.h

graph3d.obj: graphics.c plot.h setshow.h

graphics.obj: graphics.c plot.h setshow.h

help.obj: help.c plot.h help.h

history.obj: history.c gp_hist.h plot.h

internal.obj: internal.c plot.h

interpol.obj: interpol.c plot.h setshow.h

matrix.obj: matrix.c matrix.h fit.h

misc.obj: misc.c plot.h setshow.h help.h

parse.obj: parse.c plot.h
	$(LITECC) $(CFLAGS) parse.c

plot.obj: plot.c plot.h setshow.h
	$(LITECC) $(CFLAGS) plot.c

readline.obj: readline.c

save.obj: save.c plot.h ansichek.h stdfn.h syscfg.h

scanner.obj: scanner.c plot.h

set.obj: set.c plot.h setshow.h

show.obj: show.c plot.h setshow.h

specfun.obj: specfun.c

standard.obj: standard.c plot.h

stdfn.obj: stdfn.c stdfn.h

# the CSOURCE? dependencies are not up to date (but who cares)
term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
	$(LITECC) $(CFLAGS) $(TERMFLAGS) -Iterm -I. term.c

time.obj:  time.c gp_time.h plot.h

unset.obj: unset.c plot.h ansichek.h stdfn.h syscfg.h

util.obj: util.c plot.h

variable.obj: variable.c plot.h variable.h

version.obj: version.c

# convert gnuplot.doc to gnuplot.gih
$(HELPFILE): doc2gih.exe docs\gnuplot.doc
	doc2gih docs\gnuplot.doc $(HELPFILE)

doc2gih.exe: docs\doc2gih.c docs\termdoc.c
    $(BIN)$(CC) -edoc2gih.exe -w- -ml -I$(TC)\include -L$(TC)\lib docs\doc2gih.c docs\termdoc.c

demo\bf_test.exe: bf_test.c binary.obj alloc.obj
    $(BIN)$(CC) -edemo\bf_test.exe -w- -ml -I$(TC)\include -L$(TC)\lib bf_test.c binary.obj alloc.obj

# copy Borland Graphics Interface files to current directory
cga.bgi: $(BGI)\cga.bgi
	copy $(BGI)\$< $<

egavga.bgi: $(BGI)\egavga.bgi
	copy $(BGI)\$< $<

herc.bgi: $(BGI)\herc.bgi
	copy $(BGI)\$< $<

att.bgi: $(BGI)\att.bgi
	copy $(BGI)\$< $<

# clean target - remove all temp files, but leave executable intact
# needed when changing configuration (model or overlaying)

clean:
	del *.obj
	del gnuplot.map
	del doc2gih.exe

# realclean target - remove all files created by the makefile

realclean: clean
	del gnuplot.exe
	del gnuplot.gih
	del demo\bf_test.exe
	del demo\binary1
	del demo\binary2
	del demo\binary3