@@ -24,6 +24,7 @@ shared-newmat=1
2424shared-wxgtk =1
2525shared-fftw =1
2626shared-glut =1
27+ shared-cctbx =1
2728endif
2829# ## Rules for Linux & GCC
2930# C compiler
@@ -237,7 +238,11 @@ $(DIR_STATIC_LIBS)/lib/libcctbx.a: $(BUILD_DIR)/cctbx.tar.bz2
237238 # ln -sf $(BUILD_DIR)/boost $(DIR_STATIC_LIBS)/include/
238239 # rm -Rf $(BUILD_DIR)/cctbx
239240
240- libcctbx : $(DIR_STATIC_LIBS ) /lib/libcctbx.a
241+ ifneq ($(shared-cctbx ) ,1)
242+ libcctbx = $(DIR_STATIC_LIBS ) /lib/libcctbx.a
243+ else
244+ libcctbx =
245+ endif
241246
242247$(BUILD_DIR ) /fftw-3.3.10.tar.gz :
243248 cd $(BUILD_DIR ) && $(DOWNLOAD_COMMAND ) http://fftw.org/fftw-3.3.10.tar.gz
@@ -268,13 +273,13 @@ libboost:$(BUILD_DIR)/boost_1_68_0.tar.bz2
268273 rm -Rf $(BUILD_DIR ) /boost_1_68_0
269274
270275# ObjCryst++
271- libCryst : $(libwx ) libcctbx
276+ libCryst : $(libwx ) $( libcctbx )
272277 $(MAKE ) -f gnu.mak -C ${DIR_LIBCRYST} lib
273278
274279libcryst : libCryst
275280
276281# wxCryst++
277- libwxCryst : $(libwx ) $(libfreeglut ) $(libfftw ) libcctbx
282+ libwxCryst : $(libwx ) $(libfreeglut ) $(libfftw ) $( libcctbx )
278283 $(MAKE ) -f gnu.mak -C ${DIR_WXWCRYST} lib
279284
280285# Vector computation library
@@ -286,5 +291,5 @@ libQuirks: $(libwx)
286291 $(MAKE ) -f gnu.mak -C ${DIR_VFNQUIRKS} lib
287292
288293# Library to take care of refinable parameters, plus Global optimization and Least Squares refinements
289- libRefinableObj :$(libnewmat ) $(libwx ) libcctbx
294+ libRefinableObj :$(libnewmat ) $(libwx ) $( libcctbx )
290295 $(MAKE ) -f gnu.mak -C ${DIR_REFOBJ} / lib
0 commit comments