Revision 995 trunk/tests/adstring/Makefile

Makefile (revision 995)
1
TARGET=test_adstring
2
ADMB_HOME=${PWD}/../../build/admb-macos10.6.4-xcode3.2.2-64bit/dist
1
GTEST_DIR=../gtest
3 2

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

  
6
run: $(TARGET)
7
	./$(TARGET)
6
gtest-all: gtest-all.o
7
	ADMB_HOME="$(ADMB_HOME)" PATH="$(ADMB_HOME)"/bin:${PATH} CXXFLAGS=-I$(GTEST_DIR)/include admb main.cpp gtest-all.o
8 8

  
9
$(TARGET): $(TARGET).o
10
	export ADMB_HOME=$(ADMB_HOME); export PATH=$(ADMB_HOME)/bin:${PATH}; CXXFLAGS=-I/usr/local/gtest-1.5.0/include LDFLAGS="-L/usr/local/gtest-1.5.0/lib -lgtest" adlink ${OPTIONS} $(TARGET)
9
gtest-all.o: $(GTEST_DIR)/src/gtest-all.cc
10
	$(CXX) -c -I$(GTEST_DIR)/include -I$(GTEST_DIR) -o $@ $<
11 11

  
12
$(TARGET).o: $(TARGET).cpp
13
	export ADMB_HOME=$(ADMB_HOME); export PATH=$(ADMB_HOME)/bin:${PATH}; CXXFLAGS=-I/usr/local/gtest-1.5.0/include LDFLAGS="-L/usr/local/gtest-1.5.0/lib -lgtest" adcomp ${OPTIONS} $(TARGET) 
14

  
15 12
clean:
16
	@rm -vf  $(TARGET).o
17
	@rm -vf  $(TARGET)

Also available in: Unified diff