Revision 1308 trunk/tests/gtests/Makefile

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

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

  
3 16
all: clean gtest-all
4 17
	./gtest-all
5 18

  
6
#gtest-all: main.cpp test_adstring_strcase.cpp test_fmm_control.cpp test_atan2.cpp test_adstring_array.cpp test_dlist.cpp test_ad_comm.cpp test_df1b2atan2.o df1b2atan2.o test_gradient_structure.cpp test_df_file.cpp
7
gtest-all: main.cpp test_df_file.cpp
8
	cp $(GTEST_DIR)/gtest-all.o .
9
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -g gtest-all.o $^
19
gtest-all: gtest-all.o $(GTESTS)
20
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -g $^
10 21

  
11 22
test_df1b2atan2.o: test_df1b2atan2.cpp
12
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -r $^
23
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -r -g $^
13 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 $^
28

  
14 29
df1b2atan2.o: df1b2atan2.cpp
15 30
	../../admb -c -r $^
16 31

  

Also available in: Unified diff