Skip to content
Snippets Groups Projects
Commit e99e0958 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Add library paths to OSX MacPorts dependent plugins

parent a2611568
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,15 @@ LIBNAME := $(notdir $(CURDIR))
OBJDIR := $(OBJDIR)/$(LIBNAME)
TARGET := $(LIBNAME).so
OS := $(shell uname)
ifeq ($(OS),Darwin)
CXXFLAGS := $(CXXFLAGS) -I/opt/local/include
LDFLAGS := $(LDFLAGS) -L/opt/local/lib -lhdf5 -lhdf5_cpp
else
CXXFLAGS := $(CXXFLAGS) -I/usr/include/hdf5/serial -I/usr/local/hdf5/include
LDFLAGS := $(LDFLAGS) -L/usr/lib/x86_64-linux-gnu/hdf5/serial -L/usr/local/hdf5/lib -lhdf5 -lhdf5_cpp
endif
SRC_DIR := ${shell find ./ -type d -print}
VPATH := $(SOURCE_DIRS)
......
......@@ -2,7 +2,7 @@
LIBNAME := $(notdir $(CURDIR))
OBJDIR := $(OBJDIR)/$(LIBNAME)
TARGET := $(LIBNAME).so
OS := $(shell uname)
SRC_DIR := ${shell find ./ -type d -print}
VPATH := $(SOURCE_DIRS)
......@@ -10,9 +10,15 @@ VPATH := $(SOURCE_DIRS)
SRC := $(foreach sdir,$(SRC_DIR),$(wildcard $(sdir)/*.cpp))
OBJ := $(addprefix $(OBJDIR)/,$(notdir $(SRC:.cpp=.o)))
ifeq ($(OS),Darwin)
CXXFLAGS := $(CXXFLAGS) -I/opt/local/include
LDFLAGS := $(LDFLAGS) -L/opt/local/lib
endif
CXXFLAGS := $(CXXFLAGS) -D "ZEROMQ"
LDFLAGS := $(LDFLAGS) -lzmq
BLDCMD := $(CXX) -shared -o $(OUTDIR)/$(TARGET) $(OBJ) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
VPATH = $(SRC_DIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment