mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-01 01:52:24 +02:00
Adjust make file for library
This commit is contained in:
@@ -4,21 +4,21 @@ BIN_DIR = ./bin
|
||||
MKDIR = mkdir -p
|
||||
|
||||
CPP = g++
|
||||
CPPFLAGS = -Wall -pthread -std=c++1y -I./include -I${CONDA_PREFIX}/include
|
||||
CPPFLAGS = -Wall -fPIC -pthread -std=c++1y -I./include -I${CONDA_PREFIX}/include
|
||||
LDLIBS = -L/usr/lib64 -L${CONDA_PREFIX}/lib -lzmq -lhdf5 -lhdf5_hl -lhdf5_cpp -lhdf5_hl_cpp -lboost_system -lboost_regex -lboost_thread -lpthread
|
||||
LDFLAGS = -g
|
||||
LDFLAGS = -shared
|
||||
|
||||
HEADERS = $(wildcard $(SRC_DIR)/*.hpp)
|
||||
SRCS = $(wildcard $(SRC_DIR)/*.cpp)
|
||||
OBJS = $(patsubst $(SRC_DIR)/%.cpp, $(OBJ_DIR)/%.o, $(SRCS))
|
||||
|
||||
all: build_dirs h5_zmq_writer
|
||||
all: build_dirs libCppH5Writer
|
||||
|
||||
debug: CPPFLAGS += -DDEBUG_OUTPUT -g
|
||||
debug: all
|
||||
|
||||
h5_zmq_writer: $(OBJS)
|
||||
$(CPP) $(LDFLAGS) -o $(BIN_DIR)/h5_zmq_writer $(OBJS) $(LDLIBS)
|
||||
libCppH5Writer: $(OBJS)
|
||||
$(CPP) $(LDFLAGS) -o $(BIN_DIR)/libCppH5Writer.so $(OBJS) $(LDLIBS)
|
||||
|
||||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
|
||||
$(CPP) $(CPPFLAGS) $(LDLIBS) -c -o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user