Revision 1025 trunk/tests/colfill/GNUmakefile

GNUmakefile (.../colfill/GNUmakefile) (revision 1025)
1
TARGET=expm
1
TARGET=colfill
2
GTEST_DIR=../googletest-read-only
2 3

  
3
all: clean $(TARGET) run
4
all: clean $(TARGET) run gtest
4 5

  
6
gtest: gtest-all.o gtest.cpp
7
	CXXFLAGS=-I$(GTEST_DIR)/include ../../admb gtest.cpp gtest-all.o
8
	./gtest
9

  
10
gtest-all.o: $(GTEST_DIR)/src/gtest-all.cc
11
	$(CXX) -c -I$(GTEST_DIR)/include -I$(GTEST_DIR) -o $@ $<
12

  
13

  
5 14
$(TARGET): $(TARGET).tpl $(TARGET).dat
6
	ADMB_HOME="$(ADMB_HOME)" PATH="$(ADMB_HOME)/bin:${PATH}" admb -s $(TARGET)
15
	../../admb -r -s $(TARGET)
7 16

  
8 17
run:
9 18
	@printf "Started run:\n"
10
	./$(TARGET)
19
	./$(TARGET) -nohess
11 20
	@printf "Finished run.\n"
12 21

  
13 22
clean:

Also available in: Unified diff