Revision 1417 trunk/examples/GNUmakefile

GNUmakefile (revision 1417)
1 1
ADMB_HOME=$(shell cd .. && pwd)/
2 2

  
3
ifeq ($(OS),Windows_NT)
4
EXT=.sh
5
endif
3 6
ifdef OPTIONS
4 7
OPTIONS:= $(OPTIONS)
5 8
endif
......
37 40

  
38 41
buscycle: ham4 ham5
39 42
ham4:
40
	pushd admb/buscycle && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@ -version && $(PROG) ./$@
43
	pushd admb/buscycle && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@ -version && $(PROG) ./$@
41 44

  
42 45
ham5:
43
	pushd admb/buscycle && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
46
	pushd admb/buscycle && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
44 47

  
45 48
catage:
46
	pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
49
	pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
47 50

  
48 51
chem-eng:
49
	pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
52
	pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
50 53

  
51 54
finance:
52
	pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
55
	pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
53 56

  
54 57
forest:
55
	-pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
58
	-pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
56 59

  
57 60
pella-t:
58
	pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
61
	pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
59 62

  
60 63
robreg: vonb vonbr
61 64
vonb:
62
	pushd admb/robreg && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
65
	pushd admb/robreg && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
63 66

  
64 67
vonbr:
65
	pushd admb/robreg && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
68
	pushd admb/robreg && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
66 69

  
67 70
simple:
68
	pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@
71
	pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@
69 72

  
70 73
truncreg:
71
	pushd admb/$@ && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@ -ams 2000000 && $(PROG) ./$@ -ams 2000000 -gbs 6000000 -cbs 4000000
74
	pushd admb/$@ && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@ -ams 2000000 && $(PROG) ./$@ -ams 2000000 -gbs 6000000 -cbs 4000000
72 75

  
73 76
vol: n2mvol
74 77
n2mvol:
75
	pushd admb/vol && $(ADMB_HOME)admb$(OPTIONS) $@ && $(PROG) ./$@ -nohess
78
	pushd admb/vol && $(ADMB_HOME)admb$(EXT)$(OPTIONS) $@ && $(PROG) ./$@ -nohess
76 79

  
77 80
admb-re:\
78 81
 bcb\
......
99 102
 weights
100 103

  
101 104
bcb:
102
	pushd admb-re/$@ && $(ADMB_HOME)admb -r$(OPTIONS) $@ && $(PROG) ./$@
105
	pushd admb-re/$@ && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
103 106

  
104 107
biglog:
105
	pushd admb-re/$@ && $(ADMB_HOME)admb -r$(OPTIONS) $@ && $(PROG) ./$@
108
	pushd admb-re/$@ && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
106 109

  
107 110
bvprobit:
108 111
	@#Do not catch for admb-9.x
109
	-pushd admb-re/glmmadmb && $(ADMB_HOME)admb -r$(OPTIONS) $@ && $(PROG) ./$@
112
	-pushd admb-re/glmmadmb && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
110 113

  
111 114
glmmadmb:
112 115
	@#Do not catch for admb-9.x
113
	-pushd admb-re/$@ && $(ADMB_HOME)admb -r$(OPTIONS) $@ && $(PROG) ./$@
116
	-pushd admb-re/$@ && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
114 117

  
115 118
caest:
116
	pushd admb-re/$@ && $(ADMB_HOME)admb -r$(OPTIONS) $@ && $(PROG) ./$@
119
	pushd admb-re/$@ && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
117 120

  
118 121
gamma:
119
	-pushd admb-re/$@ && $(ADMB_HOME)admb -r$(OPTIONS) liver_$@ && $(PROG) ./liver_$@
122
	-pushd admb-re/$@ && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) liver_$@ && $(PROG) ./liver_$@
120 123

  
121 124
kidney:
122
	pushd admb-re/$@ && $(ADMB_HOME)admb -r$(OPTIONS) $@ && $(PROG) ./$@
125
	pushd admb-re/$@ && $(ADMB_HOME)admb$(EXT) -r$(OPTIONS) $@ && $(PROG) ./$@
123 126

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff