Statistics
| Revision:

root / trunk / contrib / qfclib / GNUmakefile @ 1418

History | View | Annotate | Download (932 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 qfclib.h $(CONTRIB_DIR)\include
14
else
15
	../../admb$(EXT) -c $(OPTION) $<
16
	cp $(basename $<).obj $@
17
	cp qfclib.h $(CONTRIB_DIR)/include
18
endif
19

    
20
test:
21
	$(MAKE) --directory=tests
22

    
23
clean:
24
ifneq ($(SHELL),sh.exe)
25
	@rm -vf *.obj
26
	@rm -vf *.o
27
	@rm -vf tests/testfunction.htp
28
	@rm -vf tests/testfunction
29
	@rm -vf tests/nf1b2list1
30
	@rm -vf tests/variance
31
	@rm -vf tests/f1b2list12
32
	@rm -vf tests/f1b2list13
33
	@rm -vf tests/testfunctionre.log
34
	@rm -vf tests/testfunctionre.cpp
35
	@rm -vf tests/eigv.rpt
36
	@rm -vf tests/testfunction.log
37
	@rm -vf tests/testfunction.cpp
38
	@rm -vf tests/testfunctionre.htp
39
	@rm -vf tests/nf1b2list12
40
	@rm -vf tests/f1b2list1
41
	@rm -vf tests/nf1b2list13
42
	@rm -vf tests/fmin.log
43
	@rm -vf tests/testfunctionre
44
endif