# GNUmakefile
# definitions for building "mgrid"

TOP = ../..
NAME = mgrid
TYPE = lib
OBJ = mgrid lattice split short exact setup \
  ncubic nbspline nquint1 nquint2 nheptic1 nheptic3 nnonic1 nnonic4 nhermite \
  pcubic pbspline pquint1 pquint2 pheptic1 pheptic3 pnonic1 pnonic4 phermite
LIB = m
LINKCPP = no
HEADER = mgrid lattice
DEMO = demo_mgrid
DEMOOBJ =
DEMOLIB = mgrid
DEMOLINKCPP =

ifeq (0,$(MAKELEVEL))
.PHONY : src clean
src clean : ; $(MAKE) -C $(TOP) SRC="$(NAME)" $@
endif

# fast splitting function evaluation (macros instead of function calls)
CPPFLAGS += -DMGRID_FAST_SPLIT
