############################################################################# ## Makefile – New Version of my Makefile that works on both linux ## and mac os x ## Ryan Nichol <rjn@hep.ucl.ac.uk> ############################################################################## include Makefile.arch
#Site Specific Flags
ifeq (
#Now the bits we’re actually compiling
#Generic and Site Specific Flags
CXXFLAGS +=
LDFLAGS+=-lboost_program_options -L.
G77LDFLAGS+=-lg2c G77 = g77
LIBS =
ROOT_LIBRARY = libAra.${DLLSUF} #LIB_OBJS = AraSim.o Detector.o Event.o Efficiencies.o Trigger.o IceModel.o EarthModel.o eventDict.o #LIB_OBJS = Vector.o EarthModel.o IceModel.o Trigger.o Ray.o Tools.o Efficiencies.o Event.o Detector.o Position.o Spectra.o RayTrace.o RayTrace_IceModels.o signal.o eventDict.o Settings.o Primaries.o counting.o LIB_OBJS = Vector.o EarthModel.o IceModel.o Trigger.o Ray.o Tools.o Efficiencies.o Event.o Detector.o Position.o Spectra.o RayTrace.o RayTrace_IceModels.o signal.o secondaries.o Settings.o Primaries.o counting.o RaySolver.o convolution_model_Fresnel_xyz.o dgausspkg.o divdifdouble.o vegas.o eventDict.o CCFILE = Vector.cc EarthModel.cc IceModel.cc Trigger.cc Ray.cc Tools.cc Efficiencies.cc Event.cc Detector.cc Spectra.cc Position.cc RayTrace.cc signal.cc secondaries.cc RayTrace_IceModels.cc Settings.cc Primaries.cc counting.cc RaySolver.cc CLASS_HEADERS = Trigger.h Detector.h Settings.h Spectra.h IceModel.h Primaries.h #LIB_OBJS = convolution_model_Fresnel_xyz.o dgausspkg.o divdifdouble.o vegas.o
PROGRAMS = araSim
all : $(ROOT_LIBRARY) araSim
araSim :
#--------------------------------------------------
#The library
ifneq (
#%.$(OBJSUF) : %.$(SRCSUF)
%.$(OBJSUF) : %.C
@echo “<**Compiling**> “$<
%.$(OBJSUF) : %.cc
@echo “<**Compiling**> “$<
%.$(OBJSUF) : %.f
@echo “<**Compiling**> “$<
eventDict.C: $(CLASS_HEADERS)
@echo “Generating dictionary …”
@ rm -f Dict
rootcint
clean:
@rm -f Dict
@rm -f *.${OBJSUF}
@rm -f