From 0eec57f8a2ee5acdbe2ffce779d1bf4f5df52c01 Mon Sep 17 00:00:00 2001 From: Anna Bergamaschi Date: Wed, 29 May 2019 16:44:02 +0200 Subject: [PATCH] Corrected ctb Makefiles to work with bad bashrc --- ctbGui/Makefile.root5 | 4 ++-- ctbGui/Makefile.root6 | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ctbGui/Makefile.root5 b/ctbGui/Makefile.root5 index 767f32281..0617d61dd 100644 --- a/ctbGui/Makefile.root5 +++ b/ctbGui/Makefile.root5 @@ -30,13 +30,13 @@ ctbDict.cpp: $(INCS) $(LINKDEF) %.o : %.cpp echo $@ - g++ -DMYROOT `root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o $@ -c $< $(INCDIR) + g++ -DMYROOT `source root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o $@ -c $< $(INCDIR) #$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -lpthread #$(FLAGS) $(DESTDIR)/ctbGui: $(OBJS) $(LINKDEF) - g++ -DMYROOT `root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o ctbGui $(INCDIR) $(OBJS) ../slsDetectorCalibration/tiffIO.cpp + g++ -DMYROOT `source root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o ctbGui $(INCDIR) $(OBJS) ../slsDetectorCalibration/tiffIO.cpp mv ctbGui $(DESTDIR) clean: diff --git a/ctbGui/Makefile.root6 b/ctbGui/Makefile.root6 index 2251e5888..1c4c552ce 100644 --- a/ctbGui/Makefile.root6 +++ b/ctbGui/Makefile.root6 @@ -1,6 +1,6 @@ -INCS=ctbMain.h ctbDacs.h ctbPattern.h ctbSignals.h ctbAdcs.h ctbAcquisition.h ctbPowers.h ctbSlowAdcs.h +INCS=ctbMain.h ctbDacs.h ctbPattern.h ctbSignals.h ctbAdcs.h ctbAcquisition.h ctbPowers.h ctbSlowAdcs.h SRC= $(INCS:.h=.cpp) ctbDict.cpp LINKDEF=ctbLinkDef.h #ctbActions.h @@ -8,6 +8,7 @@ ZMQLIB=../slsReceiverSoftware/include LIBRARYCBF=$(CBFLIBDIR)/lib/*.o INCDIR=-I../slsReceiverSoftware/include/ -I../slsDetectorSoftware/include/ -I../slsSupportLib/include/ -I../slsDetectorCalibration -I../slsDetectorCalibration/dataStructures -I$(CBFLIBDIR)/include -I../slsDetectorCalibration/interpolations + LDFLAG=-L../build/bin -lSlsDetector -lSlsSupport -L/usr/lib64/ -lpthread -lm -lstdc++ -lzmq -pthread -lrt -ltiff -L$(ZMQLIB) -L$(CBFLIBDIR)/lib/ -std=c++11 # MAIN=ctbGui.cpp @@ -31,13 +32,13 @@ ctbDict.cpp: $(INCS) $(LINKDEF) %.o : %.cpp echo $@ - g++ -DMYROOT `root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o $@ -c $< $(INCDIR) + g++ -DMYROOT `source root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o $@ -c $< $(INCDIR) #$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -lpthread #$(FLAGS) $(DESTDIR)/ctbGui: $(OBJS) $(LINKDEF) - g++ -DMYROOT `root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o ctbGui $(INCDIR) $(OBJS) ../slsDetectorCalibration/tiffIO.cpp + g++ -DMYROOT `source root-config --cflags --glibs` -lMinuit -DCTB $(LDFLAG) -o ctbGui $(INCDIR) $(OBJS) ../slsDetectorCalibration/tiffIO.cpp mv ctbGui $(DESTDIR) clean: