Makefile.lin 787 Bytes
Newer Older
Gerard Ryan's avatar
Gerard Ryan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
## for linux

##BOOSTINCLUDE := -I /afs/cad/linux/boost-1.60-sl6/include/
BOOSTINCLUDE := 

OMPINCLUDE := 


##DBC include and library paths for NTL and GMP leave empty if not using MATHBACKEND 6


ifneq ($(wildcard third-party/include), )
  #$(info GMP/NTL directory third-party/include exists)
  NTLLIB := third-party/lib/libntl.so
  GMPLIB := third-party/lib/libgmp.so
else
  #$(info GMP/NTL directory third-party does not exist)
endif


CPPSTD := -std=gnu++11 -fPIC
CC := g++ $(CPPSTD)

LIBSUFFIX := .so
Gerard Ryan's avatar
Gerard Ryan committed
25
LIBCMD := $(CC) -fPIC -shared -Wl,--export-dynamic -fopenmp -o #libname to follow
Gerard Ryan's avatar
Gerard Ryan committed
26 27 28 29 30 31 32 33 34 35 36 37

RDYNAMIC := -rdynamic

JNIBUILD :=  
JNILIB := libPalisadeCryptoWrapper.so

PYINCLUDE := -I/usr/include/python2.7
LIBPYTHON := -lpython2.7 

COMPTHREADFLAG := -pthread
LOADTHREADFLAG := -pthread