Revision 810 branches/pthreads-737/tests/nst/Makefile

Makefile (revision 810)
1 1
# make some special targets
2 2
.PHONY: all rules
3
.PRECIOUS: %.cpp %.htp
3 4

  
4 5
ifeq ($(HOSTNAME),katsuo)
5
  export ADMB_HOME=/home/davef/admb-threaded/build/admb-linux-gcc4.8.0-64bit
6
  #export ADMB_HOME=/home/jsibert/admb-threaded2/build/dists/admb_gcc411_fedora8
7
 #export ADMB_HOME=/home/davef/admb-threaded/build/admb-linux-gcc4.8.0-64bit
6 8
endif
9

  
7 10
ifeq ($(HOSTNAME),kihikihi)
8 11
  export ADMB_HOME=/home/jsibert/admb/pthreads-737/build/admb-linux-gcc4.7.2-64bit
9 12
endif
......
17 20
LFLAGS = -L${ADMB_HOME}/lib -L/usr/lib -ladt -lads -ladmod -ldf1b2s -ladt -lads -ladmod -ldf1b2s -ladt -lads -ladmod -ldf1b2s -ladt -lads -ladmod -ldf1b2s -lpthread
18 21

  
19 22
# generates multiple definition linker errors
20
#OBJECTS=adpthread_manager.o admb_thread.o nst.o
21
OBJECTS=thread_stuff.o admb_thread.o nst.o
23
#OBJECTS=adpthread_manager.o admb_thread.o nst.o 
24
OBJECTS=thread_stuff.o admb_thread.o nst.o 
22 25

  
23 26
# link the object file into the executable 
24 27
nst: $(OBJECTS) 
......
27 30
	$(LL) -o $@ $^ $(LFLAGS)
28 31
	@echo ------- Done
29 32

  
30
admb_thread.o: admb_thread.cpp nst.tpl nst.htp
33
admb_thread.o: admb_thread.cpp nst.tpl nst.htp 
31 34
	@echo
32 35
	@echo ------- Compile $<
33 36
	sed -i '/class model_data : public ad_comm{/a\
......
48 51
	@echo
49 52
	@echo ------- Making $@
50 53
	@echo ------- Translate $<
51
	$(ADMB_HOME)/bin/tpl2cpp $*
54
	tpl2cpp $*
52 55
	@echo ------- Done
53 56

  
54 57
%.htp:%.tpl;
55 58
	@echo
56 59
	@echo ------- Making $@
57 60
	@echo ------- Translate $<
58
	$(ADMB_HOME)/bin/tpl2cpp $*
61
	tpl2cpp $*
59 62

  
60 63
# make Dave's new_sim_thread3
61 64
new_sim_thread3:

Also available in: Unified diff