Statistics
| Revision:

root / trunk / contrib / ecolib / GNUmakefile @ 895

History | View | Annotate | Download (769 Bytes)

1
include objects.lst
2

    
3
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
4

    
5
test:
6
ifneq ($(SHELL),sh.exe)
7
	ADMB_HOME="../$(ADMB_HOME)" PATH="../$(ADMB_HOME)/bin:$(PATH)" make --directory=tests
8
endif
9

    
10
clean:
11
ifneq ($(SHELL),sh.exe)
12
	@rm -vf tests/tests.log
13
	@rm -vf tests/tests.cpp
14
	@rm -vf tests/admodel.hes
15
	@rm -vf tests/tests.par
16
	@rm -vf tests/tests.cor
17
	@rm -vf tests/tests.pin
18
	@rm -vf tests/variance
19
	@rm -vf tests/admodel.cov
20
	@rm -vf tests/tests.std
21
	@rm -vf tests/tests.htp
22
	@rm -vf tests/eigv.rpt
23
	@rm -vf tests/tests
24
	@rm -vf tests/tests.bar
25
	@rm -vf tests/tests.dat
26
	@rm -vf tests/fmin.log
27
	@rm -vf tests/tests.eva
28
	@rm -vf tests/admodel.dep
29
endif
30

    
31
$(PREFIX_OBJ)%.obj: %.cpp
32
ifeq ($(CXX),cl)
33
	$(CXX) /c $(CXXFLAGS) /Fo$@ $<
34
else
35
	$(CXX) -c $(CXXFLAGS) -o$@ $<
36
endif