File: makefile.mto

package info (click to toggle)
gnuplot 4.0.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,448 kB
  • ctags: 6,623
  • sloc: ansic: 63,562; lisp: 5,011; cpp: 970; sh: 900; makefile: 753; objc: 647; asm: 539; csh: 297; awk: 235; pascal: 192; perl: 44
file content (238 lines) | stat: -rw-r--r-- 7,960 bytes parent folder | download | duplicates (3)
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
#
# $Id: makefile.mto,v 1.5 1999/12/01 22:07:57 lhecking Exp $
#
# GNUPLOT Makefile for GCC-ST 1.x and 2.x
# in a cross development environment (unix) or a native TOS environment
# (see configuration section)
#
# Modified from the BorlandC makefile by Alexander Lehmann
# Modified by Dirk Stadler for outboard terminal support
#
# produces executable which pipes data to the GCLIENT.PRG

# -------------------- begin of configuration section -----------------------

# CC is name of compiler producing TOS executables
# HOSTCC is the name of the native compiler
# SL is the path separator (/ for unix or UNIXMODE, \ for standard TOS)

# settings for crosscompiling:
CC = gcc
HOSTCC = gcc
SL=/
MATHLIB= -lpml

# settings for native compiling:
#CC = gcc
#HOSTCC = $(CC)
#SL=\
#MATHLIB= -lpml

# -O means optimisation in general
#  o-f-p avoids link-unlink instructions
#  s-r	 optimisation of loops and elimination of iterations variables
#  c-r	 improve register movement
# if you have GCC 2.x (and time), you can choose the -O2 option

# first line for GCC 1.x, second and third for GCC 2.x

#OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce -fcombine-regs
#OPTFLAGS = -O -fomit-frame-pointer -fstrength-reduce
OPTFLAGS = -O2 -fomit-frame-pointer

TTFLAGS  = -m68020 -m68881
COMMON   = -DMTOS -DREADLINE -DPIPES -DHAVE_STRNICMP -DNO_FLOAT_H -I. -I..

# note that current versions of gcc for Atari may very well have float.h
# if anyone can verify this, please fix it.

# -c means don't link
# -DREADLINE to use the history/line editing capability. If you want this
#            capability add -DREADLINE to CFLAGS

# NOTE: since readline is the only place where AES events are processed, the
#	   new (window) version will no longer work without -DREADLINE

CFLAGS     = -c $(OPTFLAGS) $(COMMON)
LDFLAGS    = -lpml -lgem

CFLAGS30   = -c $(OPTFLAGS) $(TTFLAGS) $(COMMON) 
LDFLAGS30  = -lgem -lgnu020

LDFLAGSSFP = -lpmlsfp -lgem -lgnusfp

TERMFLAGS  =

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

# gnuplot.doc as Tex-File
TEXFILE=docs/gnuplot.tex

# -------------------- end of configuration section -------------------------

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

OBJS30 = bitmap.o0 command.o0 contour.o0 eval.o0 graphics.o0 graph3d.o0 \
         hidden3d.o0 util3d.o0 help.o0 internal.o0 misc.o0 parse.o0 \
         plot.o0 readline.o0 scanner.o0 set.o0 show.o0 specfun.o0 \
         standard.o0 stdfn.o0 term.o0 util.o0 version.o0 binary.o0 fit.o0 \
         matrix.o0 alloc.o0 datafile.o0 plot2d.o0 plot3d.o0 interpol.o0 \
         variable.o0 save.o0 tables.o0 unset.o0 time.o0 dynarray.o0 \
         hostory.o0
	
# path prefix for the term subdirectory
TERM  = term$(SL)

TERMS = $(TERM)atariaes.trm $(TERM)atarivdi.trm $(TERM)multitos.trm \
        $(TERM)dumb.trm $(TERM)eepic.trm \
        $(TERM)epson.trm $(TERM)hpgl.trm $(TERM)hpljii.trm $(TERM)hppj.trm \
        $(TERM)latex.trm $(TERM)pbm.trm $(TERM)post.trm $(TERM)texdraw.trm

all: gnuplot.tos gnuplt30.tos gpltsfp.tos $(HELPFILE) $(TEXFILE) demo$(SL)binary1

gnuplot.tos:  $(OBJS)
	         $(CC) -o $@ $(OBJS) $(LDFLAGS)
	         fixstk 120k $@
	         xstrip -k $@
	
gnuplt30.tos: $(OBJS30)
	         $(CC) -o $@ $(OBJS30) $(LDFLAGS30)
	         fixstk 120k $@
	         xstrip -k $@

gpltsfp.tos: $(OBJS)
	         $(CC) -o $@ $(OBJS) $(LDFLAGSSFP)
	         fixstk 120k $@
	         xstrip -k $@
		
# to run bivariat demo ca. 100k stack is needed, all others work with ca. 32k

# default rules

%.o:  %.c
	 $(CC) -o $@ $(CFLAGS) $<

%.o0: %.c
	 $(CC) -o $@ $(CFLAGS30) $<
	
# dependencies

# for GNUPLOT.TOS and GPLTSFP.TOS

alloc.o:     alloc.c plot.h
bitmap.o:    bitmap.c bitmap.h plot.h
binary.o:    binary.c plot.h
command.o:   command.c plot.h setshow.h help.h
	        $(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
contour.o:   contour.c plot.h
datafile.o:  datafile.c plot.h fnproto.h binary.h setshow.h
eval.o:      eval.c plot.h
graphics.o:  graphics.c plot.h setshow.h
graph3d.o:   graph3d.c plot.h setshow.h
hidden3d.o:  hidden3d.c plot.h setshow.h
util3d.o:    util3d.c plot.h setshow.h 
fit.o:       fit.c fit.h matrix.h plot.h
interpol.o:  interpol.c plot.h setshow.h
matrix.o:    matrix.c matrix.h fit.h
help.o:      help.c help.h
internal.o:  internal.c plot.h
misc.o:      misc.c plot.h setshow.h help.h
parse.o:     parse.c plot.h
plot.o:      plot.c plot.h fit.h setshow.h fnproto.h
plot2d.o:    plot2d.c plot.h setshow.h fit.h binary.h help.h
plot3d.o:    plot3d.c plot.h setshow.h binary.h help.h
readline.o:  readline.c
save.o:      save.c plot.h setshow.h
scanner.o:   scanner.c plot.h
show.o:      set.c plot.h setshow.h
		$(CC) -o $@ $(CFLAGS) -DHELPFILE=\"$(HELPFILE)\" $<
set.o:       show.c plot.h setshow.h
specfun.o:   plot.h specfun.c
standard.o:  standard.c plot.h
stdfn.o:     stdfn.c stdfn.h
tables.o:    tables.c plot.h tables.h
term.o:      term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
	        $(CC) -o $@ $(CFLAGS) $(TERMFLAGS) -Iterm term.c
unset.o:     unset.c plot.h setshow.h tables.h
util.o:      util.c plot.h
variable.o:  variable.c plot.h variable.h
version.o:   version.c

# for GNUPLT30.TOS

alloc.o0:    alloc.c plot.h
bitmap.o0:   bitmap.c bitmap.h plot.h
binary.o0:   binary.c plot.h
command.o0:  command.c plot.h setshow.h help.h
	        $(CC) -o $@ $(CFLAGS30) -DHELPFILE=\"$(HELPFILE)\" $<
contour.o0:  contour.c plot.h
datafile.o0: datafile.c plot.h fnproto.h binary.h setshow.h
eval.o0:     eval.c plot.h
graphics.o0: graphics.c plot.h setshow.h
graph3d.o0:  graph3d.c plot.h setshow.h
hidden3d.o0: hidden3d.c plot.h setshow.h
util3d.o0:   util3d.c plot.h setshow.h
fit.o0:      fit.c fit.h matrix.h plot.h
interpol.o0: interpol.c plot.h setshow.h
matrix.o0:   matrix.c matrix.h fit.h
help.o0:     help.c help.h
internal.o0: internal.c plot.h
misc.o0:     misc.c plot.h setshow.h help.h
parse.o0:    parse.c plot.h
plot.o0:     plot.c plot.h fit.h setshow.h fnproto.h
plot2d.o0:   plot2d.c plot.h setshow.h fit.h binary.h help.h
plot3d.o0:   plot3d.c plot.h setshow.h binary.h help.h
readline.o0: readline.c
save.o0:     save.c plot.h setshow.h
scanner.o0:  scanner.c plot.h
show.o0:     set.c plot.h setshow.h
		$(CC) -o $@ $(CFLAGS30) -DHELPFILE=\"$(HELPFILE)\" $<
set.o0:      show.c plot.h setshow.h
specfun.o0:  plot.h specfun.c
standard.o0: standard.c plot.h
stdfn.o0:    stdfn.c stdfn.h
tables.o0:   tables.c plot.h tables.h
term.o0:     term.c term.h plot.h set.c show.c bitmap.h $(TERMS)
	        $(CC) -o $@ $(CFLAGS30) $(TERMFLAGS) -Iterm term.c
unset.o0:    unset.c plot.h setshow.h tables.h
util.o0:     util.c plot.h
variable.o0: variable.c plot.h variable.h
version.o0:  version.c

$(HELPFILE): doc2gih docs$(SL)gnuplot.doc
	        doc2gih docs$(SL)gnuplot.doc $@

$(TEXFILE):  doc2tex docs$(SL)gnuplot.doc
	        doc2tex docs$(SL)gnuplot.doc $@

doc2gih:     docs$(SL)doc2gih.c docs$(SL)termdoc.c
	        $(HOSTCC) -I. -I.. -Idocs -o $@ $<

doc2tex:     docs$(SL)doc2tex.c docs$(SL)termdoc.c
	        $(HOSTCC) -DALL_TERM_DOC -I. -I.. -Idocs -o $@ $<

bf_test:     bf_test.c binary.c alloc.c
	     $(HOSTCC) -DMTOS -o $@ bf_test.c binary.c alloc.c $(MATHLIB)

demo$(SL)binary1: bf_test
	     (cd demo; ../bf_test)

clean: # remove temporary files, but leave executable intact
	         rm -f $(OBJS) $(OBJS30) $(OBJSSFP) bf_test.o

realclean:    clean # remove all files generated by make
	         rm -f *.tos doc2gih doc2tex bf_test
		 rm -f demo$(SL)binary1 demo$(SL)binary2 demo$(SL)binary3
		 rm -f $(HELPFILE) $(TEXFILE)

# empty rules for file extensions (some makes might need this)
%.trm:

%.doc: