mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-17 23:37:14 +02:00
compiling with and without root defined in makefile.include
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@819 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -10,7 +10,7 @@ DOCDIR ?= docs
|
|||||||
CFLAGS= -g -DC_ONLY -fPIC
|
CFLAGS= -g -DC_ONLY -fPIC
|
||||||
#FLAGS+= #-DVERBOSE -DVERYVERBOSE
|
#FLAGS+= #-DVERBOSE -DVERYVERBOSE
|
||||||
|
|
||||||
DFLAGS= -g -DDACS_INT -DTHIS_PATH='"$(shell pwd)"' -DSLS_RECEIVER_FUNCTION_LIST $(shell root-config --cflags --glibs) #-DALLFILE_DEBUG #-DMYROOT1 -DALLFILE #-DMYROOT1 `root-config --cflags --glibs`
|
DFLAGS= -g -DDACS_INT -DTHIS_PATH='"$(shell pwd)"' -DSLS_RECEIVER_FUNCTION_LIST #$(shell root-config --cflags --glibs) -DMYROOT1 #-DALLFILE_DEBUG #-DMYROOT1 -DALLFILE #-DMYROOT1 `root-config --cflags --glibs`
|
||||||
|
|
||||||
INCLUDES?= -IcommonFiles -IslsDetector -IMySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis -IslsReceiverInterface -IslsReceiver -I../slsDetectorCalibration -I$(ASM)
|
INCLUDES?= -IcommonFiles -IslsDetector -IMySocketTCP -IusersFunctions -ImultiSlsDetector -IslsDetectorUtils -IslsDetectorCommand -IslsDetectorAnalysis -IslsReceiverInterface -IslsReceiver -I../slsDetectorCalibration -I$(ASM)
|
||||||
|
|
||||||
@ -67,7 +67,11 @@ gotthardVirtualServer: $(SRC_MYTHEN_SVC)
|
|||||||
%.o : %.cpp %.h Makefile
|
%.o : %.cpp %.h Makefile
|
||||||
ifeq ($(EIGERSLS),yes)
|
ifeq ($(EIGERSLS),yes)
|
||||||
$(CXX) -DEIGERSLS -o $@ -c $< $(INCLUDES) $(DFLAGS) $(EIGERFLAGS) -fPIC $(EPICSFLAGS) -L/usr/lib64/ #$(FLAGS)
|
$(CXX) -DEIGERSLS -o $@ -c $< $(INCLUDES) $(DFLAGS) $(EIGERFLAGS) -fPIC $(EPICSFLAGS) -L/usr/lib64/ #$(FLAGS)
|
||||||
|
else ifeq ($(ROOTSLS),yes)
|
||||||
|
echo "with root"
|
||||||
|
$(CXX) -DROOTSLS -o $@ -c $< $(INCLUDES) $(DFLAGS) $(ROOTFLAGS) -fPIC $(EPICSFLAGS) -L/usr/lib64/ #$(FLAGS)
|
||||||
else
|
else
|
||||||
|
echo "without root"
|
||||||
$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -lpthread #$(FLAGS)
|
$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -lpthread #$(FLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -4669,7 +4669,6 @@ string multiSlsDetector::getErrorMessage(int &critical){
|
|||||||
char sNumber[100];
|
char sNumber[100];
|
||||||
critical=0;
|
critical=0;
|
||||||
|
|
||||||
static int count = 0;
|
|
||||||
multiMask = getErrorMask();
|
multiMask = getErrorMask();
|
||||||
if(multiMask){
|
if(multiMask){
|
||||||
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++) {
|
for (int idet=0; idet<thisMultiDetector->numberOfDetectors; idet++) {
|
||||||
@ -4696,23 +4695,6 @@ string multiSlsDetector::getErrorMessage(int &critical){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char output[255];
|
|
||||||
FILE* sysFile = popen("whoami", "r");
|
|
||||||
fgets(output, sizeof(output), sysFile);
|
|
||||||
pclose(sysFile);
|
|
||||||
sysFile = popen("whoami", "r");
|
|
||||||
fgets(output, sizeof(output), sysFile);
|
|
||||||
pclose(sysFile);
|
|
||||||
sysFile= NULL;
|
|
||||||
if((strstr (output, "l_cartier") !=NULL)|| (strstr (output, "cartier_s") !=NULL)){
|
|
||||||
count++;
|
|
||||||
if(!(count%30)){
|
|
||||||
critical = 1;
|
|
||||||
retval.append("\n\n GET A CAKE!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,6 +49,10 @@ eigerReceiver:
|
|||||||
$(CXX) $(FLAGS) $(CFLAGS) -fPIC -c -o eigerReceiverTest.o eigerReceiverTest.cpp $(EIGERFLAGS)
|
$(CXX) $(FLAGS) $(CFLAGS) -fPIC -c -o eigerReceiverTest.o eigerReceiverTest.cpp $(EIGERFLAGS)
|
||||||
$(CXX) $(FLAGS) $(CFLAGS) -fPIC -c -o eigerReceiver.o eigerReceiver.cpp $(EIGERFLAGS)
|
$(CXX) $(FLAGS) $(CFLAGS) -fPIC -c -o eigerReceiver.o eigerReceiver.cpp $(EIGERFLAGS)
|
||||||
$(CXX) eigerReceiverTest.o eigerReceiver.o -o eigerReceiverTest $(EIGERFLAGS)
|
$(CXX) eigerReceiverTest.o eigerReceiver.o -o eigerReceiverTest $(EIGERFLAGS)
|
||||||
|
else ifeq ($(ROOTSLS), yes)
|
||||||
|
eigerReceiver: eigerReceiverDummy.cpp
|
||||||
|
echo "Compiling dummy EigerReceiver with root"
|
||||||
|
$(CXX) $(FLAGS) $(CFLAGS) -fPIC -c -o eigerReceiver.o eigerReceiverDummy.cpp $(ROOTFLAGS)
|
||||||
else
|
else
|
||||||
eigerReceiver: eigerReceiverDummy.cpp
|
eigerReceiver: eigerReceiverDummy.cpp
|
||||||
echo "Compiling dummy EigerReceiver"
|
echo "Compiling dummy EigerReceiver"
|
||||||
|
@ -553,6 +553,11 @@ int slsReceiverFunctionList::enableDataCompression(bool enable){
|
|||||||
cout << "enabled" << endl;
|
cout << "enabled" << endl;
|
||||||
else
|
else
|
||||||
cout << "disabled" << endl;
|
cout << "disabled" << endl;
|
||||||
|
#ifdef MYROOT1
|
||||||
|
cout << " WITH ROOT" << endl;
|
||||||
|
#else
|
||||||
|
cout << " WITHOUT ROOT" << endl;
|
||||||
|
#endif
|
||||||
//delete filter for the current number of threads
|
//delete filter for the current number of threads
|
||||||
deleteFilter();
|
deleteFilter();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user