Statistics
| Revision:

root / trunk / contrib / qfclib / GNUmakefile @ 895

History | View | Annotate | Download (794 Bytes)

1
include objects.lst
2

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

    
5
test:
6
	ADMB_HOME="$(ADMB_HOME)" PATH="$(ADMB_HOME)/bin:$(PATH)" make --directory=tests
7

    
8
clean:
9
ifneq ($(SHELL),sh.exe)
10
	@rm -vf tests/testfunction.htp
11
	@rm -vf tests/testfunction
12
	@rm -vf tests/nf1b2list1
13
	@rm -vf tests/variance
14
	@rm -vf tests/f1b2list12
15
	@rm -vf tests/f1b2list13
16
	@rm -vf tests/testfunctionre.log
17
	@rm -vf tests/testfunctionre.cpp
18
	@rm -vf tests/eigv.rpt
19
	@rm -vf tests/testfunction.log
20
	@rm -vf tests/testfunction.cpp
21
	@rm -vf tests/testfunctionre.htp
22
	@rm -vf tests/nf1b2list12
23
	@rm -vf tests/f1b2list1
24
	@rm -vf tests/nf1b2list13
25
	@rm -vf tests/fmin.log
26
	@rm -vf tests/testfunctionre
27
endif
28

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