################################################################
# project name
################################################################

# This name is used for the distribution tar file.

project_name := ShellCorretta

################################################################
# modules -- list of directories in which to search
# for module.mk include files
################################################################

# Caution: The order in which modules are declares is important, since
# it is also used in linking.  The object/library file for the
# *caller* must precede the object/library file for the *callee* for
# successful linking.

################
# programs
################

modules +=

################
# libraries
################

modules += libraries/pybasis

# additional libraries -- cloned as submodule

modules += libraries/basis  # ordering note: basis depends on am and mcutils
modules += libraries/am libraries/mcutils libraries/cppformat

################################################################
# extras -- list of extra files to be included
# in distribution tar file
################################################################

extras :=

################################################################
# additional project-specific make settings and rules
################################################################

# gsl
LDLIBS += -lgsl
LDLIBS += -lgslcblas
CPPFLAGS += -DHAVE_INLINE

# basis submodule
#   map vs. hash for space lookup in basis library
CPPFLAGS += -DBASIS_HASH

# Python
CPPFLAGS += $(shell python3-config --cflags)
LDFLAGS += $(shell python3-config --ldflags)
search_prefix += ./libraries/pybind11
CPPFLAGS += -fPIC
FFLAGS += -fPIC

# mcutils submodule
#   allow legacy global access to variables now wrapped in mcutils namespace
# CPPFLAGS += -DMCUTILS_ALLOW_LEGACY_GLOBAL

################################################################
# project name
################################################################

# This name is used for the distribution tar file.

project_name := ShellCorretta

################################################################
# modules -- list of directories in which to search
# for module.mk include files
################################################################

# Caution: The order in which modules are declares is important, since
# it is also used in linking.  The object/library file for the
# *caller* must precede the object/library file for the *callee* for
# successful linking.

################
# programs
################

modules +=

################
# libraries
################

modules += libraries/pybasis

# additional libraries -- cloned as submodule

modules += libraries/basis  # ordering note: basis depends on am and mcutils
modules += libraries/am libraries/mcutils libraries/cppformat

################################################################
# extras -- list of extra files to be included
# in distribution tar file
################################################################

extras :=

################################################################
# additional project-specific make settings and rules
################################################################

# gsl
LDLIBS += -lgsl
LDLIBS += -lgslcblas
CPPFLAGS += -DHAVE_INLINE

# basis submodule
#   map vs. hash for space lookup in basis library
##CPPFLAGS += -DBASIS_HASH

# Python
CPPFLAGS += $(shell python3-config --cflags)
LDFLAGS += $(shell python3-config --ldflags)
search_prefix += ./libraries/pybind11
CPPFLAGS += -fPIC
FFLAGS += -fPIC

# mcutils submodule
#   allow legacy global access to variables now wrapped in mcutils namespace
# CPPFLAGS += -DMCUTILS_ALLOW_LEGACY_GLOBAL

Remove basis dependency on Boost
config: Remove basis dependency on Boost
