Revision 918

trunk/src/GNUmakefile (revision 918)
13 13
LIBPATH=../build/objects/dist
14 14
endif
15 15

  
16
ifndef ADMB_HOME
17
ADMB_HOME=${PWD}/${DISK}
18
endif
19

  
20 16
CXXFLAGS_INCLUDES:=-I../${DISK}/include
21 17
ifeq ($(CXX),CC)
22 18
CXXFLAGS:=-D__GNUDOS__ -Dlinux -D__SPDLL__ -DUSE_LAPLACE $(CXXFLAGS)
......
113 109
	cp nh99/gccmanip.h ${DISK}/include
114 110

  
115 111
bins:
116
ifeq ($(SHELL),sh.exe)
117
	copy ../scripts/admb/admb.bat ${DISK}/bin
118
	copy ../scripts/mingw/set-admb-mingw.bat ${DISK}/bin
119
	copy ../utilities/sed.exe ${DISK}/bin
120
	copy ../scripts/admb/adcomp.bat ${DISK}/bin
121
	copy ../scripts/admb/adlink.bat ${DISK}/bin
122
else
123 112
	mkdir -p ${DISK}/bin
124 113
	cp df1b2-separable/seddf1b* df1b2-separable/sedf1b2* ${DISK}/bin
125 114
	cp ../scripts/admb/admb ${DISK}/bin
......
131 120
	$(MAKE) --directory=nh99 CC=$(CC) DISKDIR=../${DISK} bins
132 121
	ln -sf bin/admb ${DISK}
133 122
	ln -sf build/dist/bin/admb ..
123
ifdef COMSPEC
124
	cp ../scripts/admb/admb.bat ${DISK}/bin
125
	cp ../scripts/mingw/set-admb-mingw.bat ${DISK}/bin
126
	cp ../utilities/sed.exe ${DISK}/bin
127
	cp ../scripts/admb/adcomp.bat ${DISK}/bin
128
	cp ../scripts/admb/adlink.bat ${DISK}/bin
134 129
endif
135 130

  
136 131
verify:
132
	ADMB_HOME="${PWD}/${DISK}" PATH="${PWD}/${DISK}/bin:$(PATH)" CXXFLAGS="${ADMB_CXXFLAGS}" LDFLAGS="${ADMB_LDFLAGS}" SAFE_OPTION=1 $(MAKE) -C $(DISK)/examples all
133
	-../scripts/get-outputs.sh ${DISK}/examples/ > "../benchmarks-saf.txt"
134
	ADMB_HOME="${PWD}/${DISK}" PATH="${PWD}/${DISK}/bin:$(PATH)" CXXFLAGS="${ADMB_CXXFLAGS}" LDFLAGS="${ADMB_LDFLAGS}" $(MAKE) -C $(DISK)/examples all
135
	-../scripts/get-outputs.sh ${DISK}/examples/ > "../benchmarks-opt.txt"
136

  
137
verify_admb_home:
138
ifdef ADMB_HOME
137 139
	ADMB_HOME="${ADMB_HOME}" PATH="${ADMB_HOME}/bin:$(PATH)" CXXFLAGS="${ADMB_CXXFLAGS}" LDFLAGS="${ADMB_LDFLAGS}" SAFE_OPTION=1 $(MAKE) -C $(DISK)/examples all
138 140
	-../scripts/get-outputs.sh ${DISK}/examples/ > "../benchmarks-saf.txt"
139 141
	ADMB_HOME="${ADMB_HOME}" PATH="${ADMB_HOME}/bin:$(PATH)" CXXFLAGS="${ADMB_CXXFLAGS}" LDFLAGS="${ADMB_LDFLAGS}" $(MAKE) -C $(DISK)/examples all
140 142
	-../scripts/get-outputs.sh ${DISK}/examples/ > "../benchmarks-opt.txt"
143
endif
141 144

  
142 145
tests:
146
	$(MAKE) ADMB_HOME="${PWD}/${DISK}" --directory=../contrib test
147
	$(MAKE) ADMB_HOME="${PWD}/${DISK}" --directory=../tests
148

  
149
tests_admb_home:
150
ifdef ADMB_HOME
143 151
	$(MAKE) ADMB_HOME="${ADMB_HOME}" --directory=../contrib test
144 152
	$(MAKE) ADMB_HOME="${ADMB_HOME}" --directory=../tests
153
endif
145 154

  
146 155
install:
147 156
ifneq ($(SHELL),sh.exe)

Also available in: Unified diff