Revision 1443

trunk/contrib/ecolib/GNUmakefile (revision 1443)
1
.ONESHELL:
2
ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
3
SHELL = cmd
4
endif
5
ifeq ($(OS),Windows_NT)
6
EXT=.sh
7
endif
8

  
9
include objects.lst
10 1
HEADERS=ecolib.h
2
OBJECTS=\
3
 Gompertz.obj\
4
 Hassell.obj\
5
 Hill.obj\
6
 HollingII.obj\
7
 HollingIII.obj\
8
 HollingIV.obj\
9
 Michaelis_Menten1.obj\
10
 Michaelis_Menten2.obj\
11
 Ricker.obj\
12
 Shepherd.obj\
13
 generalized_Ricker1.obj\
14
 generalized_Ricker2.obj\
15
 logistic.obj\
16
 logistic3.obj\
17
 logisticK.obj\
18
 monomolecular.obj\
19
 nonrectangular_hyperbola.obj\
20
 theta_logistic.obj
11 21

  
12
ifeq ($(SHELL),cmd)
13
all: $(addprefix $(CONTRIB_OBJS_DIR)\saflp-contrib-, $(OBJECTS)) $(addprefix $(CONTRIB_OBJS_DIR)\optlp-contrib-, $(OBJECTS))
14

  
15
$(CONTRIB_OBJS_DIR)\saflp-contrib-%.obj: %.cpp
16
	..\..\admb -c $(OPTION) $<
17
	copy $(basename $<).obj $@
18

  
19
$(CONTRIB_OBJS_DIR)\optlp-contrib-%.obj: %.cpp
20
	..\..\admb -c -f $(OPTION) $<
21
	copy $(basename $<).obj $@
22
else
23
all: $(addprefix $(CONTRIB_OBJS_DIR)/saflp-contrib-, $(OBJECTS)) $(addprefix $(CONTRIB_OBJS_DIR)/optlp-contrib-, $(OBJECTS))
24

  
25
$(CONTRIB_OBJS_DIR)/saflp-contrib-%.obj: %.cpp
26
	../../admb$(EXT) -c $(OPTION) $<
27
	cp $(basename $<).obj $@
28

  
29
$(CONTRIB_OBJS_DIR)/optlp-contrib-%.obj: %.cpp
30
	../../admb$(EXT) -c -f $(OPTION) $<
31
	cp $(basename $<).obj $@
32
endif
33

  
34
includes:
35
ifeq ($(SHELL),cmd)
36
	copy $(HEADERS) $(CONTRIB_INCLUDE)
37
else
38
	cp $(HEADERS) $(CONTRIB_INCLUDE)
39
endif
40

  
41
test:
42
ifneq ($(SHELL),cmd)
43
	$(MAKE) --directory=tests
44
endif
45

  
46
clean:
47
ifeq ($(SHELL),cmd)
48
	del /Q $(OBJECTS)
49
else
50
	@rm -vf $(OBJECTS)
51
endif
22
include ../admb-rules.mak
trunk/contrib/gdbprintlib/GNUmakefile (revision 1443)
1
.ONESHELL:
2
ifeq (sh.exe,$(findstring sh.exe,$(SHELL)))
3
SHELL = cmd
4
endif
5
ifeq ($(OS),Windows_NT)
6
EXT=.sh
7
endif
8

  
9
OBJECTS=gdbprintlib.obj
10 1
HEADERS=gdbprintlib.h
2
OBJECTS=gdbprintlib.obj
11 3

  
12
ifeq ($(SHELL),cmd)
13
all: $(addprefix $(CONTRIB_OBJS_DIR)\saflp-contrib-, $(OBJECTS)) $(addprefix $(CONTRIB_OBJS_DIR)\optlp-contrib-, $(OBJECTS))
14

  
15
$(CONTRIB_OBJS_DIR)\saflp-contrib-%.obj: %.cpp
16
	..\..\admb -c $(OPTION) $<
17
	copy $(basename $<).obj $@
18

  
19
$(CONTRIB_OBJS_DIR)\optlp-contrib-%.obj: %.cpp
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff