Statistics
| Revision:

root / trunk / tests / dll / GNUmakefile @ 1432

History | View | Annotate | Download (924 Bytes)

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

    
5
all: testso
6

    
7
run:
8
	./testso
9

    
10
testso: main.obj simple.so example.so
11
	$(CXX) -o $@ main.obj simple.so example.so
12

    
13
simple.so: simple.obj
14
	../../admb$(EXT) -d $^
15

    
16
simple.obj:
17
	cp ../../examples/admb/simple/simple.tpl .
18
	cp ../../examples/admb/simple/simple.dat .
19
	../../admb$(EXT) -c -d simple.tpl
20

    
21
main.obj: main.cpp
22
	$(CXX) -c -o $@ $^
23

    
24
example.so: example.obj
25
	$(CXX) -shared -o $@ $^
26

    
27
example.obj: example.cpp
28
	$(CXX) -c -o $@ $^
29

    
30
clean:
31
	rm -vf admodel.cov
32
	rm -vf admodel.dep
33
	rm -vf admodel.hes
34
	rm -vf eigv.rpt
35
	rm -vf example.so
36
	rm -vf example.obj
37
	rm -vf fmin.log
38
	rm -vf main.obj
39
	rm -vf simple.bar
40
	rm -vf simple.cor
41
	rm -vf simple.cpp
42
	rm -vf simple.dat
43
	rm -vf simple.def
44
	rm -vf simple.so
45
	rm -vf simple.eva
46
	rm -vf simple.htp
47
	rm -vf simple.log
48
	rm -vf simple.obj
49
	rm -vf simple.par
50
	rm -vf simple.std
51
	rm -vf simple.tpl
52
	rm -vf testso
53
	rm -vf testso.exe
54
	rm -vf variance