Statistics
| Revision:

root / trunk / contrib / src / GNUmakefile @ 1342

History | View | Annotate | Download (647 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 simple.obj
13
	@rm -f simple.o
14
	@rm -f simple.std
15
	@rm -f simple.htp
16
	@rm -f admodel.hes
17
	@rm -f variance
18
	@rm -f simple
19
	@rm -f simple.exe
20
	@rm -f admodel.cov
21
	@rm -f simple.bar
22
	@rm -f eigv.rpt
23
	@rm -f simple.eva
24
	@rm -f fmin.log
25
	@rm -f simple.log
26
	@rm -f simple.cpp
27
	@rm -f simple.par
28
	@rm -f simple.cor
29
	@rm -f admodel.dep
30

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