Revision 1623 trunk/src/GNUmakefile

GNUmakefile (revision 1623)
105 105

  
106 106
shared: $(OBJECTS)
107 107
ifeq ($(SHELL),cmd)
108
	$(CXX) -static -shared $(LDFLAGS) -o..\build\dist\lib\admb.dll -Wl,--whole-archive ..\build\dist\lib\libadmb-shared.a -Wl,--no-whole-archive
109
	$(CXX) -static -shared $(LDFLAGS) -o..\build\dist\lib\admbo.dll -Wl,--whole-archive ..\build\dist\lib\libadmbo-shared.a -Wl,--no-whole-archive
108
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\lib\admb.dll -Wl,--whole-archive ..\build\dist\lib\libadmb-shared.a -Wl,--no-whole-archive
109
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\lib\admbo.dll -Wl,--whole-archive ..\build\dist\lib\libadmbo-shared.a -Wl,--no-whole-archive
110 110
else
111 111
  ifeq (LLVM,$(findstring LLVM,$(shell $(CXX) --version)))
112
	$(CXX) -shared $(LDFLAGS) -o../build/dist/lib/libadmb.so -Wl,-all_load ../build/dist/lib/libadmb-shared.a
113
	$(CXX) -shared $(LDFLAGS) -o../build/dist/lib/libadmbo.so -Wl,-all_load ../build/dist/lib/libadmbo-shared.a
112
	$(CXX) -shared $(LDFLAGS) -o ../build/dist/lib/libadmb.so -Wl,-all_load ../build/dist/lib/libadmb-shared.a
113
	$(CXX) -shared $(LDFLAGS) -o ../build/dist/lib/libadmbo.so -Wl,-all_load ../build/dist/lib/libadmbo-shared.a
114 114
  else
115
	$(CXX) -shared $(LDFLAGS) -o../build/dist/lib/libadmb.so -Wl,--whole-archive ../build/dist/lib/libadmb-shared.a -Wl,--no-whole-archive
116
	$(CXX) -shared $(LDFLAGS) -o../build/dist/lib/libadmbo.so -Wl,--whole-archive ../build/dist/lib/libadmbo-shared.a -Wl,--no-whole-archive
115
	$(CXX) -shared $(LDFLAGS) -o ../build/dist/lib/libadmb.so -Wl,--whole-archive ../build/dist/lib/libadmb-shared.a -Wl,--no-whole-archive
116
	$(CXX) -shared $(LDFLAGS) -o ../build/dist/lib/libadmbo.so -Wl,--whole-archive ../build/dist/lib/libadmbo-shared.a -Wl,--no-whole-archive
117 117
  endif
118 118
endif
119 119
	@echo ADMB shared build completed.
......
123 123

  
124 124
shared2:
125 125
ifeq ($(SHELL),cmd)
126
	$(CXX) -static -shared $(LDFLAGS) -o..\build\dist\lib\admb.dll -Wl,--whole-archive ..\build\dist\lib\libadmb.a -Wl,--no-whole-archive
127
	$(CXX) -static -shared $(LDFLAGS) -o..\build\dist\lib\admbo.dll -Wl,--whole-archive ..\build\dist\lib\libadmbo.a -Wl,--no-whole-archive
126
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\lib\admb.dll -Wl,--whole-archive ..\build\dist\lib\libadmb.a -Wl,--no-whole-archive
127
	$(CXX) -static -shared $(LDFLAGS) -o ..\build\dist\lib\admbo.dll -Wl,--whole-archive ..\build\dist\lib\libadmbo.a -Wl,--no-whole-archive
128 128
else
129 129
  ifeq (LLVM,$(findstring LLVM,$(shell $(CXX) --version)))
130
	$(CXX) -shared -o../build/dist/lib/libadmb.so -Wl,-force_load ../build/dist/lib/libadmb.a
131
	$(CXX) -shared -o../build/dist/lib/libadmbo.so -Wl,-force_load ../build/dist/lib/libadmbo.a
130
	$(CXX) -shared -o ../build/dist/lib/libadmb.so -Wl,-force_load ../build/dist/lib/libadmb.a
131
	$(CXX) -shared -o ../build/dist/lib/libadmbo.so -Wl,-force_load ../build/dist/lib/libadmbo.a
132 132
  else
133
	$(CXX) -shared -o../build/dist/lib/libadmb.so -Wl,--whole-archive ../build/dist/lib/libadmb.a -Wl,--no-whole-archive
134
	$(CXX) -shared -o../build/dist/lib/libadmbo.so -Wl,--whole-archive ../build/dist/lib/libadmbo.a -Wl,--no-whole-archive
133
	$(CXX) -shared -o ../build/dist/lib/libadmb.so -Wl,--whole-archive ../build/dist/lib/libadmb.a -Wl,--no-whole-archive
134
	$(CXX) -shared -o ../build/dist/lib/libadmbo.so -Wl,--whole-archive ../build/dist/lib/libadmbo.a -Wl,--no-whole-archive
135 135
  endif
136 136
endif
137 137

  
......
237 237

  
238 238
ifeq ($(SHELL),cmd)
239 239
$(OBJSDIR)optlp-nh99-banner.obj: nh99\banner.cpp
240
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -DADMB_VERSION=$(shell if exist ..\VERSION type ..\VERSION) -o$@ $<
240
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -DADMB_VERSION=$(shell if exist ..\VERSION type ..\VERSION) -o $@ $<
241 241

  
242 242
$(OBJSDIR)saflp-nh99-banner.obj: nh99\banner.cpp
243
	$(CXX) -c $(CXXFLAGS) -DADMB_VERSION=$(shell if exist ..\VERSION type ..\VERSION) -o$@ $<
243
	$(CXX) -c $(CXXFLAGS) -DADMB_VERSION=$(shell if exist ..\VERSION type ..\VERSION) -o $@ $<
244 244

  
245 245
$(OBJSDIR)optlp-sparse-hs_sparse.obj: sparse\hs_sparse.cpp
246
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o$@ $<
246
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o $@ $<
247 247

  
248 248
$(OBJSDIR)saflp-sparse-hs_sparse.obj: sparse\hs_sparse.cpp
249
	$(CXX) -c $(CXXFLAGS) -o$@ $<
249
	$(CXX) -c $(CXXFLAGS) -o $@ $<
250 250

  
251 251
$(OBJSDIR)optlp-df1b2-separable-%.obj: df1b2-separable\%.cpp
252
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o$@ $<
252
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o $@ $<
253 253

  
254 254
$(OBJSDIR)saflp-df1b2-separable-%.obj: df1b2-separable\%.cpp
255
	$(CXX) -c $(CXXFLAGS) -o$@ $<
255
	$(CXX) -c $(CXXFLAGS) -o $@ $<
256 256

  
257 257
$(OBJSDIR)optlp-linad99-%.obj:linad99\%.cpp
258
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o$@ $<
258
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o $@ $<
259 259

  
260 260
$(OBJSDIR)saflp-linad99-%.obj:linad99\%.cpp
261
	$(CXX) -c $(CXXFLAGS) -o$@ $<
261
	$(CXX) -c $(CXXFLAGS) -o $@ $<
262 262

  
263 263
$(OBJSDIR)optlp-nh99-%.obj:nh99\%.cpp
264
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o$@ $<
264
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o $@ $<
265 265

  
266 266
$(OBJSDIR)saflp-nh99-%.obj:nh99\%.cpp
267
	$(CXX) -c $(CXXFLAGS) -o$@ $<
267
	$(CXX) -c $(CXXFLAGS) -o $@ $<
268 268

  
269 269
$(OBJSDIR)optlp-tools99-%.obj:tools99\%.cpp
270
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o$@ $<
270
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -o $@ $<
271 271

  
272 272
$(OBJSDIR)saflp-tools99-%.obj:tools99\%.cpp
273
	$(CXX) -c $(CXXFLAGS) -o$@ $<
273
	$(CXX) -c $(CXXFLAGS) -o $@ $<
274 274
else
275 275
$(OBJSDIR)optlp-nh99-banner.obj: nh99/banner.cpp
276
	$(CXX) -c $(CXXFLAGS_OPT_LIB) -DADMB_VERSION=$(shell cat ../VERSION) -o$@ $<
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff