# -*- Makefile -*- (for emacs)
# @configure_input@
#
# @PACKAGE_STRING@
#
# This Makefile is intended for compiling Herwig++ plugins
# You can find example plugins in the Contrib directory
#
# This Makefile received very little testing, 
# any bug reports are very welcome!
#

#
# C++ flags
# 
CXX = @CXX@

CXXFLAGS = -g -W -Wall @CXXFLAGS@

# add additional package header directories here
CPPFLAGS = -I@prefix@/include @THEPEGINCLUDE@ @GSLINCLUDE@

# add additional libraries here
LDFLAGS = @APPLE_DSO_FLAGS@

ALLCCFILES=$(shell echo *.cc)
all : $(ALLCCFILES:.cc=.so)

%.so : %.cc %.h 
	$(CXX) @SHARED_FLAG@ -fPIC $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) $< -o $@  

clean:
	rm -f $(ALLCCFILES:.cc=.so)
