Statistics
| Revision:

root / trunk / tests / openmp / Makefile @ 1569

History | View | Annotate | Download (629 Bytes)

1
GTEST_DIR=googletest-read-only
2

    
3
OPENMP_FLAG=-pthread -fopenmp
4

    
5
GTESTS=\
6
 test_omp.cpp\
7
 main.cpp
8

    
9
all: clean gtest-all
10
	./gtest-all
11

    
12
test_omp.obj: test_omp.cpp
13
	CXXFLAGS="$(OPENMP_FLAG) -I$(GTEST_DIR)/include" ../../admb -c -r -g $^
14

    
15
gtest-all: gtest-all.obj $(GTESTS)
16
	LDFLAGS="$(OPENMP_FLAG)" CXXFLAGS="$(OPENMP_FLAG) -I$(GTEST_DIR)/include" ../../admb -g -r $^
17

    
18
gtest-all.obj: googletest-read-only
19
	$(CXX) -c -g $(OPENMP_FLAG) -I$(GTEST_DIR)/include -I$(GTEST_DIR) -o $@ $(GTEST_DIR)/src/gtest-all.cc
20

    
21
googletest-read-only:
22
	svn checkout http://googletest.googlecode.com/svn/trunk/ googletest-read-only
23

    
24
clean:
25
	@rm -vf *.obj