
3 changed files with 59 additions and 2 deletions
@ -0,0 +1,35 @@ |
|||||
|
include Makefile.conf |
||||
|
TARGET=$(TARGET_PEP) |
||||
|
|
||||
|
# Specific Build settings
|
||||
|
#CXXFLAGS+=-Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -g -fwrapv -O3 -Wall -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk
|
||||
|
CXXFLAGS+=$(shell python-config --cflags) |
||||
|
#INCLUDES+=$(shell python-config --includes)
|
||||
|
INCLUDES+=-I/opt/local/include |
||||
|
LIB_DIRS+=-L$(shell python-config --prefix) |
||||
|
LIB_DIRS+=-L/opt/local/lib |
||||
|
LIBS+=-lboost_python3-mt -lboost_locale-mt |
||||
|
LDFLAGS+=$(shell python-config --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) |
@ -0,0 +1,16 @@ |
|||||
|
HERE:=$(dir $(lastword $(MAKEFILE_LIST))) |
||||
|
-include $(HERE)../../../local.conf |
||||
|
|
||||
|
TARGET_PEP=_pEp.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
|
||||
|
|
Loading…
Reference in new issue