Statistics
| Revision:

root / trunk / tests / openmp / Makefile @ 1569

History | View | Annotate | Download (629 Bytes)

1 1490 johnoel
GTEST_DIR=googletest-read-only
2 1 johnoel
3 1569 johnoel
OPENMP_FLAG=-pthread -fopenmp
4 1568 johnoel
5 1308 johnoel
GTESTS=\
6 1568 johnoel
 test_omp.cpp\
7 1308 johnoel
 main.cpp
8
9 1303 johnoel
all: clean gtest-all
10 995 johnoel
	./gtest-all
11 1 johnoel
12 1568 johnoel
test_omp.obj: test_omp.cpp
13
	CXXFLAGS="$(OPENMP_FLAG) -I$(GTEST_DIR)/include" ../../admb -c -r -g $^
14 1 johnoel
15 1491 johnoel
gtest-all: gtest-all.obj $(GTESTS)
16 1569 johnoel
	LDFLAGS="$(OPENMP_FLAG)" CXXFLAGS="$(OPENMP_FLAG) -I$(GTEST_DIR)/include" ../../admb -g -r $^
17 1490 johnoel
18
gtest-all.obj: googletest-read-only
19 1568 johnoel
	$(CXX) -c -g $(OPENMP_FLAG) -I$(GTEST_DIR)/include -I$(GTEST_DIR) -o $@ $(GTEST_DIR)/src/gtest-all.cc
20 1490 johnoel
21
googletest-read-only:
22
	svn checkout http://googletest.googlecode.com/svn/trunk/ googletest-read-only
23
24 1 johnoel
clean:
25 1568 johnoel
	@rm -vf *.obj