2 # $Id: makefile.emx,v 1.5 2002/03/07 16:20:15 lhecking Exp $
4 # GNUPLOT Makefile for use with emx-0.8f/gcc and ndmake 4.5 on MS-DOS
6 # This version has had very little testing.
10 # uncomment the following two lines if you have
11 # Johannes Martin's SVGA/VESA extensions
12 # A VESA 1.2 compatible display, and the vesa_emx.com TSR are required.
13 # "set term vgal" needs vesa_ibm.com with svgakit/vesa_emx version 1.2.
17 # where to place gnuplot.gih helpfile
18 HELPFILE = gnuplot.gih
20 CFLAGS = -c -O2 -DMSDOS -DDOS32 -DPROTOTYPES -DHAVE_STRINGIZE -DREADLINE -DHAVE_STRNICMP
22 # see other terminal defines in term.h
23 TERMFLAGS = -DEMXVGA $(VESA)
25 OBJS = alloc.o binary.o bitmap.o command.o contour.o datafile.o dynarray.o \
26 eval.o fit.o graphics.o graph3d.o help.o hidden3d.o history.o \
27 internal.o interpol.o matrix.o misc.o parse.o plot.o plot2d.o \
28 plot3d.o readline.o save.o specfun.o scanner.o set.o show.o \
29 standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o \
32 CSOURCE5 = term\aed.trm term\cgi.trm term/dumb.trm term/dxf.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/pbm.trm term\pm.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 term\emxvga.trm
42 all: gnuplotx.exe $(HELPFILE)
45 CCC = gcc $(CFLAGS) -o $*.o $*.c
47 gnuplotx.exe: $(OBJS) emxlink.rsp
48 gcc -o gnuplot @emxlink.rsp -lm -lgraph $(VESALIB)
49 emxbind $(EMXPATH)/bin/emx.exe gnuplot gnuplotx.exe -p -acmi
51 emxlink.rsp: makefile.emx
52 echo bitmap.o> emxlink.rsp
53 echo command.o>> emxlink.rsp
54 echo contour.o>> emxlink.rsp
55 echo eval.o>> emxlink.rsp
56 echo graphics.o>> emxlink.rsp
57 echo graph3d.o>> emxlink.rsp
58 echo help.o>> emxlink.rsp
59 echo hidden3d.o>> emxlink.rsp
60 echo history.o>> emxlink.rsp
61 echo internal.o>> emxlink.rsp
62 echo misc.o>> emxlink.rsp
63 echo parse.o>> emxlink.rsp
64 echo plot.o>> emxlink.rsp
65 echo plot2d.o>> emxlink.rsp
66 echo plot3d.o>> emxlink.rsp
67 echo readline.o>> emxlink.rsp
68 echo specfun.o>> emxlink.rsp
69 echo interpol.o>> emxlink.rsp
70 echo scanner.o>> emxlink.rsp
71 echo set.o>> emxlink.rsp
72 echo show.o>> emxlink.rsp
73 echo standard.o>> emxlink.rsp
74 echo stdfn.o>> emxlink.rsp
75 echo term.o>> emxlink.rsp
76 echo time.o>> emxlink.rsp
77 echo util.o>> emxlink.rsp
78 echo variable.o>> emxlink.rsp
79 echo version.o>> emxlink.rsp
80 echo binary.o>> emxlink.rsp
81 echo fit.o>> emxlink.rsp
82 echo matrix.o>> emxlink.rsp
83 echo datafile.o>> emxlink.rsp
84 echo alloc.o>> emxlink.rsp
86 bitmap.o: bitmap.c bitmap.h plot.h
89 binary.o: binary.c plot.h
92 command.o: command.c plot.h setshow.h help.h fit.h
93 $(CCC) -DHELPFILE=\"$(HELPFILE)\"
95 contour.o: contour.c plot.h
101 graphics.o: graphics.c plot.h setshow.h
104 graph3d.o: graph3d.c plot.h setshow.h
107 fit.o: fit.c fit.h matrix.h plot.h
110 matrix.o: matrix.c matrix.h fit.h
113 help.o: help.c plot.h help.h
116 internal.o: internal.c plot.h
119 misc.o: misc.c plot.h setshow.h
122 parse.o: parse.c plot.h
125 plot.o: plot.c plot.h setshow.h
128 plot2d.o: plot2d.c plot.h
131 plot3d.o: plot3d.c plot.h
134 readline.o: readline.c
137 scanner.o: scanner.c plot.h
140 set.o: set.c plot.h setshow.h
143 show.o: show.c plot.h setshow.h
144 $(CCC) -DHELPFILE=\"$(HELPFILE)\"
146 specfun.o: specfun.c plot.h
149 interpol.o: interpol.c plot.h setshow.h
152 standard.o: standard.c plot.h
155 stdfn.o: stdfn.c stdfn.h
158 term.o: term.c term.h plot.h setshow.h bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
159 $(CCC) $(TERMFLAGS) -Iterm -I.
164 util.o: util.c plot.h
167 variable.o: variable.c plot.h variable.h
173 # convert gnuplot.doc to gnuplot.gih
174 doc2gih.exe: docs\doc2gih.c docs\termdoc.c
175 gcc -o doc2gih -I. docs/doc2gih.c docs/termdoc.c
176 emxbind $(EMXPATH)/bin/emx.exe doc2gih doc2gih.exe
178 $(HELPFILE): doc2gih.exe docs\gnuplot.doc
179 doc2gih docs\gnuplot.doc $(HELPFILE)
187 # veryclean target - remove all files created by the makefile