forked from scottprahl/iad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
403 lines (348 loc) · 15.9 KB
/
Makefile
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
#
# Makefile by Scott Prahl, Aug 2017
#
VERSION = 3-11-2
#Base directory for installation
DESTDIR=/usr/local
#typical install hierarchy
BIN_INSTALL=$(DESTDIR)/bin
LIB_INSTALL=$(DESTDIR)/lib
INC_INSTALL=$(DESTDIR)/include
#Library extension
LIB_EXT = .dylib #MacOS X shared lib
#LIB_EXT = .so #linux shared lib
#LIB_EXT = .a #static lib
# default executable name
IAD_EXECUTABLE = ./iad
#Mathematica install requires binaries to be installed and then the
#files stored in the right place
MMA_INSTALL=/Users/prahl/Library/Mathematica/Applications/Optics
TAR=gnutar
CFLAGS =
CFLAGS = -dynamic -fno-common -Wall -ansi #Needed flags for MacOS X to build .dylib
LOCAL_LIBRARIES = -lm
IAD_OBJ = src/iad_util.o src/iad_calc.o src/iad_find.o src/iad_pub.o src/iad_io.o
AD_OBJ = src/nr_zbrak.o src/ad_bound.o src/ad_doubl.o src/ad_frsnl.o src/ad_globl.o src/ad_matrx.o \
src/ad_phase.o src/ad_prime.o src/ad_radau.o src/ad_start.o src/ad_cone.o src/ad_layers.o
NR_OBJ = src/nr_amoeb.o src/nr_amotr.o src/nr_brent.o src/nr_gaulg.o src/nr_mnbrk.o src/nr_rtsaf.o\
src/nr_util.o src/nr_hj.o
MAIN = Makefile INSTALL.md README.md License
DOCS = doc/CHANGELOG doc/ToDo.md doc/manual.tex \
doc/ad_src.pdf doc/iad_src.pdf doc/manual.pdf \
doc/ch3RTcorr.pdf doc/ch3spheremeas.pdf doc/ch3spheresR.pdf \
doc/ch3spheresT.pdf doc/ch3Doublespheres.pdf doc/colltrans.pdf \
doc/lightloss.pdf doc/niek_graph.pdf doc/glass-slide.pdf \
doc/cmdexe.png doc/valid.png doc/dual8.png \
doc/dual90.png doc/iad.bib
TEST = \
test/Makefile test/basic-A.rxt test/basic-B.rxt test/basic-C.rxt test/basic-D.rxt\
test/double.rxt test/example2.rxt test/il-A.rxt test/il-B.rxt test/il-C.rxt\
test/ink-A.rxt test/ink-B.rxt test/ink-C.rxt test/kenlee-A.rxt test/kenlee-B.rxt\
test/kenlee-C.rxt test/newton.rxt test/royston2.rxt test/royston3-A.rxt test/royston3-B.rxt\
test/royston3-C.rxt test/royston3-D.rxt test/royston3-E.rxt test/royston9-A.rxt test/royston9-B.rxt\
test/royston9-C.rxt test/royston9-D.rxt test/royston_ink1.rxt test/sample-A.rxt test/sample-B.rxt\
test/sample-C.rxt test/sample-D.rxt test/sample-E.rxt test/sample-F.rxt test/sample-G.rxt\
test/sevick-A.rxt test/sevick-B.rxt test/terse-A.rxt test/terse-B.rxt test/tio2_vis.rxt\
test/uterus.rxt test/valid.bat test/vio-A.rxt test/vio-B.rxt test/x_bad_data.rxt\
test/ville1.rxt test/fairway-A.rxt test/fairway-B.rxt test/fairway-C.rxt test/fairway-D.rxt\
test/fairway-E.rxt test/basic-E.rxt
MMA = mma/AD.m mma/AD.tm mma/Makefile
WSRC = src/ad.w src/ad_frsnl.w src/ad_prime.w src/iad_io.w \
src/ad_globl.w src/ad_radau.w src/iad_main.w \
src/ad_bound.w src/ad_layers.w src/ad_start.w src/iad_main_mus.w \
src/ad_chapter.w src/ad_layers_test.w src/iad.w src/iad_pub.w \
src/ad_cone.w src/ad_main.w src/iad_calc.w src/iad_type.w \
src/ad_cone_test.w src/ad_matrx.w src/iad_util.w src/ad_oblique_test.w\
src/ad_doubl.w src/ad_phase.w src/iad_find.w
NRSRC = src/nr_amoeb.c src/nr_amotr.h src/nr_gaulg.c src/nr_mnbrk.h src/nr_util.c src/nr_zbrak.h \
src/nr_amoeb.h src/nr_brent.c src/nr_gaulg.h src/nr_rtsaf.c src/nr_util.h \
src/nr_amotr.c src/nr_brent.h src/nr_mnbrk.c src/nr_rtsaf.h src/nr_zbrak.c \
src/mygetopt.c src/mygetopt.h src/version.h src/mc_lost.c src/mc_lost.h \
src/nr_hj.c src/nr_hj.h src/nr_zbrent.h src/nr_zbrent.c
CSRC = src/ad_frsnl.c src/ad_globl.c src/ad_matrx.c src/ad_start.c src/iad_calc.c src/iad_io.c \
src/iad_main.c src/ad_doubl.c src/iad_util.c src/ad_radau.c src/iad_pub.c \
src/ad_prime.c src/iad_find.c src/ad_phase.c src/ad_main.c src/ad_bound.c src/ad_cone.c \
src/ad_layers.c src/version.c
HSRC = src/ad_bound.h src/ad_globl.h src/ad_phase.h src/ad_start.h src/iad_io.h src/iad_type.h \
src/ad_doubl.h src/ad_main.h src/ad_prime.h src/iad_calc.h src/iad_util.h \
src/ad_frsnl.h src/ad_matrx.h src/ad_radau.h src/iad_find.h src/iad_pub.h src/ad_cone.h \
src/ad_cone_ez.h src/ad_layers.h
OSRC = src/system.bux src/ad.bux src/iad.bux src/cobweb.pl src/version.pl src/Makefile src/toDOS.pl
#tricky perl script that avoids variable names
#there must be a better way to do this name mangling!
#this is necessary because you can only have one period in a zip archive name
#VERSION := $(shell echo $(VERSION) | perl -pe 's/\./-/g; print "xp-version-"')
all : ad iad
check :
cd test ; make
doc docs: ad_doc iad_doc manual_doc
lib :
cd src ; make libiad.h
cp src/libiad.h .
cd src ; make libiad$(LIB_EXT)
cp src/libiad$(LIB_EXT) .
mma: mma/AD.m mma/AD.exe
mma/AD.exe:
make install-lib
cd mma ; make
install: ad iad
mkdir -p $(BIN_INSTALL)
rm -f $(BIN_INSTALL)/ad
cp ad $(BIN_INSTALL)
rm -f $(BIN_INSTALL)/iad
cp -f iad $(BIN_INSTALL)
install-lib: lib libiad$(LIB_EXT) libiad.h
mkdir -p $(LIB_INSTALL)
mkdir -p $(INC_INSTALL)
cp libiad.h $(INC_INSTALL)
cp libiad$(LIB_EXT) $(LIB_INSTALL)
install-mma: mma/AD.m mma/AD.exe
make install-lib
mkdir -p $(MMA_INSTALL)
mkdir -p $(MMA_INSTALL)/External
cp mma/AD.m $(MMA_INSTALL)
cp mma/AD.exe $(MMA_INSTALL)/External
install-all:
make install
make install-lib
make install-mma
dists: dist windist
dist:
touch src/version.h
cd src && ./version.pl
make doc
make clean
make
cd src ; make tidy
mkdir -p iad-$(VERSION)
mkdir -p iad-$(VERSION)/doc
mkdir -p iad-$(VERSION)/test
mkdir -p iad-$(VERSION)/src
mkdir -p iad-$(VERSION)/mma
ln $(MAIN) iad-$(VERSION)
ln $(DOCS) iad-$(VERSION)/doc
ln $(TEST) iad-$(VERSION)/test
ln $(WSRC) iad-$(VERSION)/src
ln $(HSRC) iad-$(VERSION)/src
ln $(CSRC) iad-$(VERSION)/src
ln $(NRSRC) iad-$(VERSION)/src
ln $(OSRC) iad-$(VERSION)/src
ln $(MMA) iad-$(VERSION)/mma
# $(TAR) cvf - iad-$(VERSION) | gzip > iad-$(VERSION).tar.gz
zip -r iad-$(VERSION) iad-$(VERSION)
rm -rf iad-$(VERSION)
cp iad-$(VERSION).zip iad-latest.zip
win : ad.exe iad.exe
windist: ad.exe iad.exe
make doc
cd src ; make tidy
mkdir -p iad-win-$(VERSION)
mkdir -p iad-win-$(VERSION)/doc
mkdir -p iad-win-$(VERSION)/test
mkdir -p iad-win-$(VERSION)/src
ln ad.exe iad.exe iad-win-$(VERSION)
ln $(MAIN) iad-win-$(VERSION)
ln $(DOCS) iad-win-$(VERSION)/doc
ln $(TEST) iad-win-$(VERSION)/test
ln $(WSRC) iad-win-$(VERSION)/src
ln $(HSRC) iad-win-$(VERSION)/src
ln $(CSRC) iad-win-$(VERSION)/src
ln $(NRSRC) iad-win-$(VERSION)/src
ln $(OSRC) iad-win-$(VERSION)/src
src/toDOS.pl iad-win-$(VERSION)/src/*.c
src/toDOS.pl iad-win-$(VERSION)/src/*.h
src/toDOS.pl iad-win-$(VERSION)/test/*.rxt
src/toDOS.pl iad-win-$(VERSION)/test/valid.bat
rm iad-win-$(VERSION)/src/*.bak
rm iad-win-$(VERSION)/test/*.bak
zip -r iad-win-$(VERSION) iad-win-$(VERSION)
rm -rf iad-win-$(VERSION)
cp iad-win-$(VERSION).zip iad-win-latest.zip
ad: $(WSRC) $(NRSRC)
cd src ; make ad
cp src/ad ad$(BINARY_EXTENSION)
iad: $(WSRC) $(NRSRC)
cd src ; make iad
cp src/iad iad$(BINARY_EXTENSION)
ad.exe: $(WSRC) $(NRSRC)
cd src ; make clean
cd src ; make CC=i686-w64-mingw32-gcc ad
mv src/ad.exe ad.exe
cd src ; make clean
iad.exe: $(WSRC) $(NRSRC)
cd src ; make clean
cd src ; make CC=i686-w64-mingw32-gcc iad
mv src/iad.exe iad.exe
cd src ; make clean
ad_debug: $(WSRC) $(NRSRC)
cd src ; make ad_debug
cp src/ad ad$(BINARY_EXTENSION)
iad_debug: $(WSRC) $(NRSRC)
cd src ; make iad_debug
cp src/iad iad$(BINARY_EXTENSION)
ad_doc:
perl -pi -e 's/\\def\\adversion.*/\\def\\adversion{$(VERSION)}/' src/ad.w
cd src ; make ad_doc
iad_doc:
perl -pi -e 's/\\def\\iadversion.*/\\def\\iadversion{$(VERSION)}/' src/iad.w
cd src ; make iad_doc
manual_doc doc/manual.pdf: doc/manual.tex
cd doc ; pdflatex manual
cd doc ; bibtex manual
cd doc ; pdflatex manual
cd doc ; pdflatex manual
clean:
rm -f ad iad *.pdf libiad.a libiad.so libiad.dylib libiad.h src/lib_iad.h src/lib_ad.h
rm -f src/*.o test/*.abg
rm -f texexec.tmp texexec.tui mpgraph.mp mprun.mp texexec-mpgraph.mp texexec.tex
rm -f src/*.aux src/*.dvi src/*.idx src/*.ref src/*.sref src/*.tex src/*.toc src/*.log src/*.scn
rm -f iad.exe ad.exe src/iad.exe src/ad.exe
realclean:
make clean
cd src ; make realclean
rm -f mpgraph.mp texexec-mpgraph.mp texexec.tmp
rm -f ad iad libiad.h libiad$(LIB_EXT)
rm -f doc/manual.pdf doc/manual.bbl doc/manual.blg doc/manual.out doc/manual.toc
rm -f doc/manual.aux doc/manual.log
cd mma ; make clean
cd test ; make clean
rm -f $(CSRC) $(HSRC)
tidy:
cd src ; make tidy
shorttest:
@echo "********* Basic tests ***********"
$(IAD_EXECUTABLE) -V 0 -r 0
$(IAD_EXECUTABLE) -V 0 -r 1
$(IAD_EXECUTABLE) -V 0 -r 0.4
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.049787
@echo "********* Specify sample index ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.045884 -n 1.5
@echo "********* Specify slide index ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -n 1.4 -N 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -n 1.4 -N 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -n 1.4 -N 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.045884 -n 1.4 -N 1.5
@echo "********* One slide on top ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -n 1.4 -N 1.5 -G t
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -n 1.4 -N 1.5 -G t
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -n 1.4 -N 1.5 -G t
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.045884 -n 1.4 -N 1.5 -G t
@echo "********* One slide on bottom ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -n 1.4 -N 1.5 -G b
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -n 1.4 -N 1.5 -G b
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -n 1.4 -N 1.5 -G b
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.045884 -n 1.4 -N 1.5 -G b
@echo "********* Absorbing Slide Tests ***********"
$(IAD_EXECUTABLE) -V 0 -r 0.0000000 -t 0.135335 -E 0.5
$(IAD_EXECUTABLE) -V 0 -r 0.0249268 -t 0.155858 -E 0.5
$(IAD_EXECUTABLE) -V 0 -r 0.0520462 -t 0.134587 -E 0.5 -n 1.5 -N 1.5
@echo "********* Constrain g ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -g 0.9
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -g 0.9
$(IAD_EXECUTABLE) -V 0 -r 0.4 -g 0.9 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -g 0.9 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -g 0.9 -n 1.4 -N 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -g 0.9 -n 1.4 -N 1.5
@echo "********* Constrain a ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -a 0.9
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -a 0.9
@echo "********* Constrain b ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -b 3
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -b 3
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -b 3 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -b 3 -n 1.4 -N 1.5
@echo "********* Constrain mu_s ************"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -F 30
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -F 30
$(IAD_EXECUTABLE) -V 0 -r 0.4 -F 30 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -F 30 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -F 30 -n 1.4 -N 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -F 30 -n 1.4 -N 1.5
@echo "********* Constrain mu_a ************"
$(IAD_EXECUTABLE) -V 0 -r 0.3 -A 0.6
$(IAD_EXECUTABLE) -V 0 -r 0.3 -t 0.1 -A 0.6
$(IAD_EXECUTABLE) -V 0 -r 0.3 -A 0.6 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.3 -t 0.1 -A 0.6 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.3 -A 0.6 -n 1.4 -N 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.3 -t 0.1 -A 0.6 -n 1.4 -N 1.5
@echo "********* Constrain mu_a and g************"
$(IAD_EXECUTABLE) -V 0 -r 0.3 -A 0.6 -g 0.6
$(IAD_EXECUTABLE) -V 0 -r 0.3 -A 0.6 -g 0.6 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.3 -A 0.6 -g 0.6 -n 1.4 -N 1.5
@echo "********* Constrain mu_s and g************"
$(IAD_EXECUTABLE) -V 0 -r 0.3 -F 2.0 -g 0.5
$(IAD_EXECUTABLE) -V 0 -r 0.3 -F 2.0 -g 0.5 -n 1.5
$(IAD_EXECUTABLE) -V 0 -r 0.3 -F 2.0 -g 0.5 -n 1.4 -N 1.5
@echo "********* Basic One Sphere tests ***********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -S 1
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -S 1
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -S 1
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.2 -u 0.0049787 -S 1
@echo "******** Basic 10,000 photon tests *********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -S 1 -p 10000
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -S 1 -p 10000
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -S 1 -p 10000
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.2 -u 0.0049787 -S 1 -p 10000
@echo "******** Basic timed photon tests *********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -S 1 -p -500
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -S 1 -p -500
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -S 1 -p -500
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.2 -u 0.0049787 -S 1 -p -500
@echo "********* More One Sphere tests ***********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -S 1 -1 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -S 1 -1 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -S 1 -1 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.2 -u 0.0049787 -S 1 -1 '200 13 13 0'
@echo "********* Basic Two Sphere tests ***********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -S 2
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -S 2
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -S 2
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.1 -u 0.0049787 -S 2
@echo "********* More Two Sphere tests ***********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -S 2 -1 '200 13 13 0' -2 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -S 2 -1 '200 13 13 0' -2 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.1 -u 0.002 -S 2 -1 '200 13 13 0' -2 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.1 -u 0.0049787 -S 2 -1 '200 13 13 0' -2 '200 13 13 0'
@echo "********* Oblique tests ***********"
$(IAD_EXECUTABLE) -V 0 -i 60 -r 0.00000 -t 0.13691
$(IAD_EXECUTABLE) -V 0 -i 60 -r 0.14932 -t 0.23181
$(IAD_EXECUTABLE) -V 0 -i 60 -r 0.61996 -t 0.30605
@echo "********* Different Tstd and Rstd ***********"
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.005 -d 1 -M 0 -S 1 -1 '200 13 13 0' -T 0.5
$(IAD_EXECUTABLE) -V 0 -r 0.4 -t 0.005 -d 1 -M 0 -S 1 -1 '200 13 13 0'
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.01 -d 1 -M 0 -S 1 -1 '200 13 13 0' -R 0.5
$(IAD_EXECUTABLE) -V 0 -r 0.2 -t 0.01 -d 1 -M 0 -S 1 -1 '200 13 13 0'
longtest:
cd test ; make
wintest: ad.exe iad.exe
make IAD_EXECUTABLE='wine ./iad.exe' shorttest
cd test ; make IAD_EXECUTABLE='wine ../iad.exe'
help::
@echo;\
echo "Targets available for this Makefile:";\
echo "ad compile forward Adding-Doubling program";\
echo "iad compile inverse Adding-Doubling program";\
echo "clean remove most generated objects";\
echo "docs generate TEX out of all files";\
echo "dist gzipped tarball of all files";\
echo "install install ad and iad programs";\
echo "install-lib install interface and library programs";\
echo "install-mma install Mathematica files";\
echo "install-all install all the above";\
echo "lib create library binary and interface files";\
echo "longtest run iad program on a bunch of test files";\
echo "mma binary AD files for Mathematica";\
echo "realclean remove all generated objects";\
echo "shorttest test iad program from command line";\
echo "tidy generate .c and .h files";\
echo "win generate ad.exe and iad.exe using MingGW-w64";\
echo "windist create a windows distribution";\
echo "wintest execute command-line and file tests in wine"
.SECONDARY: $(HSRC) $(CSRC)
.PHONY : clean realclean dists dist docs test check lib mma install install-all \
iad_doc ad_doc manual_doc new_version tidy win windist wintest