Statistics
| Revision:

root / trunk / contrib / ecolib / GNUmakefile @ 1412

History | View | Annotate | Download (835 Bytes)

1
ifeq ($(OS),Windows_NT)
2
EXT=.sh
3
endif
4

    
5
include objects.lst
6

    
7
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
8

    
9
$(PREFIX_OBJ)%.obj: %.cpp
10
ifeq ($(SHELL),sh.exe)
11
	..\..\admb -c $(OPTION) $<
12
	copy $(basename $<).obj $@
13
else
14
	../../admb$(EXT) -c $(OPTION) $<
15
	cp $(basename $<).obj $@
16
endif
17

    
18
test:
19
ifneq ($(SHELL),sh.exe)
20
	$(MAKE) --directory=tests
21
endif
22

    
23
clean:
24
ifneq ($(SHELL),sh.exe)
25
	@rm -vf *.obj
26
	@rm -vf *.o
27
	@rm -vf tests/tests.log
28
	@rm -vf tests/tests.cpp
29
	@rm -vf tests/admodel.hes
30
	@rm -vf tests/tests.par
31
	@rm -vf tests/tests.cor
32
	@rm -vf tests/tests.pin
33
	@rm -vf tests/variance
34
	@rm -vf tests/admodel.cov
35
	@rm -vf tests/tests.std
36
	@rm -vf tests/tests.htp
37
	@rm -vf tests/eigv.rpt
38
	@rm -vf tests/tests
39
	@rm -vf tests/tests.bar
40
	@rm -vf tests/tests.dat
41
	@rm -vf tests/fmin.log
42
	@rm -vf tests/tests.eva
43
	@rm -vf tests/admodel.dep
44
endif