mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-19 00:07:13 +02:00
fixed non-rest compilation
This commit is contained in:
@ -45,9 +45,9 @@ intdoc: $(SRC_H) $(SRC_CLNT)
|
||||
|
||||
$(BUILDDIR)/%.o : $(SRCDIR)/%.cpp Makefile
|
||||
ifeq ($(ROOTSLS),yes)
|
||||
$(CXX) -DROOTSLS -o $@ -c $< $(INCLUDES) $(DFLAGS) $(ROOTFLAGS) -fPIC $(EPICSFLAGS) -L/usr/lib64/ #$(FLAGS)
|
||||
$(CXX) -DROOTSLS -o $@ -c $< $(INCLUDES) $(DFLAGS) $(ROOTFLAGS) -fPIC $(EPICSFLAGS) $(LDFLAGRXR) -L/usr/lib64/ #$(FLAGS)
|
||||
else
|
||||
$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) -lpthread #$(FLAGS)
|
||||
$(CXX) -o $@ -c $< $(INCLUDES) $(DFLAGS) -fPIC $(EPICSFLAGS) $(LDFLAGRXR) -lpthread #$(FLAGS)
|
||||
endif
|
||||
|
||||
lib: $(OBJS) $(DESTDIR)/libSlsReceiver.so $(DESTDIR)/libSlsReceiver.a
|
||||
|
@ -13,8 +13,9 @@ using namespace std;
|
||||
#include "UDPInterface.h"
|
||||
#include "UDPBaseImplementation.h"
|
||||
#include "UDPStandardImplementation.h"
|
||||
#ifdef REST
|
||||
#include "UDPRESTImplementation.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
using namespace std;
|
||||
@ -26,11 +27,11 @@ UDPInterface * UDPInterface::create(string receiver_type){
|
||||
cout << "Starting " << receiver_type << endl;
|
||||
return new UDPStandardImplementation();
|
||||
}
|
||||
//#ifdef REST
|
||||
#ifdef REST
|
||||
else if (receiver_type == "REST"){
|
||||
return new UDPRESTImplementation();
|
||||
}
|
||||
//#endif
|
||||
#endif
|
||||
else{
|
||||
FILE_LOG(logWARNING) << "[ERROR] UDP interface not supported, using standard implementation";
|
||||
return new UDPBaseImplementation();
|
||||
|
Reference in New Issue
Block a user