Statistics
| Revision:

root / trunk / contrib / qfclib / GNUmakefile @ 1408

History | View | Annotate | Download (873 Bytes)

1
ifneq (,$(findstring sh.exe,$(SHELL)))
2
  SHELL=cmd
3
endif
4

    
5
include objects.lst
6

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

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

    
18
test:
19
	$(MAKE) --directory=tests
20

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