diff --git a/Makefile b/Makefile index 149f5b2..8246da7 100644 --- a/Makefile +++ b/Makefile @@ -6,19 +6,19 @@ MKDIR = mkdir -p CPP = g++ 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 = -shared +LDFLAGS = -shared -Wl,-soname,libcpp_h5_writer.so HEADERS = $(wildcard $(SRC_DIR)/*.hpp) SRCS = $(wildcard $(SRC_DIR)/*.cpp) OBJS = $(patsubst $(SRC_DIR)/%.cpp, $(OBJ_DIR)/%.o, $(SRCS)) -all: build_dirs libCppH5Writer +all: build_dirs libcpp_h5_writer debug: CPPFLAGS += -DDEBUG_OUTPUT -g debug: all -libCppH5Writer: $(OBJS) - $(CPP) $(LDFLAGS) -o $(BIN_DIR)/libCppH5Writer.so $(OBJS) $(LDLIBS) +libcpp_h5_writer: $(OBJS) + $(CPP) $(LDFLAGS) -o $(BIN_DIR)/libcpp_h5_writer.so $(OBJS) $(LDLIBS) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(CPP) $(CPPFLAGS) $(LDLIBS) -c -o $@ $< diff --git a/README.md b/README.md index 8282bfa..4faf314 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ -# libCppH5Writer -This is the library used for creating C++ based stream writer for H5 files. - -It focuses on the functionality needed for high performance detectors integrations. +# lib_cpp_h5_writer +This library is used for creating C++ based stream writer for H5 files. It focuses on the functionality +and performance needed for high performance detectors integrations. Key features: - Get data from ZMQ stream (Array-1.0 protocol) - [htypes specification](https://github.com/datastreaming/htypes) diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh index 5ad187e..8b2a655 100644 --- a/conda-recipe/build.sh +++ b/conda-recipe/build.sh @@ -1,4 +1,6 @@ make cp bin/* ${PREFIX}/lib -cp src/*.hpp ${PREFIX}/include \ No newline at end of file + +mkdir -p ${PREFIX}/include/cpp_h5_writer +cp src/*.hpp ${PREFIX}/include/cpp_h5_writer \ No newline at end of file