Statistics
| Revision:

root / trunk / contrib / src / GNUmakefile @ 1070

History | View | Annotate | Download (611 Bytes)

1
ifndef ADMB_HOME
2
ADMB_HOME=../../build/dist
3
endif
4

    
5
all: $(addprefix $(PREFIX_OBJ), contrib.obj)
6

    
7
test:
8
	ADMB_HOME="$(ADMB_HOME)" PATH="$(ADMB_HOME)/bin:$(PATH)" admb simple.tpl
9
	./simple
10

    
11
clean:
12
	@rm -f sample.obj
13
	@rm -f simple.std
14
	@rm -f simple.htp
15
	@rm -f admodel.hes
16
	@rm -f variance
17
	@rm -f simple
18
	@rm -f admodel.cov
19
	@rm -f simple.bar
20
	@rm -f eigv.rpt
21
	@rm -f simple.eva
22
	@rm -f fmin.log
23
	@rm -f simple.log
24
	@rm -f simple.cpp
25
	@rm -f simple.par
26
	@rm -f simple.cor
27
	@rm -f admodel.dep
28

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