Initial release of Maemo 5 port of gnuplot
[gnuplot] / config / makefile.msc
1 #
2 # $Id: makefile.msc,v 1.5 1999/12/01 22:07:56 lhecking Exp $
3 #
4 # GNUPLOT Makefile for use with Microsoft C  Version 5.10
5 #  and Microsoft Program Maintenance Utility  Version 4.07
6
7
8 # where to place gnuplot.gih helpfile
9 HELPFILE = gnuplot.gih
10
11 # /c  means don't link
12 # /AL means large memory model (large code, large data)
13 # /DPC means define symbol PC
14 # /DLITE means no hiddenline removal
15 # /Gt means no 64k segment problem
16 # /Gt16 means all data items larger than 16 byte allocated outside
17 #       default DATA segment thus providing more Stack space
18 # /G2 means 80286 code
19 # /Og /Gs global optimization, no stack probes
20 # /FPi87    use inline 80x87 code (requires 486 or x87 Copro)
21 # CFLAGS = /c /AL /DPC #/DMSDOS #/Zi #/Od
22 # CFLAGS = /c /AL /G2 /Gt16 /Zi /Od /DPC /DREADLINE
23 CFLAGS = /c /AL /EM /G2 /Gt16 /Gs /Og /FPi87 /DPC /DREADLINE /DLITE /D__MSC__ /DHAVE_STRNICMP /nologo
24 # CFLAGS = /c /AL /Gt16 /Gs /Og /DPC /DREADLINE
25 # CFLAGS = /c /AL /EM /DPC /DREADLINE /DLITE /Gt /D__MSC__ #/Zi #/Od
26
27 # see other terminal defines in term.h
28 TERMFLAGS = 
29
30 # /NOE means NO EXTernal Dictionary
31 # /EX  means pack EXE file
32 # /ST:10000 means stack size 10000 bytes
33 LINKFLAGS = /NOE /EX /ST:30000 /ONERROR:NOEXE #/codeview
34
35 OBJS =  alloc.obj binary.obj bitmap.obj command.obj contour.obj datafile.obj \
36         dynarray.obj eval.obj fit.obj graphics.obj graph3d.obj help.obj \
37         hidden3d.obj history.obj internal.obj misc.obj parse.obj plot.obj \
38         plot2d.obj plot3d.obj readline.obj scanner.obj set.obj show.obj \
39         standard.obj stdfn.obj term.obj util.obj version.obj pcgraph.obj \
40         hrcgraph.obj corgraph.obj specfun.obj interpol.obj matrix.obj \
41         variable.obj save.obj tables.obj unset.obj time.obj
42
43 CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.trm term\dxy.trm \
44         term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
45         term\hp2648.trm term\hpgl.trm term\hpljii.trm 
46 CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
47         term\iris4d.trm term\kyo.trm term\latex.trm term/pbm.trm term\pc.trm 
48 CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
49         term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
50         term\v384.trm term\x11.trm
51 CSOURCE8 = contour.c binary.c
52 CC      = clx
53 # default rules
54 .c.obj:
55         $(CC) $(CFLAGS) $*.c
56
57 .asm.obj:
58         masm $*;
59
60 default: gnuplot.exe $(HELPFILE) demo\bf_test.exe
61
62 # FYI gnuplot.opt contains a list of the corefiles...
63 # (eg COPY gnuplot.opt linkopt.msc  gets most of these)
64
65 linkopt.msc: makefile.msc
66       echo hrcgraph+corgraph+graph3d+(contour)+ >linkopt.msc
67       echo pcgraph+term+graphics+bitmap+ >>linkopt.msc
68       echo (set)+(show)+(help)+(specfun)+(binary)+ >>linkopt.msc
69       echo plot+plot2d+plot3d+command+internal+interpol+misc+readline+ >>linkopt.msc
70       echo parse+eval+scanner+standard+stdfn+util+ >>linkopt.msc
71       echo (version)+(fit+matrix)+datafile+alloc+variable >>linkopt.msc
72       echo gnuplot >>linkopt.msc
73       echo nul; >>linkopt.msc
74
75 pcgraph.obj: pcgraph.asm header.mac lineproc.mac
76
77 corgraph.obj: corgraph.asm header.mac lineproc.mac
78
79 hrcgraph.obj: hrcgraph.asm header.mac lineproc.mac
80
81 binary.obj: binary.c 
82
83 bitmap.obj: bitmap.c bitmap.h plot.h
84
85 command.obj: command.c plot.h setshow.h help.h
86         $(CC) $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" command.c
87
88 contour.obj: contour.c plot.h
89
90 eval.obj: eval.c plot.h
91
92 gnubin.obj: gnubin.c
93
94 graphics.obj: graphics.c plot.h setshow.h
95
96 graph3d.obj: graphics.c plot.h setshow.h
97
98 fit.obj: fit.c fit.h matrix.h plot.h
99
100 matrix.obj: matrix.c matrix.h fit.h
101
102 help.obj: help.c plot.h help.h
103
104 internal.obj: internal.c plot.h
105
106 misc.obj: misc.c plot.h setshow.h
107
108 parse.obj: parse.c plot.h
109
110 plot.obj: plot.c plot.h setshow.h
111
112 readline.obj: readline.c
113
114 save.obj: save.c plot.h setshow.h
115
116 scanner.obj: scanner.c plot.h
117
118 set.obj: set.c plot.h setshow.h
119
120 show.obj: show.c plot.h setshow.h
121         $(CC) $(CFLAGS) /DHELPFILE=\"$(HELPFILE)\" show.c
122
123 standard.obj: standard.c plot.h
124
125 stdfn.obj: stdfn.c stdfn.h
126
127 specfun.obj: specfun.c plot.h
128
129 interpol.obj: interpol.c plot.h setshow.h
130
131 tables.obj: tables.c plot.h tables.h
132
133 term.obj: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
134         $(CC) $(CFLAGS) $(TERMFLAGS) /Iterm term.c
135
136 unset.obj: unset.c plot.h setshow.h tables.h
137
138 util.obj: util.c plot.h
139
140 variable.obj: variable.c plot.h variable.h
141
142 version.obj: version.c
143
144 # convert gnuplot.doc to gnuplot.gih
145 doc2gih.exe: docs\doc2gih.c docs\termdoc.c
146         $(CC) /Fedoc2gih.exe docs\doc2gih.c docs\termdoc.c
147
148 $(HELPFILE): doc2gih.exe docs\gnuplot.doc
149         doc2gih docs\gnuplot.doc $(HELPFILE)
150
151 # Object files in link command line are ordered to avoid far jumps.
152 # use linkopt.msc to avoid command-line overflow
153
154 gnuplot.exe: $(OBJS) linkopt.msc
155  link $(LINKFLAGS) @linkopt.msc
156
157 #make binary demo files
158 demo\bf_test.exe: bf_test.c dbinary.obj alloc.obj
159       $(CC) /AL /DPC /D__MSC__ /F 5000 /Gt /W1 /Fedemo\bf_test.exe bf_test.c dbinary.obj alloc.obj
160       cd demo
161       bf_test
162       cd ..
163
164 dbinary.obj: binary.c
165       $(CC) /c /AL /DPC /D__MSC__ /F 5000 /Gt /W1 /Fodbinary.obj binary.c
166
167 # clean up temporary files
168 clean:
169       del *.obj
170       del gnuplot.map
171       del demo\bf_test.exe
172       del linkopt.msc
173       
174 veryclean: clean
175       del gnuplot.exe
176       del $(HELPFILE)
177       del demo\binary1
178       del demo\binary2
179       del demo\binary3
180