Revision 1512 trunk/tests/R/GNUmakefile

GNUmakefile (revision 1512)
2 2
EXT=.sh
3 3
endif
4 4

  
5
all: testso
5
all: simple.so
6 6

  
7 7
run:
8
	./testso
8
	Rscript simple-unix.r
9 9

  
10
testso: main.obj simple.so example.so
11
	$(CXX) -o $@ main.obj simple.so example.so
10
simple.so: simple.tpl
11
	../../admb$(EXT) -d simple.tpl
12 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 13
clean:
31 14
	rm -vf admodel.cov
32 15
	rm -vf admodel.dep

Also available in: Unified diff