2 # $Id: makefile.st,v 1.6 2002/02/21 12:27:37 lhecking Exp $
4 # GNUPLOT Makefile for GCC-ST 1.x and 2.x
5 # in a cross development environment (unix) or a native TOS environment
6 # (see configuration section)
8 # Modified from the BorlandC makefile by Alexander Lehmann
11 # the executable will with both regular AES and MultiAES
12 # the version for MultiAES is relatively new and is only tested with a beta
13 # version of MultiAES (AES 4.0) and Mint 0.99, so you'll probably have to
16 # I was sortof pressed for time when I wrote the window support, so the version
17 # currently doesn't process redraw messages. All it does is clear the screen.
18 # I'll try to finish a better version for 3.4
20 # -------------------- begin of configuration section -----------------------
22 # CC is name of compiler producing TOS executables
23 # HOSTCC is the name of the native compiler
24 # SL is the path separator (/ for unix or UNIXMODE, \ for standard TOS)
26 # settings for crosscompiling:
32 # settings for native compiling:
37 # -O means optimisation in general
38 # o-f-p avoids link-unlink instructions
39 # s-r optimisation of loops and elimination of iterations variables
40 # c-r improve register movement
41 # if you have GCC 2.x (and time), you can choose the -O2 option
43 # first line for GCC 1.x, second and third for GCC 2.x
45 #OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce -fcombine-regs
46 OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce
47 #OPTFLAGS = -O2 -fomit-frame-pointer
50 # -DREADLINE to use the history/line editing capability. If you want this
51 # capability add -DREADLINE to CFLAGS
52 # -DHAVE_STRNICMP if your library supports strnicmp (GNU- and MiNTLib do)
54 # NOTE: since readline is the only place where AES events are processed, the
55 # new (window) version will no longer work without -DREADLINE
57 # note that current versions of gcc for Atari may very well have float.h
58 # if anyone can verify this, please fix it.
60 CFLAGS = -c -I. -I.. $(OPTFLAGS) -DATARI -DREADLINE -DPIPES -DHAVE_STRNICMP
63 # where to place gnuplot.gih helpfile
64 # if this is an absolute pathname, shel_find will not be used.
67 # -------------------- end of configuration section -------------------------
69 OBJS = bitmap.o command.o contour.o eval.o graphics.o graph3d.o \
70 hidden3d.o util3d.o help.o internal.o misc.o parse.o \
71 plot.o readline.o scanner.o set.o show.o specfun.o \
72 standard.o stdfn.o term.o util.o version.o binary.o fit.o \
73 matrix.o alloc.o datafile.o plot2d.o plot3d.o interpol.o \
74 variable.o save.o unset.o time.o dynarray.o history.o
76 # path prefix for the term subdirectory
79 TERMS = $(TERM)atariaes.trm $(TERM)dumb.trm $(TERM)eepic.trm $(TERM)epson.trm \
80 $(TERM)hpgl.trm $(TERM)hpljii.trm $(TERM)hppj.trm $(TERM)latex.trm \
81 $(TERM)pbm.trm $(TERM)post.trm $(TERM)texdraw.trm
83 all: gnuplot.prg $(HELPFILE) demo$(SL)bf_test.tos
86 $(CC) -o $@ $(OBJS) -lgem -lpml.olb
88 # strip -k $@ # you might want to add strip here
90 # to run bivariat demo ca. 100k stack is needed, all others work with ca. 32k
95 $(CC) -o $@ $(CFLAGS) $<
99 alloc.o: alloc.c plot.h
100 bitmap.o: bitmap.c bitmap.h plot.h
101 binary.o: binary.c plot.h
102 command.o: command.c plot.h setshow.h help.h
103 $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
104 contour.o: contour.c plot.h
105 datafile.o: datafile.c plot.h fnproto.h binary.h setshow.h
106 eval.o: eval.c plot.h
107 graphics.o: graphics.c plot.h setshow.h
108 graph3d.o: graph3d.c plot.h setshow.h
109 hidden3d.o: hidden3d.c plot.h setshow.h
110 util3d.o: util3d.c plot.h setshow.h
111 fit.o: fit.c fit.h matrix.h plot.h
112 interpol.o: interpol.c plot.h setshow.h
113 matrix.o: matrix.c matrix.h fit.h
114 help.o: help.c help.h
115 internal.o: internal.c plot.h
116 misc.o: misc.c plot.h setshow.h help.h
117 parse.o: parse.c plot.h
118 plot.o: plot.c plot.h fit.h setshow.h fnproto.h
119 plot2d.o: plot2d.c plot.h setshow.h fit.h binary.h help.h
120 plot3d.o: plot3d.c plot.h setshow.h binary.h help.h
121 readline.o: readline.c
122 save.o: save.c plot.h setshow.h
123 scanner.o: scanner.c plot.h
124 show.o: set.c plot.h setshow.h
125 $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
126 set.o: show.c plot.h setshow.h
127 specfun.o: plot.h specfun.c
128 standard.o: standard.c plot.h
129 stdfn.o: stdfn.c sstdfn.h
130 term.o: term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
131 $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
132 unset.o: unset.c plot.h setshow.h tables.h
133 util.o: util.c plot.h
134 variable.o: variable.c plot.h variable.h
137 # convert gnuplot.doc to gnuplot.gih
138 $(HELPFILE): doc2gih docs$(SL)gnuplot.doc
139 doc2gih docs$(SL)gnuplot.doc $(HELPFILE)
141 doc2gih: docs$(SL)doc2gih.c docs$(SL)termdoc.c
142 $(HOSTCC) -I. -I.. -o doc2gih docs$(SL)doc2gih.c docs$(SL)termdoc.c
144 demo$(SL)bf_test.tos: bf_test.o binary.o alloc.o
145 $(CC) -s -o $@ bf_test.o binary.o alloc.o -lpml
147 clean: # remove temporary files, but leave executable intact
148 rm -f $(OBJS) bf_test.o doc2gih
150 realclean: clean # remove all files generated by make
151 rm -f gnuplot.prg gnuplot.gih demo$(SL)binary1 demo$(SL)binary2
152 rm -f demo$(SL)binary3 demo$(SL)bf_test.tos
154 # empty rules for file extensions (some makes might need this)