Statistics
| Revision:

root / trunk / contrib / ecolib / GNUmakefile @ 1418

History | View | Annotate | Download (901 Bytes)

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

    
5
include objects.lst
6

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

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

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

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