Revision 895 trunk/contrib/GNUmakefile

GNUmakefile (revision 895)
10 10

  
11 11
all: contribs build-ad2csv
12 12

  
13
contribs: build-statslib build-ecolib build-qfclib
13
contribs: build-statslib build-ecolib build-qfclib build-sample
14 14
ifeq ($(SHELL),sh.exe)
15 15
	copy contrib.h $(ADMB_HOME)\contrib\include
16 16
else
......
23 23
build-statslib:
24 24
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-statslib-
25 25
	$(MAKE) --directory=statslib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-statslib-
26
ifeq ($(SHELL),sh.exe)
27
	copy statslib\statsLib.h $(ADMB_HOME)\contrib\include
28
else
26 29
	cp statslib/statsLib.h $(ADMB_HOME)/contrib/include
30
endif
27 31

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

  
33 41
build-qfclib:
34 42
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-qfclib-
35 43
	$(MAKE) --directory=qfclib CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-qfclib-
44
ifeq ($(SHELL),sh.exe)
45
	copy qfclib\qfclib.h $(ADMB_HOME)\contrib\include
46
else
36 47
	cp qfclib/qfclib.h $(ADMB_HOME)/contrib/include
48
endif
37 49

  
38 50
build-ad2csv:
39 51
	$(MAKE) --directory=ad2csv ADMB_HOME="$(ADMB_HOME)"
......
44 56
build-sample:
45 57
	$(MAKE) --directory=sample CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-sample-
46 58
	$(MAKE) --directory=sample CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-sample-
47
	cp sample/sample.h $(ADMB_HOME)/contrib/include
48 59

  
49 60
test:
50 61
	$(MAKE) --directory=sample ADMB_HOME="$(ADMB_HOME)" test 
51 62

  
52
test-notworking:
63
test-needR:
53 64
	$(MAKE) --directory=ecolib ADMB_HOME="$(ADMB_HOME)" test
54 65
	$(MAKE) --directory=qfclib ADMB_HOME="$(ADMB_HOME)" test
55 66

  
56 67
clean:
57
	$(MAKE) --directory=ecolib clean
58
	$(MAKE) --directory=qfclib clean
59
	$(MAKE) --directory=statslib clean
60
	$(MAKE) --directory=sample clean
68
	@$(MAKE) --directory=ecolib clean
69
	@$(MAKE) --directory=qfclib clean
70
	@$(MAKE) --directory=statslib clean
71
	@$(MAKE) --directory=sample clean

Also available in: Unified diff