Revision 1303 trunk/tests/gtests/Makefile

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

  
3
all: gtest-all
3
all: clean gtest-all
4 4
	./gtest-all
5 5

  
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
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
7 8
	cp $(GTEST_DIR)/gtest-all.o .
8
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb gtest-all.o $^
9
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -g gtest-all.o $^
9 10

  
10 11
test_df1b2atan2.o: test_df1b2atan2.cpp
11 12
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb -c -r $^

Also available in: Unified diff