#
# Makefile rules for the NormalizInterface package
#
KEXT_NAME = NormalizInterface
KEXT_SOURCES = src/normaliz.cc

# Normaliz requires C++11; but some of its dependencies (well at least
# e-Antic) requires C++14. Since that's been in compilers for a decade
# now, just always request C++14 support. Note: we use gnu++14 instead
# of std++14 only for compatibility with GAP versions before 4.12 on
# Cygwin, see <https://github.com/gap-packages/NormalizInterface/pull/91>.
KEXT_CXXFLAGS =  -I/build/gap/src/gap/pkg/normalizinterface/NormalizInstallDir/include   -std=gnu++14
KEXT_LDFLAGS = -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now  -lgmp -Wl,-rpath,/build/gap/src/gap/pkg/normalizinterface/NormalizInstallDir/lib -L/build/gap/src/gap/pkg/normalizinterface/NormalizInstallDir/lib -lnormaliz -lstdc++

KEXT_USE_AUTOCONF = 1

# include shared GAP package build system
GAPPATH = /build/gap/src/gap
include Makefile.gappkg
