File: makefile.emx

package info (click to toggle)
gnuplot 3.5beta6.347-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,032 kB
  • ctags: 4,235
  • sloc: ansic: 42,086; makefile: 561; asm: 539; sh: 386; objc: 379; csh: 297; pascal: 194; perl: 138; lisp: 88
file content (185 lines) | stat: -rw-r--r-- 4,161 bytes parent folder | download
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
#
# Make file for use with emx-0.8f/gcc and ndmake 4.5
# for compiling for MS-DOS
# 
# This version has had very little testing.

EMXPATH = c:/emx

# uncomment the following two lines if you have 
# Johannes Martin's SVGA/VESA extensions
# A VESA 1.2 compatible display, and the vesa_emx.com TSR are required.
# "set term vgal" needs vesa_ibm.com with svgakit/vesa_emx version 1.2.
# VESA = -DEMXVESA
# VESALIB = -lvesa

# where to place gnuplot.gih helpfile
HELPFILE = gnuplot.gih

CFLAGS = -c -O2 -DMSDOS -DDOS32 -DANSI_C -DREADLINE -DHAVE_STRNICMP

# see other terminal defines in term.h
TERMFLAGS = -DEMXVGA $(VESA)

OBJS = 	bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
	help.o internal.o misc.o parse.o plot.o plot2d.o plot3d.o readline.o \
	specfun.o scanner.o set.o show.o standard.o stdfn.o term.o time.o \
	util.o version.o binary.o interpol.o fit.o matrix.o datafile.o alloc.o

CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.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/pbm.trm term\pm.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 term\emxvga.trm
CSOURCE8 = contour.c

all: gnuplotx.exe $(HELPFILE)

# default rules
CCC = gcc $(CFLAGS) -o $*.o $*.c

gnuplotx.exe: $(OBJS) emxlink.rsp
        gcc -o gnuplot @emxlink.rsp -lm -lgraph $(VESALIB)
	emxbind $(EMXPATH)/bin/emx.exe gnuplot gnuplotx.exe -p -acmi

emxlink.rsp: makefile.emx
	echo bitmap.o> emxlink.rsp
	echo command.o>> emxlink.rsp
	echo contour.o>> emxlink.rsp
	echo eval.o>> emxlink.rsp
	echo graphics.o>> emxlink.rsp
	echo graph3d.o>> emxlink.rsp
	echo help.o>> emxlink.rsp
	echo internal.o>> emxlink.rsp
	echo misc.o>> emxlink.rsp
	echo parse.o>> emxlink.rsp
	echo plot.o>> emxlink.rsp
	echo plot2d.o>> emxlink.rsp
	echo plot3d.o>> emxlink.rsp
	echo readline.o>> emxlink.rsp
	echo specfun.o>> emxlink.rsp
	echo interpol.o>> emxlink.rsp
	echo scanner.o>> emxlink.rsp
	echo set.o>> emxlink.rsp
	echo show.o>> emxlink.rsp
	echo standard.o>> emxlink.rsp
	echo stdfn.o>> emxlink.rsp
	echo term.o>> emxlink.rsp
	echo time.o>> emxlink.rsp
	echo util.o>> emxlink.rsp
	echo version.o>> emxlink.rsp
	echo binary.o>> emxlink.rsp
	echo fit.o>> emxlink.rsp
	echo matrix.o>> emxlink.rsp
	echo datafile.o>> emxlink.rsp
	echo alloc.o>> emxlink.rsp

bitmap.o: bitmap.c bitmap.h plot.h
	$(CCC)

binary.o: binary.c plot.h
	$(CCC)

command.o: command.c plot.h setshow.h help.h fit.h
	$(CCC) -DHELPFILE=\"$(HELPFILE)\"

contour.o: contour.c plot.h
	$(CCC)

eval.o: eval.c plot.h
	$(CCC)

graphics.o: graphics.c plot.h setshow.h
	$(CCC)

graph3d.o: graph3d.c plot.h setshow.h
	$(CCC)

fit.o: fit.c fit.h matrix.h plot.h
	$(CCC)

matrix.o: matrix.c matrix.h fit.h
	$(CCC)

help.o: help.c plot.h help.h
	$(CCC)

internal.o: internal.c plot.h
	$(CCC)

misc.o: misc.c plot.h setshow.h
	$(CCC)

parse.o: parse.c plot.h
	$(CCC)

plot.o: plot.c plot.h setshow.h
	$(CCC)

plot2d.o: plot2d.c plot.h
	$(CCC)

plot3d.o: plot3d.c plot.h
	$(CCC)

readline.o: readline.c
	$(CCC)

scanner.o: scanner.c plot.h
	$(CCC)

set.o: set.c plot.h setshow.h
	$(CCC)

show.o: show.c plot.h setshow.h
	$(CCC)

specfun.o: specfun.c plot.h
	$(CCC)

interpol.o: interpol.c plot.h setshow.h
	$(CCC)

standard.o: standard.c plot.h
	$(CCC)

stdfn.o: stdfn.c stdfn.h
	$(CCC)

term.o: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
	$(CCC) $(TERMFLAGS) -Iterm -I.

time.o : time.c
	$(CCC)

util.o: util.c plot.h
	$(CCC)

version.o: version.c
	$(CCC)

# convert gnuplot.doc to gnuplot.gih
doc2gih.exe: docs\doc2gih.c
	gcc -o doc2gih -I. docs/doc2gih.c
	emxbind $(EMXPATH)/bin/emx.exe doc2gih doc2gih.exe

$(HELPFILE): doc2gih.exe docs\gnuplot.doc
	doc2gih docs\gnuplot.doc $(HELPFILE)

clean:
	del *.o
	del emxlink.rsp
	del gnuplot
	del doc2gih

# veryclean target - remove all files created by the makefile

veryclean: clean
	del gnuplot.exe
	del doc2gih.exe
	del gnuplot.gih