
4 changed files with 71 additions and 19 deletions
@ -0,0 +1,16 @@ |
|||||
|
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
||||
|
-include $(HERE)../../local.conf |
||||
|
|
||||
|
TARGET_PEP=_pEp.so |
||||
|
TARGET_PYBIND=_pybind.so |
||||
|
|
||||
|
# General Build settings
|
||||
|
CXX=g++ |
||||
|
CXXFLAGS+=-std=c++11 -g |
||||
|
INCLUDES+=-I$(PREFIX)/include |
||||
|
INCLUDES+=-I/opt/local/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 |
||||
|
LIB_DIRS=-L$(PREFIX)/lib |
||||
|
LIB_DIRS+=-L/opt/local/lib |
||||
|
LIBS=-lpEpEngine -lpEpAdapter |
||||
|
LDFLAGS+=-undefined dynamic_lookup |
||||
|
|
@ -0,0 +1,32 @@ |
|||||
|
include ../Makefile.conf |
||||
|
TARGET=$(TARGET_PYBIND) |
||||
|
|
||||
|
# Specific Build settings
|
||||
|
CXXFLAGS+= |
||||
|
INCLUDES+= |
||||
|
LIB_DIRS+= |
||||
|
LIBS+= |
||||
|
LDFLAGS+= |
||||
|
|
||||
|
|
||||
|
|
||||
|
# Combine Settings
|
||||
|
CXXFLAGS+=$(INCLUDES) |
||||
|
LDFLAGS+=$(LIB_DIRS) |
||||
|
LDFLAGS+=$(LIBS) |
||||
|
|
||||
|
SRCS:=$(wildcard *.cc) |
||||
|
OBJS:=$(SRCS:.cc=.o) |
||||
|
|
||||
|
.PHONY: clean |
||||
|
|
||||
|
all: $(TARGET) |
||||
|
|
||||
|
# Using implicit compile target
|
||||
|
# And explicit link taget
|
||||
|
$(TARGET): $(OBJS) |
||||
|
$(CXX) $(LDFLAGS) -o $@ $^ |
||||
|
|
||||
|
clean: |
||||
|
rm -rf $(TARGET) |
||||
|
rm -rf $(OBJS) |
Loading…
Reference in new issue