HOMEPAGE = https://www.normaliz.uni-osnabrueck.de/
# get releases from https://github.com/Normaliz/Normaliz/releases
# version 3.2 uses autoconf, so take advantage of that when upgrading
VERSION = 3.9.2
VERSION2 = 3.9
#PATCHFILE = @abs_srcdir@/patch-$(VERSION)

# these authors sometimes change the file without changing the name, so we copy it to our own site:
URL = http://macaulay2.com/Downloads/OtherSourceCode
FIXTARCMD = :

PRECONFIGURE = autoreconf -vif
CONFIGOPTIONS += --disable-shared

# Mac OS X gcc has -fopenmp, but gives an internal compiler error if we try it:
# I have filed a bug report, Bug ID# 8338749:
OPENMP = no

#### from their Makefile:
ifeq ($(OPENMP),no)
 CXXFLAGS0 = -Wno-unknown-pragmas -DNO_OPENMP
else
 CXXFLAGS0 = -fopenmp
endif
# -static doesn't work in Mac OS X, so override variables from normaliz's Makefile.configuration:
# former value:
# NORMFLAGS = -static
# new value:
NORMFLAGS = 
####

CXXFLAGS1 = $(CPPFLAGS) -Wall -O3 -Wno-unknown-pragmas -std=c++11 -I .. -I . $(CXXFLAGS0)
BUILDOPTIONS =  CXX="$(CXX)" \
		NORMFLAGS="$(NORMFLAGS)" \
		CXXFLAGS="$(CXXFLAGS1)" \
		RANLIB="@RANLIB@" \
		GMPFLAGS="$(LDFLAGS) -lgmpxx -lgmp"
PROGRAMS = source/normaliz
STRIPFILES = source/normaliz
LICENSEFILES = COPYING
CHECKTARGET = .
include ../Makefile.library
Makefile: @srcdir@/Makefile.in ; cd ../.. && ./config.status libraries/normaliz/Makefile
# Local Variables:
# compile-command: "make -C $M2BUILDDIR/libraries/normaliz "
# End:
