~pragmatic-core/pragmatic/scaling_optimisation_openmp

« back to all changes in this revision

Viewing changes to tests/Makefile.in

  • Committer: ggorman
  • Date: 2011-01-24 13:33:58 UTC
  • Revision ID: svn-v4:dbd7c75c-275a-40fc-989c-5fa58d705081:trunk:67
Added autoconf support. Only tested on Ubuntu 10.10 so far.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHELL = /bin/bash
 
2
 
 
3
CXX = @CXX@
 
4
CPPFLAGS = @CPPFLAGS@ -I../eigen-2.0 -I../metric_tensor/include -I../include -I../smooth/include -I../functionals/include
 
5
 
 
6
CXXFLAGS = $(CPPFLAGS) @CXXFLAGS@ @OPENMP_CXXFLAGS@
 
7
 
 
8
LIBS = @LIBS@
 
9
 
 
10
TEST_SRC = $(wildcard src/*.cpp)
 
11
TEST_BIN = $(patsubst src/%.cpp,bin/%,$(TEST_SRC))
 
12
 
 
13
.SUFFIXES: .cpp .o
 
14
 
 
15
.cpp.o:
 
16
        $(CXX) $(CXXFLAGS) -c $<
 
17
 
 
18
default: test
 
19
 
 
20
test: $(TEST_BIN)
 
21
        python ./unittest bin
 
22
 
 
23
bin/%: src/%.cpp
 
24
        $(CXX) $(CXXFLAGS) -o $@ $< $(LIBS)
 
25
 
 
26
clean:
 
27
        rm -rf *.o $(TEST_BIN)