Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions lanms/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
CXXFLAGS = -I include -std=c++11 -O3 $(shell python3-config --cflags)
LDFLAGS = $(shell python3-config --ldflags)

DEPS = lanms.h $(shell find include -xtype f)
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
LDSTACK = -Wl,-stack_size,1000000
TMPFLAGS = $(shell python3-config --ldflags)
LDFLAGS := $(filter-out $(LDSTACK), $(TMPFLAGS))
DEPS = lanms.h $(shell find include -type f)
else
LDFLAGS = $(shell python3-config --ldflags)
DEPS = lanms.h $(shell find include -xtype f)
endif

CXX_SOURCES = adaptor.cpp include/clipper/clipper.cpp

LIB_SO = adaptor.so
Expand Down