File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,15 @@ LIBNAME := $(notdir $(CURDIR))
33OBJDIR := $(OBJDIR ) /$(LIBNAME )
44TARGET := $(LIBNAME ) .so
55
6+ OS := $(shell uname)
7+
8+ ifeq ($(OS ) ,Darwin)
9+ CXXFLAGS := $(CXXFLAGS ) -I/opt/local/include
10+ LDFLAGS := $(LDFLAGS ) -L/opt/local/lib -lhdf5 -lhdf5_cpp
11+ else
612CXXFLAGS := $(CXXFLAGS ) -I/usr/include/hdf5/serial -I/usr/local/hdf5/include
713LDFLAGS := $(LDFLAGS ) -L/usr/lib/x86_64-linux-gnu/hdf5/serial -L/usr/local/hdf5/lib -lhdf5 -lhdf5_cpp
14+ endif
815
916SRC_DIR := ${shell find ./ -type d -print}
1017VPATH := $(SOURCE_DIRS )
Original file line number Diff line number Diff line change 22LIBNAME := $(notdir $(CURDIR ) )
33OBJDIR := $(OBJDIR ) /$(LIBNAME )
44TARGET := $(LIBNAME ) .so
5-
5+ OS := $( shell uname)
66
77SRC_DIR := ${shell find ./ -type d -print}
88VPATH := $(SOURCE_DIRS )
99
1010SRC := $(foreach sdir,$(SRC_DIR ) ,$(wildcard $(sdir ) /* .cpp) )
1111OBJ := $(addprefix $(OBJDIR ) /,$(notdir $(SRC:.cpp=.o ) ) )
1212
13+ ifeq ($(OS ) ,Darwin)
14+ CXXFLAGS := $(CXXFLAGS ) -I/opt/local/include
15+ LDFLAGS := $(LDFLAGS ) -L/opt/local/lib
16+ endif
1317CXXFLAGS := $(CXXFLAGS ) -D "ZEROMQ"
1418LDFLAGS := $(LDFLAGS ) -lzmq
1519
20+
21+
1622BLDCMD := $(CXX ) -shared -o $(OUTDIR ) /$(TARGET ) $(OBJ ) $(LDFLAGS ) $(RESOURCES ) $(TARGET_ARCH )
1723
1824VPATH = $(SRC_DIR )
You can’t perform that action at this time.
0 commit comments