Skip to content

Commit e99e095

Browse files
committed
Add library paths to OSX MacPorts dependent plugins
1 parent a261156 commit e99e095

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Source/Plugins/KWIKFormat/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ LIBNAME := $(notdir $(CURDIR))
33
OBJDIR := $(OBJDIR)/$(LIBNAME)
44
TARGET := $(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
612
CXXFLAGS := $(CXXFLAGS) -I/usr/include/hdf5/serial -I/usr/local/hdf5/include
713
LDFLAGS := $(LDFLAGS) -L/usr/lib/x86_64-linux-gnu/hdf5/serial -L/usr/local/hdf5/lib -lhdf5 -lhdf5_cpp
14+
endif
815

916
SRC_DIR := ${shell find ./ -type d -print}
1017
VPATH := $(SOURCE_DIRS)

Source/Plugins/NetworkEvents/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,23 @@
22
LIBNAME := $(notdir $(CURDIR))
33
OBJDIR := $(OBJDIR)/$(LIBNAME)
44
TARGET := $(LIBNAME).so
5-
5+
OS := $(shell uname)
66

77
SRC_DIR := ${shell find ./ -type d -print}
88
VPATH := $(SOURCE_DIRS)
99

1010
SRC := $(foreach sdir,$(SRC_DIR),$(wildcard $(sdir)/*.cpp))
1111
OBJ := $(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
1317
CXXFLAGS := $(CXXFLAGS) -D "ZEROMQ"
1418
LDFLAGS := $(LDFLAGS) -lzmq
1519

20+
21+
1622
BLDCMD := $(CXX) -shared -o $(OUTDIR)/$(TARGET) $(OBJ) $(LDFLAGS) $(RESOURCES) $(TARGET_ARCH)
1723

1824
VPATH = $(SRC_DIR)

0 commit comments

Comments
 (0)