85a11b072dc1b62eb2182d6bb431681a668ced02
[gnuplot] / config / makefile.ztc
1 #
2 # $Id: makefile.ztc,v 1.5 1999/12/01 22:07:58 lhecking Exp $
3 #
4 # GNUPLOT Makefile for Zortech C++ 3.x
5 #
6
7 # where to place gnuplot.gih helpfile
8 HELPFILE = gnuplot.gih
9
10 # -c  means don't link
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
17
18 CFLAGS=-c -mx -o+space  -Jm -DREADLINE -DHAVE_STRNICMP
19 LINK=blinkx
20 #LINK=386link
21 CC=ztc
22
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
29
30 OBJS =  $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6)
31
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
41
42 all: gnuplot.exe $(HELPFILE) demo\bf_test.exe
43
44 gnuplot.exe: $(OBJS)
45                          $(LINK) @linkopt.ztc
46 #@linkopt.pha
47
48 # default rules
49
50 .c.obj:
51         $(CC) $(CFLAGS) $<
52
53 bitmap.obj: bitmap.c bitmap.h plot.h
54
55 command.obj: command.c plot.h setshow.h help.h fit.h
56         $(CC) $(CFLAGS) command.c
57
58 contour.obj: contour.c plot.h
59
60 eval.obj: eval.c plot.h
61
62 graphics.obj: graphics.c plot.h setshow.h
63
64 graph3d.obj: graphics.c plot.h setshow.h
65
66 fit.obj: fit.c fit.h matrix.h plot.h
67
68 matrix.obj: matrix.c matrix.h fit.h
69
70 help.obj: help.c plot.h help.h
71
72 internal.obj: internal.c plot.h
73
74 interpol.obj: interpol.c plot.h setshow.h
75
76 misc.obj: misc.c plot.h setshow.h help.h
77
78 parse.obj: parse.c plot.h
79         $(CC) $(CFLAGS) parse.c
80
81 plot.obj: plot.c plot.h setshow.h
82         $(CC) $(CFLAGS) plot.c
83
84 readline.obj: readline.c
85
86 save.obj: save.c plot.h setshow.h
87
88 scanner.obj: scanner.c plot.h
89
90 set.obj : set.c plot.h setshow.h
91
92 show.obj: show.c plot.h setshow.h
93
94 specfun.obj: specfun.c
95
96 standard.obj: standard.c plot.h
97
98 stdfn.obj: stdfn.c stdfn.h
99
100 tables.obj: tables.c plot.h tables.h
101
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
105
106 unset.obj: unset.c plot.h setshow.h tables.h
107
108 util.obj: util.c plot.h
109
110 variable.obj: variable.c plot.h variable.h
111
112 version.obj: version.c
113
114 $(HELPFILE): doc2gih.exe docs\gnuplot.doc
115         doc2gih docs\gnuplot.doc $(HELPFILE)
116
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
120
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
123
124 # clean target - remove all temp files, but leave executable intact
125 # needed when changing configuration (model or overlaying)
126
127 clean:
128         del *.obj
129         del gnuplot.map
130         del doc2gih.exe
131
132 # realclean target - remove all files created by the makefile
133
134 realclean: clean
135         del gnuplot.exe
136         del gnuplot.gih
137         del demo\bf_test.exe
138         del demo\binary1
139         del demo\binary2
140         del demo\binary3