Revision 978 trunk/contrib/GNUmakefile

GNUmakefile (revision 978)
16 16

  
17 17
all: contribs build-ad2csv
18 18

  
19
contribs: build-statslib build-ecolib build-qfclib build-contrib
19
contribs: build-statslib build-ecolib build-qfclib build-src
20 20
ifneq ($(SHELL),sh.exe)
21 21
	$(AR) -rs $(DISK)/contrib/lib/libcontrib.a ../build/objects/dist/saflp-contrib-*.obj
22 22
	$(AR) -rs $(DISK)/contrib/lib/libcontribo.a ../build/objects/dist/optlp-contrib-*.obj
......
63 63
	$(MAKE) --directory=admb2r ADMB_HOME="$(ADMB_HOME)" gcc
64 64
endif
65 65

  
66
build-contrib:
67
ifneq ($(SHELL),sh.exe)
66
build-src:
68 67
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DOPT_LIB $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/optlp-contrib-
69 68
	$(MAKE) --directory=src CXX=$(CXX) CXXFLAGS="-DSAFE_ALL $(CXXFLAGS)" PREFIX_OBJ=$(LIBPATH)/saflp-contrib-
69
ifeq ($(SHELL),sh.exe)
70
	copy src\contrib.h $(DISK)\contrib\include
71
else
72
	cp src/contrib.h $(DISK)/contrib/include
70 73
endif
71 74

  
72 75
test:

Also available in: Unified diff