Revision 1472 trunk/contrib/GNUmakefile

GNUmakefile (revision 1472)
29 29
	$(MAKE) contrib-includes
30 30
	$(MAKE) contrib-libs
31 31
	$(MAKE) contrib-ad2csv
32
	@echo ADMB contrib build completed.
32 33

  
34
shared: all
35
ifeq ($(SHELL),cmd)
36
	$(CXX) -static -shared -o src\$(CONTRIB_LIB)\contrib.dll src\$(CONTRIB_OBJS_DIR)\saflp-contrib-*.obj ..\build\dist\lib\libadmb.a
37
	$(CXX) -static -shared -o src\$(CONTRIB_LIB)\contribo.dll src\$(CONTRIB_OBJS_DIR)\optlp-contrib-*.obj ..\build\dist\lib\libadmbo.a
38
else
39
	$(CXX) -shared -osrc/$(CONTRIB_LIB)/libcontrib.so src/$(CONTRIB_OBJS_DIR)/saflp-contrib-*.obj ../build/dist/lib/libadmb.a
40
	$(CXX) -shared -osrc/$(CONTRIB_LIB)/libcontribo.so src/$(CONTRIB_OBJS_DIR)/optlp-contrib-*.obj ../build/dist/lib/libadmbo.a
41
endif
42
	@echo ADMB contrib shared build completed.
43

  
33 44
contrib-includes: contrib-dirs
34 45
	@$(MAKE) --directory=ecolib CONTRIB_INCLUDE=$(CONTRIB_INCLUDE) includes
35 46
	@$(MAKE) --directory=gdbprintlib CONTRIB_INCLUDE=$(CONTRIB_INCLUDE) includes

Also available in: Unified diff