Revision 1389 trunk/contrib/qfclib/GNUmakefile

GNUmakefile (revision 1389)
2 2

  
3 3
all: $(addprefix $(PREFIX_OBJ), $(OBJECTS))
4 4

  
5
$(PREFIX_OBJ)%.obj: %.cpp
6
ifeq ($(SHELL),sh.exe)
7
	..\..\admb -c $(OPTION) $<
8
	copy $(basename $<).obj $@
9
else
10
	../../admb -c $(OPTION) $<
11
	cp $(basename $<).obj $@
12
endif
13

  
5 14
test:
6
	ADMB_HOME="$(ADMB_HOME)" PATH="$(ADMB_HOME)/bin:$(PATH)" make --directory=tests
15
	make --directory=tests
7 16

  
8 17
clean:
9 18
ifneq ($(SHELL),sh.exe)
19
	@rm -vf *.obj
20
	@rm -vf *.o
10 21
	@rm -vf tests/testfunction.htp
11 22
	@rm -vf tests/testfunction
12 23
	@rm -vf tests/nf1b2list1
......
25 36
	@rm -vf tests/fmin.log
26 37
	@rm -vf tests/testfunctionre
27 38
endif
28

  
29
$(PREFIX_OBJ)%.obj: %.cpp
30
ifeq ($(CXX),cl)
31
	$(CXX) /c $(CXXFLAGS) /Fo$@ $<
32
else
33
	$(CXX) -c $(CXXFLAGS) -o$@ $<
34
endif

Also available in: Unified diff