blob: d80194621d21633698792efe7d8c11e386f73973 (
plain) (
blame)
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
|
--- topaz/Makefile.freebsd.orig Sun Oct 22 21:00:30 2000
+++ topaz/Makefile.freebsd Sat Nov 25 03:49:20 2000
@@ -2,16 +2,16 @@
clean: cleantopaz cleanview cleanps
# compiler
-CXX=g++
+CXX?=g++
# Where are include files kept
INCLUDE=.
# for FreeBSD
-CFLAGS= -I/usr/local/include -I/usr/local/include/ncurses -I/usr/X11R6/include -O2 -Wall -DTOPAZLINUX -DTOPAZ_NCURSES -DTOPAZ_EUC
-TOPAZLIB= -L/usr/local/lib -lm -lncurses -lgnugetopt -lreadline -lhistory
+CXXFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include -DTOPAZLINUX -DTOPAZ_NCURSES -DTOPAZ_EUC
+TOPAZLIB= -lm -lncurses -lreadline -lhistory
PSLIB= -lm
-VIEWLIB= -lm -L/usr/X11R6/lib -lX11
+VIEWLIB= -lm -L${LOCALBASE}/lib -lX11
# obj
OBJ=topaz.o plobj.o graph.o axis.o frame.o frame2.o valbuff.o script.o funcs.o\
@@ -29,150 +29,150 @@
$(CXX) -o topaz $(OBJ) $(TOPAZLIB)
topaz.o: topaz.cc script.h frame.h menudef.h cui.h msgbuff.h filepoint.h jmenudef_euc.h topazcurses.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c topaz.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c topaz.cc
plobj.o: plobj.cc plobj.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c plobj.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c plobj.cc
graph.o: graph.cc graph.h frame.h data.h vect.h vectdefs.h col.h styledisp.h \
browse.h gdi.h filepoint.h linearfit.h system.h convtxt.h regexpress.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c graph.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c graph.cc
axis.o: axis.cc axis.h frame.h graph.h col.h gdi.h minmax.h pointdefs.h naninf.h \
filepoint.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c axis.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c axis.cc
frame.o: frame.cc frame.h graph.h axis.h data.h gdi.h vectdefs.h pointdefs.h \
filepoint.h system.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c frame.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c frame.cc
frame2.o: frame2.cc frame.h graph.h axis.h data.h gdi.h vectdefs.h pointdefs.h \
topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c frame2.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c frame2.cc
valbuff.o: valbuff.cc valbuff.h buffarray.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c valbuff.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c valbuff.cc
script.o: script.cc script.h system.h tokenbuff.h graph.h buffarray.h cui.h \
browse.h objectlist.h pipecall.h minmax.h gamma.h filepoint.h convtxt.h msgbuff.h \
topazvalues.h regexpress.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c script.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c script.cc
funcs.o: funcs.cc script.h system.h tokenbuff.h graph.h buffarray.h cui.h \
browse.h objectlist.h pipecall.h minmax.h gamma.h filepoint.h convtxt.h \
msgbuff.h kanji.h topazvalues.h paths.h topazprintf.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c funcs.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c funcs.cc
conttoken.o: conttoken.cc script.h system.h tokenbuff.h graph.h buffarray.h \
cui.h browse.h objectlist.h pipecall.h topazvalues.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c conttoken.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c conttoken.cc
parsetoken.o: parsetoken.cc script.h system.h tokenbuff.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c parsetoken.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c parsetoken.cc
buffarray.o: buffarray.cc buffarray.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c buffarray.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c buffarray.cc
system.o: system.cc convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c system.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c system.cc
tokenbuff.o: tokenbuff.cc tokenbuff.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c tokenbuff.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c tokenbuff.cc
cui.o: cui.cc cui.h script.h buffarray.h gdi.h msgbuff.h filepoint.h kanji.h completion.h topazcurses.h frame.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c cui.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c cui.cc
msgbuff.o: msgbuff.cc msgbuff.h kanji.h topazcurses.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c msgbuff.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c msgbuff.cc
styleline.o: styleline.cc vectdefs.h pointdefs.h col.h gdi.h graph.h naninf.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c styleline.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c styleline.cc
gdi.o: gdi.cc vectdefs.h pointdefs.h filepoint.h graph.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c gdi.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c gdi.cc
data.o: data.cc data.h gdi.h vectdefs.h pointdefs.h graph.h frame.h topazvalues.h \
convtxt.h paths.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c data.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c data.cc
browse.o: browse.cc browse.h vectdefs.h cui.h convtxt.h regexpress.h topazcurses.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c browse.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c browse.cc
objectlist.o: objectlist.cc objectlist.h graph.h cui.h script.h vectdefs.h \
styledisp.h data.h parts.h gdi.h frame.h filepoint.h regexpress.h topazcurses.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c objectlist.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c objectlist.cc
styledisp.o: styledisp.cc styledisp.h col.h data.h frame.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c styledisp.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c styledisp.cc
loaddata.o: loaddata.cc data.h frame.h topazvalues.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c loaddata.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c loaddata.cc
plotdata.o: plotdata.cc data.h frame.h axis.h vectdefs.h pointdefs.h gdi.h \
spline.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c plotdata.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c plotdata.cc
calc.o: calc.cc calc.h data.h gamma.h graph.h frame.h naninf.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c calc.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c calc.cc
gamma.o: gamma.cc gamma.h naninf.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c gamma.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c gamma.cc
dinvq.o: dinvq.cc
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c dinvq.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c dinvq.cc
pspline.o: pspline.cc spline.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c pspline.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c pspline.cc
bspline.o: bspline.cc spline.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c bspline.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c bspline.cc
parts.o: parts.cc parts.h graph.h frame.h data.h defcharwidth.h gdi.h pointdefs.h \
vectdefs.h spline.h minmax.h filepoint.h kanji.h topazvalues.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c parts.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c parts.cc
filepoint.o: filepoint.cc filepoint.h pipecall.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c filepoint.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c filepoint.cc
pipecall.o: pipecall.cc pipecall.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c pipecall.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c pipecall.cc
naninf.o: naninf.cc naninf.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c naninf.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c naninf.cc
autoscale.o: autoscale.cc frame.h axis.h naninf.h topazvalues.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c autoscale.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c autoscale.cc
globalbuff.o: globalbuff.cc globalbuff.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c globalbuff.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c globalbuff.cc
genxdata.o: genxdata.cc data.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c genxdata.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c genxdata.cc
linearfit.o: linearfit.cc linearfit.h naninf.h calc.h graph.h frame.h data.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c linearfit.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c linearfit.cc
nonlinearfit.o: nonlinearfit.cc data.h buffarray.h frame.h naninf.h graph.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c nonlinearfit.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c nonlinearfit.cc
convtxt.o: convtxt.cc convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c convtxt.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c convtxt.cc
kanji.o: kanji.cc kanji.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c kanji.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c kanji.cc
paths.o: paths.cc paths.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c paths.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c paths.cc
topazprintf.o: topazprintf.cc topazprintf.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c topazprintf.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c topazprintf.cc
completion.o: completion.cc completion.h vectdefs.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c completion.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c completion.cc
regexpress.o: regexpress.cc regexpress.h valbuff.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c regexpress.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c regexpress.cc
cleantopaz:
-rm $(OBJ) topaz
@@ -181,7 +181,7 @@
$(CXX) -o tpv2ps $(PSOBJ) $(PSLIB)
tpv2ps.o: tpv2ps.cc vectdefs.h pointdefs.h col.h kanji.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c tpv2ps.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c tpv2ps.cc
cleanps:
-rm tpv2ps.o tpv2ps
@@ -190,7 +190,7 @@
$(CXX) -o tpvview tpvview.o kanji.o convtxt.o $(VIEWLIB)
tpvview.o: tpvview.cc vectdefs.h pointdefs.h Xparray.h col.h kanji.h convtxt.h
- $(CXX) -I$(INCLUDE) $(CFLAGS) -c tpvview.cc
+ $(CXX) -I$(INCLUDE) $(CXXFLAGS) -c tpvview.cc
cleanview:
-rm tpvview.o tpvview
|