Revision 1479 trunk/src/GNUmakefile

GNUmakefile (revision 1479)
110 110

  
111 111
shared: all
112 112
ifeq ($(SHELL),cmd)
113
	pushd ..\build\objects\dist & $(CXX) -static -shared $(LDFLAGS) -o..\..\dist\lib\admbo.dll optlp-*.obj
114
	pushd ..\build\objects\dist & $(CXX) -static -shared $(LDFLAGS) -o..\..\dist\lib\admb.dll saflp-*.obj
113
	$(CXX) -static -shared $(LDFLAGS) -o..\build\dist\lib\admb.dll -Wl,--whole-archive ..\build\dist\lib\libadmb.a -Wl,--no-whole-archive
114
	$(CXX) -static -shared $(LDFLAGS) -o..\build\dist\lib\admbo.dll -Wl,--whole-archive ..\build\dist\lib\libadmbo.a -Wl,--no-whole-archive
115 115
else
116
	$(CXX) -shared -o../build/dist/lib/libadmbo.so ../build/objects/dist/optlp-*.obj
117
	$(CXX) -shared -o../build/dist/lib/libadmb.so ../build/objects/dist/saflp-*.obj
116
  ifeq ($(CXX),c++)
117
	$(CXX) -shared -o../build/dist/lib/libadmb.so -Wl,-force_load ../build/dist/lib/libadmb.a
118
	$(CXX) -shared -o../build/dist/lib/libadmbo.so -Wl,-force_load ../build/dist/lib/libadmbo.a
119
  else
120
	$(CXX) -shared -o../build/dist/lib/libadmb.so -Wl,--whole-archive ../build/dist/lib/libadmb.a -Wl,--no-whole-archive
121
	$(CXX) -shared -o../build/dist/lib/libadmbo.so -Wl,--whole-archive ../build/dist/lib/libadmbo.a -Wl,--no-whole-archive
122
  endif
118 123
endif
119 124
	@echo ADMB shared build completed.
120 125
	@echo Check README.txt for usage and installation information.

Also available in: Unified diff