Revision 1093 trunk/contrib/GNUmakefile

GNUmakefile (revision 1093)
5 5
    TERMINAL=cygwin
6 6
  else
7 7
    TERMINAL=dos
8
    SHELL=cmd
8 9
  endif
9 10
endif
10 11

  
11 12
ifeq ($(TERMINAL),dos)
12 13
DISK=..\build\dist
13 14
PATH:=$(PATH):..\..\utilities\mingw\bin
14
LIBPATH=..\..\build\objects\dist
15 15
else
16 16
DISK=../build/dist
17
LIBPATH=../../build/objects/dist
18 17
endif
19 18

  
20 19
all: build-gdbprintlib build-statslib build-ecolib build-qfclib build-src
......
30 29

  
31 30
build-gdbprintlib:
32 31
ifeq ($(TERMINAL),dos)
33
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\saflp-contrib-gdbprintlib-
34
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\optlp-contrib-gdbprintlib-
32
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-gdbprintlib-
33
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-gdbprintlib-
35 34
	copy gdbprintlib\gdbprintlib.h $(DISK)\contrib\include
36 35
else
37
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-gdbprintlib-
38
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-gdbprintlib-
36
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-gdbprintlib-
37
	$(MAKE) --directory=gdbprintlib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-gdbprintlib-
39 38
	cp gdbprintlib/gdbprintlib.h $(DISK)/contrib/include
40 39
endif
41 40

  
42 41
build-statslib:
43 42
ifeq ($(TERMINAL),dos)
44
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\saflp-contrib-statslib-
45
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\optlp-contrib-statslib-
43
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-statslib-
44
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-statslib-
46 45
	copy statslib\statsLib.h $(DISK)\contrib\include
47 46
else
48
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-statslib-
49
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-statslib-
47
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-statslib-
48
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-statslib-
50 49
	cp statslib/statsLib.h $(DISK)/contrib/include
51 50
endif
52 51

  
53 52
build-ecolib:
54 53
ifeq ($(TERMINAL),dos)
55
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\saflp-contrib-ecolib-
56
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\optlp-contrib-ecolib-
54
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-ecolib-
55
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-ecolib-
57 56
	copy ecolib\ecolib.h $(DISK)\contrib\include
58 57
else
59
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-ecolib-
60
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-ecolib-
58
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-ecolib-
59
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-ecolib-
61 60
	cp ecolib/ecolib.h $(DISK)/contrib/include
62 61
endif
63 62

  
64 63
build-qfclib:
65 64
ifeq ($(TERMINAL),dos)
66
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\saflp-contrib-qfclib-
67
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\optlp-contrib-qfclib-
65
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-qfclib-
66
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-qfclib-
68 67
	copy qfclib\qfclib.h $(DISK)\contrib\include
69 68
else
70
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-qfclib-
71
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-qfclib-
69
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-qfclib-
70
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-qfclib-
72 71
	cp qfclib/qfclib.h $(DISK)/contrib/include
73 72
endif
74 73

  
......
84 83

  
85 84
build-src:
86 85
ifeq ($(TERMINAL),dos)
87
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\optlp-contrib-
88
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)\include\"" PREFIX_OBJ=$(LIBPATH)\saflp-contrib-
86
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\optlp-contrib-
87
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I..\..\build\dist\include" PREFIX_OBJ=..\..\build\objects\dist\saflp-contrib-
89 88
	copy src\contrib.h $(DISK)\contrib\include
90 89
else
91
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-
92
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I\"$(ADMB_HOME)/include\"" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-
90
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/optlp-contrib-
91
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS) -I../../build/dist/include" PREFIX_OBJ=../../build/objects/dist/saflp-contrib-
93 92
	cp src/contrib.h $(DISK)/contrib/include
94 93
endif
95 94

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff