Revision 1389

trunk/contrib/ecolib/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 15
ifneq ($(SHELL),sh.exe)
7
	ADMB_HOME="../$(ADMB_HOME)" PATH="../$(ADMB_HOME)/bin:$(PATH)" make --directory=tests
16
	make --directory=tests
8 17
endif
9 18

  
10 19
clean:
11 20
ifneq ($(SHELL),sh.exe)
21
	@rm -vf *.obj
22
	@rm -vf *.o
12 23
	@rm -vf tests/tests.log
13 24
	@rm -vf tests/tests.cpp
14 25
	@rm -vf tests/admodel.hes
......
27 38
	@rm -vf tests/tests.eva
28 39
	@rm -vf tests/admodel.dep
29 40
endif
30

  
31
$(PREFIX_OBJ)%.obj: %.cpp
32
ifeq ($(CXX),cl)
33
	$(CXX) /c $(CXXFLAGS) /Fo$@ $<
34
else
35
	$(CXX) -c $(CXXFLAGS) -o$@ $<
36
endif
trunk/contrib/gdbprintlib/GNUmakefile (revision 1389)
1
$(PREFIX_OBJ)gdbprintlib.obj: gdbprintlib.cpp
1
all: $(addprefix $(PREFIX_OBJ), gdbprintlib.obj)
2

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

  
12
test:
13

  
10 14
clean:
11 15
ifeq ($(SHELL),sh.exe)
12 16
	del gdbprintlib.obj
trunk/contrib/qfclib/tests/Makefile (revision 1389)
1 1
all:
2
	admb testfunction
2
	..\..\..\admb testfunction
3 3
	./testfunction
4
	admb -r testfunctionre
4
	..\..\..\admb -r testfunctionre
5 5
	./testfunctionre
trunk/contrib/qfclib/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:
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff