Revision 792

branches/gpu2/scripts/g++/Makefile (revision 792)
1
DEBUG_OPTION=
2
ifdef DEBUG
3
DEBUG_OPTION=-g
4
endif
5

  
6
ifdef SAFE_OPTION
7
SAFE_OPTION=-s
8
endif
9

  
10
ifdef PROG_VALGRIND
11
PROG=valgrind -v --leak-check=full --show-reachable=no --track-origins=yes
12
else
13
PROG=time
14
endif
15

  
16

  
17
default: simple
18

  
19
ifdef PROG_VALGRIND
20
all: simple caest
21
else
22
all: admb admb-re
23
endif
24

  
25
admb: \
26
buscycle\
27
catage \
28
chem-eng \
29
forest \
30
finance \
31
pella-t \
32
robreg \
33
truncreg \
34
simple \
35
vol
36

  
37
buscycle: ham4 ham5
38
ham4:
39
	cd admb/buscycle;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@ -version;$(PROG) ./$@
40

  
41
ham5:
42
	cd admb/buscycle;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
43

  
44
catage:
45
	cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
46

  
47
chem-eng:
48
	cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
49

  
50
finance:
51
	cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
52

  
53
forest:
54
	-cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
55

  
56
pella-t:
57
	cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
58

  
59
robreg: vonb vonbr
60
vonb:
61
	cd admb/robreg;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
62

  
63
vonbr:
64
	cd admb/robreg;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
65

  
66
simple:
67
	cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@
68

  
69
truncreg:
70
	@cd admb/$@;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@ -ams 2000000;$(PROG) ./$@ -ams 2000000 -gbs 6000000 -cbs 4000000
71

  
72
vol: n2mvol
73
n2mvol:
74
	cd admb/vol;rm -f @.par @.std;admb $(SAFE_OPTION) $(DEBUG_OPTION) $@;$(PROG) ./$@ -nohess
75

  
76
admb-re:\
77
bcb \
78
biglog \
79
bvprobit \
80
glmmadmb \
81
caest \
82
gamma \
83
kidney \
84
lidar \
85
logistic \
86
nbmm \
87
nested4 \
88
orange \
89
orange2 \
90
orange_cor \
91
pheno \
92
polio \
93
sdv \
94
skewed \
95
socatt \
96
spatial \
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff