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

# workaround for building with GAP 4.11 on Cygwin: we need -std=gnu++11
# instead of -std=c++11 to avoid an error during compilation; see
# https://github.com/gap-packages/NormalizInterface/pull/91 for details
KEXT_CXXFLAGS =  -I/usr/include -std=gnu++11
KEXT_LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/build/gap/src/gap-4.11.1/tmp-install -lgap -lgmp -L/usr/lib -lnormaliz

KEXT_USE_AUTOCONF = 1

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