Makefile.mac 694 Bytes
Newer Older
Gerard Ryan's avatar
Gerard Ryan committed
1 2
## for mac OSx

Gerard Ryan's avatar
Gerard Ryan committed
3 4
TAR := gnutar

Gerard Ryan's avatar
Gerard Ryan committed
5 6
OMPINCLUDE := -I /opt/local/include/libomp -fopenmp

Gerard Ryan's avatar
Gerard Ryan committed
7 8 9 10 11
ifneq ($(wildcard third-party/include), )
  NTLLIB := third-party/lib/libntl.dylib
  GMPLIB := third-party/lib/libgmp.dylib
endif

Gerard Ryan's avatar
Gerard Ryan committed
12 13 14 15 16 17
CPPSTD := -std=c++11 -stdlib=libc++ -fPIC
CC := /opt/local/bin/clang++ $(CPPSTD)
BISON := /opt/local/bin/bison
FLEX := /opt/local/bin/flex

LIBSUFFIX := .dylib
Gerard Ryan's avatar
Gerard Ryan committed
18
LIBCMD := $(CC) -dynamiclib -undefined suppress -flat_namespace -fopenmp -o #libname to follow
Gerard Ryan's avatar
Gerard Ryan committed
19 20 21 22 23 24 25 26 27 28 29 30

RDYNAMIC := 

JNIBUILD :=  
JNILIB := libPalisadeCryptoWrapper.jnilib
JNILINKPARM := -framework JavaVM

PYINCLUDE := $(shell python-config --include)
LIBPYTHON := -lpython2.7 

COMPTHREADFLAG := -pthread
LOADTHREADFLAG :=