Revision 1490 trunk/tests/gtests/Makefile

Makefile (revision 1490)
1
GTEST_DIR=../googletest-read-only
1
GTEST_DIR=googletest-read-only
2 2

  
3 3
GTESTS=\
4 4
 test_adstring_strcase.cpp\
......
7 7
 test_adstring_array.cpp\
8 8
 test_dlist.cpp\
9 9
 test_ad_comm.cpp\
10
 test_df1b2atan2.o\
11
 df1b2atan2.o\
10
 test_df1b2atan2.obj\
12 11
 test_gradient_structure.cpp\
13 12
 test_df_file.cpp\
13
 test_scalefactor.obj\
14 14
 main.cpp
15 15

  
16 16
all: clean gtest-all
17 17
	./gtest-all
18 18

  
19
gtest-all: gtest-all.o $(GTESTS)
20
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -g $^
19
test_df1b2atan2.obj: test_df1b2atan2.cpp df1b2atan2.obj
20
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -r -g test_df1b2atan2.cpp
21 21

  
22
test_df1b2atan2.o: test_df1b2atan2.cpp
23
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -r -g $^
22
df1b2atan2.obj: df1b2atan2.cpp
23
	../../admb -c -r -g $^
24 24

  
25
gtest-all.o: $(GTEST_DIR)/src/gtest-all.cc
26
	cp $(GTEST_DIR)/gtest-all.o .
27
	@#CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -g $^
25
test_scalefactor.obj: test_scalefactor.cpp scalefactor.obj
26
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -r -g test_scalefactor.cpp
28 27

  
29
df1b2atan2.o: df1b2atan2.cpp
30
	../../admb -c -r $^
28
scalefactor.obj: scalefactor.tpl
29
	CXXFLAGS="-Dmain=scalefactor" ../../admb -c -r -g $^
31 30

  
31
#gtest-all: gtest-all.obj df1b2atan2.obj scalefactor.obj $(GTESTS)
32
gtest-all: gtest-all.obj main.cpp test_scalefactor.obj scalefactor.obj
33
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -g -r $^
34

  
35
gtest-all.obj: googletest-read-only
36
	$(CXX) -c -g -I$(GTEST_DIR)/include -I$(GTEST_DIR) -o $@ $(GTEST_DIR)/src/gtest-all.cc
37

  
38
googletest-read-only:
39
	svn checkout http://googletest.googlecode.com/svn/trunk/ googletest-read-only
40

  
32 41
clean:
33
	@rm -vf gtest-all *.o
42
	@rm -vf gtest-all *.obj
34 43
	@rm -vf eigv.rpt
35 44
	@rm -vf fmin.log
36 45
	@rm -vf simple.log
37 46
	@rm -vf variance
47
	@rm -vf cmpdiff.tmp
48
	@rm -vf f1b2list1
49
	@rm -vf f1b2list12
50
	@rm -vf f1b2list13
51
	@rm -vf gradfil1.tmp
52
	@rm -vf gradfil2.tmp
53
	@rm -vf nf1b2list1
54
	@rm -vf nf1b2list12
55
	@rm -vf nf1b2list13
56
	@rm -vf scalefactor.cpp
57
	@rm -vf scalefactor.htp
58
	@rm -vf scalefactor.log
59
	@rm -vf varssave.tmp
60
	@rm -vf admodel.cov
61
	@rm -vf admodel.dep
62
	@rm -vf admodel.hes
63
	@rm -vf hesscheck
64
	@rm -vf hessian.bin
65

  

Also available in: Unified diff