@@ -24,6 +24,7 @@ shared-newmat=1
24
24
shared-wxgtk =1
25
25
shared-fftw =1
26
26
shared-glut =1
27
+ shared-cctbx =1
27
28
endif
28
29
# ## Rules for Linux & GCC
29
30
# C compiler
@@ -237,7 +238,11 @@ $(DIR_STATIC_LIBS)/lib/libcctbx.a: $(BUILD_DIR)/cctbx.tar.bz2
237
238
# ln -sf $(BUILD_DIR)/boost $(DIR_STATIC_LIBS)/include/
238
239
# rm -Rf $(BUILD_DIR)/cctbx
239
240
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
241
246
242
247
$(BUILD_DIR ) /fftw-3.3.10.tar.gz :
243
248
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
268
273
rm -Rf $(BUILD_DIR ) /boost_1_68_0
269
274
270
275
# ObjCryst++
271
- libCryst : $(libwx ) libcctbx
276
+ libCryst : $(libwx ) $( libcctbx )
272
277
$(MAKE ) -f gnu.mak -C ${DIR_LIBCRYST} lib
273
278
274
279
libcryst : libCryst
275
280
276
281
# wxCryst++
277
- libwxCryst : $(libwx ) $(libfreeglut ) $(libfftw ) libcctbx
282
+ libwxCryst : $(libwx ) $(libfreeglut ) $(libfftw ) $( libcctbx )
278
283
$(MAKE ) -f gnu.mak -C ${DIR_WXWCRYST} lib
279
284
280
285
# Vector computation library
@@ -286,5 +291,5 @@ libQuirks: $(libwx)
286
291
$(MAKE ) -f gnu.mak -C ${DIR_VFNQUIRKS} lib
287
292
288
293
# Library to take care of refinable parameters, plus Global optimization and Least Squares refinements
289
- libRefinableObj :$(libnewmat ) $(libwx ) libcctbx
294
+ libRefinableObj :$(libnewmat ) $(libwx ) $( libcctbx )
290
295
$(MAKE ) -f gnu.mak -C ${DIR_REFOBJ} / lib
0 commit comments