#
# This is an example GNUmakefile for my packages
#
PACKAGE_NAME = NextImageMod

# specific names for this package
SOURCES = $(wildcard *.cxx)
FMWK_HEADERS = LinkDef.h
HEADERS = $(filter-out $(FMWK_HEADERS), $(wildcard *.h))
HEADERS_DEST = larcv/app/$(PACKAGE_NAME)

# include options for this package
INCFLAGS  = -I.                       #Include itself
INCFLAGS += $(shell larcv-config --includes)

ifdef GEO2D_BASEDIR
INCFLAGS += $(shell geo2d-config --includes)
LDFLAGS  += -L$(GEO2D_LIBDIR) 
else
SOURCES = $(filter-out ROIMerger.cxx, $(wildcard *.cxx))
EXCLUDE_HEADERS = LinkDef.h ROIMerger.h
HEADERS = $(filter-out $(EXCLUDE_HEADERS), $(wildcard *.h))
endif

# platform-specific options
OSNAME          = $(shell uname -s)
HOST            = $(shell uname -n)
OSNAMEMODE      = $(OSNAME)

include $(LARCV_BASEDIR)/Makefile/Makefile.${OSNAME}

LDFLAGS += $(shell larcv-config --libs)

# call the common GNUmakefile
include $(LARCV_BASEDIR)/Makefile/GNUmakefile.CORE

pkg_build:
pkg_clean:
