Revision 933

trunk/contrib/GNUmakefile (revision 933)
1
ifneq ($(SHELL),sh.exe)
2
DISK=../build/dist
3
else
4
DISK=..\build\dist
5
endif
6

  
1 7
ifndef LIBPATH
2 8
LIBPATH=../../build/objects/dist
3 9
endif
......
12 18

  
13 19
contribs: build-statslib build-ecolib build-qfclib build-sample
14 20
ifneq ($(SHELL),sh.exe)
15
	$(AR) -rs $(ADMB_HOME)/contrib/lib/libcontrib.a ../build/objects/dist/saflp-contrib-*.obj
16
	$(AR) -rs $(ADMB_HOME)/contrib/lib/libcontribo.a ../build/objects/dist/optlp-contrib-*.obj
21
	$(AR) -rs $(DISK)/contrib/lib/libcontrib.a ../build/objects/dist/saflp-contrib-*.obj
22
	$(AR) -rs $(DISK)/contrib/lib/libcontribo.a ../build/objects/dist/optlp-contrib-*.obj
17 23
endif
18 24

  
19 25

  
......
21 27
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-statslib-
22 28
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-statslib-
23 29
ifeq ($(SHELL),sh.exe)
24
	copy statslib\statsLib.h $(ADMB_HOME)\contrib\include
30
	copy statslib\statsLib.h $(DISK)\contrib\include
25 31
else
26
	cp statslib/statsLib.h $(ADMB_HOME)/contrib/include
32
	cp statslib/statsLib.h $(DISK)/contrib/include
27 33
endif
28 34

  
29 35
build-ecolib:
30 36
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-ecolib-
31 37
	$(MAKE) --directory=ecolib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-ecolib-
32 38
ifeq ($(SHELL),sh.exe)
33
	copy ecolib\ecolib.h $(ADMB_HOME)\contrib\include
39
	copy ecolib\ecolib.h $(DISK)\contrib\include
34 40
else
35
	cp ecolib/ecolib.h $(ADMB_HOME)/contrib/include
41
	cp ecolib/ecolib.h $(DISK)/contrib/include
36 42
endif
37 43

  
38 44
build-qfclib:
39 45
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-qfclib-
40 46
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-qfclib-
41 47
ifeq ($(SHELL),sh.exe)
42
	copy qfclib\qfclib.h $(ADMB_HOME)\contrib\include
48
	copy qfclib\qfclib.h $(DISK)\contrib\include
43 49
else
44
	cp qfclib/qfclib.h $(ADMB_HOME)/contrib/include
50
	cp qfclib/qfclib.h $(DISK)/contrib/include
45 51
endif
46 52

  
47 53
build-ad2csv:
54
ifneq ($(SHELL),sh.exe)
48 55
	$(MAKE) --directory=ad2csv ADMB_HOME="$(ADMB_HOME)"
56
endif
49 57

  
50 58
build-admb2r:
59
ifneq ($(SHELL),sh.exe)
51 60
	$(MAKE) --directory=admb2r ADMB_HOME="$(ADMB_HOME)" gcc
61
endif
52 62

  
53 63
build-sample:
64
ifneq ($(SHELL),sh.exe)
54 65
	$(MAKE) --directory=sample CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-sample-
55 66
	$(MAKE) --directory=sample CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-sample-
67
endif
56 68

  
57 69
test:
58 70
	$(MAKE) --directory=sample ADMB_HOME="$(ADMB_HOME)" test 

Also available in: Unified diff