# Makefile for the ROOT test programs. # This Makefile shows nicely how to compile and link applications # using the ROOT libraries on all supported platforms. # # Copyright (c) 2000 Rene Brun and Fons Rademakers # # Author: Fons Rademakers, 29/2/2000 RC := root-config ifeq ($(shell which $(RC) 2>&1 | sed -ne "s@.*/$(RC)@$(RC)@p"),$(RC)) MKARCH := $(wildcard $(shell $(RC) --etcdir)/Makefile.arch) RCONFIG := $(wildcard $(shell $(RC) --incdir)/RConfigure.h) endif ifneq ($(MKARCH),) include $(MKARCH) else ifeq ($(ROOTSYS),) ROOTSYS = .. endif include $(ROOTSYS)/etc/Makefile.arch endif # Tutorials dir needed by stressProof ifneq ($(RCONFIG),) TUTDIR := $(wildcard $(shell grep ROOTDOCDIR $(RCONFIG) | sed "s|.*\"\(.*\)\"|\1|")/tutorials) endif ifeq ($(TUTDIR),) ifeq ($(ROOTSYS),) ROOTSYS = .. endif TUTDIR := $(ROOTSYS)/tutorials endif -include ../MyConfig.mk #------------------------------------------------------------------------------ EVENTO = Event.$(ObjSuf) EventDict.$(ObjSuf) EVENTS = Event.$(SrcSuf) EventDict.$(SrcSuf) EVENTSO = libEvent.$(DllSuf) EVENT = Event$(ExeSuf) ifeq ($(PLATFORM),win32) EVENTLIB = libEvent.lib else EVENTLIB = $(shell pwd)/$(EVENTSO) endif EVENTMTO = EventMT.$(ObjSuf) EventMTDict.$(ObjSuf) EVENTMTS = EventMT.$(SrcSuf) EventMTDict.$(SrcSuf) EVENTMTSO = libEventMT.$(DllSuf) ifeq ($(PLATFORM),win32) EVENTMTLIB = libEventMT.lib else EVENTMTLIB = $(shell pwd)/$(EVENTMTSO) endif MAINEVENTO = MainEvent.$(ObjSuf) MAINEVENTS = MainEvent.$(SrcSuf) HWORLDO = hworld.$(ObjSuf) HWORLDS = hworld.$(SrcSuf) HWORLD = hworld$(ExeSuf) CTORTUREO = ctorture.$(ObjSuf) CTORTURES = ctorture.$(SrcSuf) CTORTURE = ctorture$(ExeSuf) HSIMPLEO = hsimple.$(ObjSuf) HSIMPLES = hsimple.$(SrcSuf) HSIMPLE = hsimple$(ExeSuf) MINEXAMO = minexam.$(ObjSuf) MINEXAMS = minexam.$(SrcSuf) MINEXAM = minexam$(ExeSuf) TSTRINGO = tstring.$(ObjSuf) TSTRINGS = tstring.$(SrcSuf) TSTRING = tstring$(ExeSuf) TCOLLEXO = tcollex.$(ObjSuf) TCOLLEXS = tcollex.$(SrcSuf) TCOLLEX = tcollex$(ExeSuf) TCOLLBMO = tcollbm.$(ObjSuf) TCOLLBMS = tcollbm.$(SrcSuf) TCOLLBM = tcollbm$(ExeSuf) VVECTORO = vvector.$(ObjSuf) VVECTORS = vvector.$(SrcSuf) VVECTOR = vvector$(ExeSuf) VMATRIXO = vmatrix.$(ObjSuf) VMATRIXS = vmatrix.$(SrcSuf) VMATRIX = vmatrix$(ExeSuf) STRESSLO = stressLinear.$(ObjSuf) STRESSLS = stressLinear.$(SrcSuf) STRESSL = stressLinear$(ExeSuf) STRESSGO = stressGraphics.$(ObjSuf) STRESSGS = stressGraphics.$(SrcSuf) STRESSG = stressGraphics$(ExeSuf) STRESSGUIO = stressGUI.$(ObjSuf) STRESSGUIS = stressGUI.$(SrcSuf) STRESSGUI = stressGUI$(ExeSuf) ifeq ($(PLATFORM),win32) STRESSGUILIBS = '$(ROOTSYS)/lib/libASImage.lib' '$(ROOTSYS)/lib/libASImageGui.lib' \ '$(ROOTSYS)/lib/libRecorder.lib' '$(ROOTSYS)/lib/libGuiHtml.lib' else STRESSGUILIBS = -lASImage -lASImageGui -lRecorder -lGuiHtml endif ifeq ($(shell $(RC) --has-genvector),yes) STRESSVECO = stressVector.$(ObjSuf) STRESSVECS = stressVector.$(SrcSuf) STRESSVEC = stressVector$(ExeSuf) STRESSMATHO = stressMathCore.$(ObjSuf) STRESSMATHS = stressMathCore.$(SrcSuf) ifneq ($(USE_REFLEX),) CXXFLAGS += -DUSE_REFLEX ifeq ($(PLATFORM),win32) STRESSMATHLIBS = '$(ROOTSYS)/lib/libGenVector.lib' '$(ROOTSYS)/lib/libReflex.lib' '$(ROOTSYS)/lib/libCintex.lib' else STRESSMATHLIBS = -lGenVector -lReflex -lCintex endif TRACKMATHSRC = TrackMathCoreRflx.$(SrcSuf) TRACKMATHOBJ = TrackMathCoreRflx.$(ObjSuf) TRACKMATHLIB = libTrackMathCoreRflx.$(DllSuf) else ifeq ($(PLATFORM),win32) STRESSMATHLIBS = '$(ROOTSYS)/lib/libGenVector.lib' else STRESSMATHLIBS = -lGenVector endif TRACKMATHSRC = TrackMathCoreDict.$(SrcSuf) TRACKMATHOBJ = TrackMathCoreDict.$(ObjSuf) TRACKMATHLIB = libTrackMathCoreDict.$(DllSuf) endif STRESSMATH = stressMathCore$(ExeSuf) endif ifeq ($(shell $(RC) --has-mathmore),yes) STRESSMATHMOREO = stressMathMore.$(ObjSuf) STRESSMATHMORES = stressMathMore.$(SrcSuf) ifeq ($(PLATFORM),win32) STRESSMATHMORELIBS = '$(ROOTSYS)/lib/libMathMore.lib' else STRESSMATHMORELIBS = -lMathMore endif STRESSMATHMORE = stressMathMore$(ExeSuf) endif ifeq ($(shell $(RC) --has-tmva),yes) STRESSTMVAO = stressTMVA.$(ObjSuf) STRESSTMVAS = stressTMVA.$(SrcSuf) ifeq ($(PLATFORM),win32) STRESSTMVALIBS = '$(ROOTSYS)/lib/libTMVA.lib' else STRESSTMVALIBS = -lTMVA -lMinuit -lXMLIO -lMLP -lTreePlayer endif STRESSTMVA = stressTMVA$(ExeSuf) endif VLAZYO = vlazy.$(ObjSuf) VLAZYS = vlazy.$(SrcSuf) VLAZY = vlazy$(ExeSuf) GUITESTO = guitest.$(ObjSuf) GUITESTS = guitest.$(SrcSuf) GUITEST = guitest$(ExeSuf) GUIVIEWERO = guiviewer.$(ObjSuf) guiviewerDict.$(ObjSuf) GUIVIEWERS = guiviewer.$(SrcSuf) guiviewerDict.$(SrcSuf) GUIVIEWER = guiviewer$(ExeSuf) HELLOO = Hello.$(ObjSuf) HelloDict.$(ObjSuf) HELLOS = Hello.$(SrcSuf) HelloDict.$(SrcSuf) HELLOSO = Hello.$(DllSuf) ACLOCKO = Aclock.$(ObjSuf) AclockDict.$(ObjSuf) ACLOCKS = Aclock.$(SrcSuf) AclockDict.$(SrcSuf) ACLOCKSO = Aclock.$(DllSuf) TETRISO = Tetris.$(ObjSuf) TetrisDict.$(ObjSuf) TETRISS = Tetris.$(SrcSuf) TetrisDict.$(SrcSuf) TETRISSO = Tetris.$(DllSuf) STRESSO = stress.$(ObjSuf) STRESSS = stress.$(SrcSuf) STRESS = stress$(ExeSuf) IOPLUGINSO = stressIOPlugins.$(ObjSuf) IOPLUGINSS = stressIOPlugins.$(SrcSuf) IOPLUGINS = stressIOPlugins$(ExeSuf) STRESSGEOMETRYO = stressGeometry.$(ObjSuf) STRESSGEOMETRYS = stressGeometry.$(SrcSuf) STRESSGEOMETRY = stressGeometry$(ExeSuf) STRESSSHAPESO = stressShapes.$(ObjSuf) STRESSSHAPESS = stressShapes.$(SrcSuf) STRESSSHAPES = stressShapes$(ExeSuf) ifeq ($(shell $(RC) --has-roofit),yes) STRESSROOFITO = stressRooFit.$(ObjSuf) STRESSROOFITS = stressRooFit.$(SrcSuf) STRESSROOFIT = stressRooFit$(ExeSuf) STRESSROOSTATSO = stressRooStats.$(ObjSuf) STRESSROOSTATSS = stressRooStats.$(SrcSuf) STRESSROOSTATS = stressRooStats$(ExeSuf) ifeq ($(shell $(RC) --has-xml),yes) STRESSHISTFACTORYO = stressHistFactory.$(ObjSuf) STRESSHISTFACTORYS = stressHistFactory.$(SrcSuf) STRESSHISTFACTORY = stressHistFactory$(ExeSuf) endif endif STRESSFITO = stressFit.$(ObjSuf) STRESSFITS = stressFit.$(SrcSuf) STRESSFIT = stressFit$(ExeSuf) ifeq ($(shell $(RC) --has-unuran),yes) ifeq ($(shell $(RC) --has-minuit2),yes) STRESSHISTOFITO = stressHistoFit.$(ObjSuf) STRESSHISTOFITS = stressHistoFit.$(SrcSuf) STRESSHISTOFIT = stressHistoFit$(ExeSuf) endif endif STRESSENTRYLISTO = stressEntryList.$(ObjSuf) STRESSENTRYLISTS = stressEntryList.$(SrcSuf) STRESSENTRYLIST = stressEntryList$(ExeSuf) STRESSHEPIXO = stressHepix.$(ObjSuf) STRESSHEPIXS = stressHepix.$(SrcSuf) STRESSHEPIX = stressHepix$(ExeSuf) STRESSSPO = stressSpectrum.$(ObjSuf) STRESSSPS = stressSpectrum.$(SrcSuf) STRESSSP = stressSpectrum$(ExeSuf) STRESSPROOFO = stressProof.$(ObjSuf) STRESSPROOFS = stressProof.$(SrcSuf) STRESSPROOF = stressProof$(ExeSuf) TBENCHO = TBench.$(ObjSuf) TBenchDict.$(ObjSuf) TBENCHS = TBench.$(SrcSuf) TBenchDict.$(SrcSuf) TBENCHSO = TBench.$(DllSuf) BENCHO = bench.$(ObjSuf) BENCHS = bench.$(SrcSuf) BENCH = bench$(ExeSuf) TESTBITSO = testbits.$(ObjSuf) TESTBITSS = testbits.$(SrcSuf) TESTBITS = testbits$(ExeSuf) QPRANDOMO = QpRandomDriver.$(ObjSuf) QPRANDOMS = QpRandomDriver.$(SrcSuf) QPRANDOM = QpRandomDriver$(ExeSuf) THREADSO = threads.$(ObjSuf) THREADSS = threads.$(SrcSuf) THREADS = threads$(ExeSuf) STRESSINTERPO = stressInterpreter.$(ObjSuf) STRESSINTERPS = stressInterpreter.$(SrcSuf) STRESSINTERP = stressInterpreter$(ExeSuf) STRESSITERO = stressIterators.$(ObjSuf) STRESSITERS = stressIterators.$(SrcSuf) STRESSITER = stressIterators$(ExeSuf) STRESSHISTO = stressHistogram.$(ObjSuf) STRESSHISTS = stressHistogram.$(SrcSuf) STRESSHIST = stressHistogram$(ExeSuf) ifeq ($(shell $(RC) --has-sqlite),yes) SQLITETESTO = sqlitetest.$(ObjSuf) SQLITETESTS = sqlitetest.$(SrcSuf) SQLITETEST = sqlitetest$(ExeSuf) endif OBJS = $(EVENTO) $(MAINEVENTO) $(EVENTMTO) $(HWORLDO) $(HSIMPLEO) \ $(MINEXAMO) \ $(TSTRINGO) $(TCOLLEXO) $(VVECTORO) $(VMATRIXO) $(VLAZYO) \ $(HELLOO) $(ACLOCKO) $(STRESSO) $(TBENCHO) $(BENCHO) \ $(STRESSSHAPESO) $(TCOLLBMO) $(STRESSGEOMETRYO) $(STRESSLO) \ $(STRESSGO) $(STRESSSPO) $(TESTBITSO) \ $(CTORTUREO) $(QPRANDOMO) $(THREADSO) $(STRESSVECO) \ $(STRESSMATHO) $(STRESSFITO) $(STRESSHISTOFITO) \ $(STRESSHEPIXO) $(STRESSENTRYLISTO) $(STRESSROOFITO) \ $(STRESSROOSTATSO) $(STRESSHISTFACTORYO) \ $(STRESSPROOFO) $(STRESSMATHMOREO) \ $(STRESSTMVAO) $(STRESSINTERPO) $(STRESSITERO) \ $(STRESSHISTO) $(STRESSGUIO) $(SQLITETESTO) $(IOPLUGINSO) PROGRAMS = $(EVENT) $(EVENTMTSO) $(HWORLD) $(HSIMPLE) $(MINEXAM) \ $(TSTRING) $(TCOLLEX) $(TCOLLBM) $(VVECTOR) $(VMATRIX) \ $(VLAZY) $(HELLOSO) $(ACLOCKSO) $(STRESS) $(TBENCHSO) $(BENCH) \ $(STRESSSHAPES) $(STRESSGEOMETRY) $(STRESSL) $(STRESSG) \ $(TESTBITS) $(CTORTURE) $(QPRANDOM) $(THREADS) $(STRESSSP) \ $(STRESSVEC) $(STRESSFIT) $(STRESSHISTOFIT) $(STRESSHEPIX) \ $(STRESSENTRYLIST) $(STRESSROOFIT) $(STRESSROOSTATS) \ $(STRESSHISTFACTORY) $(STRESSPROOF) $(STRESSMATH) \ $(STRESSMATHMORE) $(STRESSTMVA) $(STRESSINTERP) $(STRESSITER) \ $(STRESSHIST) $(STRESSGUI) $(SQLITETEST) $(IOPLUGINS) OBJS += $(GUITESTO) $(GUIVIEWERO) $(TETRISO) PROGRAMS += $(GUITEST) $(GUIVIEWER) $(TETRISSO) ifeq ($(ARCH),aix5) MAKESHARED = /usr/vacpp/bin/makeC++SharedLib endif #------------------------------------------------------------------------------ .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) .PHONY: Aclock Hello Tetris all: $(PROGRAMS) $(EVENTSO): $(EVENTO) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else ifeq ($(PLATFORM),win32) bindexplib $* $^ > $*.def lib -nologo -MACHINE:IX86 $^ -def:$*.def \ $(OutPutOpt)$(EVENTLIB) $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \ $(OutPutOpt)$@ $(MT_DLL) else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) endif endif endif @echo "$@ done" $(EVENTMTSO): $(EVENTMTO) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else ifeq ($(PLATFORM),win32) bindexplib $* $^ > $*.def lib -nologo -MACHINE:IX86 $^ -def:$*.def \ $(OutPutOpt)$(EVENTMTLIB) $(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) \ $(OutPutOpt)$@ $(MT_DLL) else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) endif endif endif @echo "$@ done" $(EVENT): $(EVENTSO) $(MAINEVENTO) $(LD) $(LDFLAGS) $(MAINEVENTO) $(EVENTO) $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(HWORLD): $(HWORLDO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(CTORTURE): $(CTORTUREO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(HSIMPLE): $(HSIMPLEO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(MINEXAM): $(MINEXAMO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(TSTRING): $(TSTRINGO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(TCOLLEX): $(TCOLLEXO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(TCOLLBM): $(TCOLLBMO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(VVECTOR): $(VVECTORO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(VMATRIX): $(VMATRIXO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(VLAZY): $(VLAZYO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSL): $(STRESSLO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSG): $(STRESSGO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSGUI): $(STRESSGUIO) $(LD) $(LDFLAGS) $^ $(GLIBS) $(STRESSGUILIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSSP): $(STRESSSPO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libSpectrum.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lSpectrum $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSVEC): $(STRESSVECO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libGenVector.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lGenVector $(OutPutOpt)$@ endif @echo "$@ done" $(TRACKMATHLIB): $(TRACKMATHOBJ) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(LIBS) $(STRESSMATHLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(LIBS) $(STRESSMATHLIBS) $(OutPutOpt)$@ $(MT_DLL) endif endif $(STRESSMATH): $(STRESSMATHO) $(TRACKMATHLIB) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $(STRESSMATHO) $(LIBS) $(STRESSMATHLIBS) $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $(STRESSMATHO) $(LIBS) $(STRESSMATHLIBS) $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSMATHMORE): $(STRESSMATHMOREO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) $(STRESSMATHMORELIBS) $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) $(STRESSMATHMORELIBS) $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSTMVA): $(STRESSTMVAO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) $(STRESSTMVALIBS) $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) $(STRESSTMVALIBS) $(OutPutOpt)$@ endif @echo "$@ done" $(TESTBITS): $(TESTBITSO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(THREADS): $(THREADSO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libThread.lib' $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" else ifeq ($(HASTHREAD),yes) $(LD) $(LDFLAGS) $^ $(LIBS) -lThread $(OutPutOpt)$@ @echo "$@ done" else @echo "This version of ROOT has no thread support, $@ not built" endif endif $(QPRANDOM): $(QPRANDOMO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libQuadp.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lQuadp $(OutPutOpt)$@ endif @echo "$@ done" $(GUITEST): $(GUITESTO) $(LD) $(LDFLAGS) $^ $(GLIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(GUIVIEWER): $(GUIVIEWERO) $(LD) $(LDFLAGS) $^ $(GLIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESS): $(STRESSO) $(EVENT) $(LD) $(LDFLAGS) $(STRESSO) $(EVENTO) $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(IOPLUGINS): $(IOPLUGINSO) $(EVENTO) $(LD) $(LDFLAGS) $(IOPLUGINSO) $(EVENTO) $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSGEOMETRY): $(STRESSGEOMETRYO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libGeom.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lGeom $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSSHAPES): $(STRESSSHAPESO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libGeom.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lGeom $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSFIT): $(STRESSFITO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSHISTOFIT): $(STRESSHISTOFITO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libUnuran.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lUnuran $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSENTRYLIST): $(STRESSENTRYLISTO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ @echo "$@ done" $(STRESSHEPIX): $(STRESSHEPIXO) $(STRESSGEOMETRY) $(STRESSFIT) $(STRESSL) \ $(STRESSSP) $(STRESS) $(LD) $(LDFLAGS) $(STRESSHEPIXO) $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSROOFITO): stressRooFit_tests.cxx $(STRESSROOSTATSO): stressRooStats_tests.cxx stressRooStats_models.cxx $(STRESSHISTFACTORYO): stressHistFactory_tests.cxx stressHistFactory_models.cxx ifeq ($(shell $(RC) --has-mathmore),yes) ifeq ($(PLATFORM),win32) EXTRAROOFITLIBS = '$(ROOTSYS)/lib/libMathMore.lib' else EXTRAROOFITLIBS = -lMathMore endif endif $(STRESSROOFIT): $(STRESSROOFITO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libRooFit.lib' '$(ROOTSYS)/lib/libRooFitCore.lib' '$(ROOTSYS)/lib/libHtml.lib' '$(ROOTSYS)/lib/libThread.lib' '$(ROOTSYS)/lib/libMinuit.lib' '$(ROOTSYS)/lib/libFoam.lib' '$(ROOTSYS)/lib/libProof.lib' $(EXTRAROOFITLIBS) $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lRooFit -lRooFitCore -lHtml -lThread -lMinuit -lFoam $(EXTRAROOFITLIBS) $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSROOSTATS): $(STRESSROOSTATSO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libRooStats.lib' '$(ROOTSYS)/lib/libRooFit.lib' '$(ROOTSYS)/lib/libRooFitCore.lib' '$(ROOTSYS)/lib/libHtml.lib' '$(ROOTSYS)/lib/libThread.lib' '$(ROOTSYS)/lib/libMinuit.lib' '$(ROOTSYS)/lib/libFoam.lib' '$(ROOTSYS)/lib/libProof.lib' $(EXTRAROOFITLIBS) $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lRooStats -lRooFit -lRooFitCore -lThread -lMinuit -lFoam $(EXTRAROOFITLIBS) $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSHISTFACTORY): $(STRESSHISTFACTORYO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libHistFactory.lib' '$(ROOTSYS)/lib/libRooStats.lib' '$(ROOTSYS)/lib/libRooFit.lib' '$(ROOTSYS)/lib/libRooFitCore.lib' '$(ROOTSYS)/\ lib/libXMLParser.lib' '$(ROOTSYS)/lib/libThread.lib' '$(ROOTSYS)/lib/libMinuit.lib' '$(ROOTSYS)/lib/libFoam.lib' '$(ROOTSYS)/lib/libProof.lib' $(EXTRAROOFITLIBS) $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $^ $(LIBS) -lHistFactory -lRooStats -lRooFit -lRooFitCore -lMinuit -lFoam -lXMLParser $(EXTRAROOFITLIBS) $(OutPutOpt)$@ endif @echo "$@ done" $(STRESSPROOF): $(STRESSPROOFO) ifeq ($(PLATFORM),win32) $(LD) $(LDFLAGS) $^ $(LIBS) '$(ROOTSYS)/lib/libProof.lib' '$(ROOTSYS)/lib/libThread.lib' $(OutPutOpt)$@ $(MT_EXE) else $(LD) $(LDFLAGS) $(STRESSPROOFO) $(LIBS) -lProof -lProofPlayer -lThread $(OutPutOpt)$@ endif @echo "$@ done" $(BENCH): $(BENCHO) $(TBENCHSO) $(LD) $(LDFLAGS) $(BENCHO) $(TBENCHO) $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" Hello: $(HELLOSO) $(HELLOSO): $(HELLOO) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(EXPLLINKLIBS) $(OutPutOpt)$@ $(MT_DLL) endif endif Aclock: $(ACLOCKSO) $(ACLOCKSO): $(ACLOCKO) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(EXPLLINKLIBS) $(OutPutOpt)$@ $(MT_DLL) endif endif Tetris: $(TETRISSO) $(TETRISSO): $(TETRISO) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(GLIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(EXPLLINKLIBS) $(OutPutOpt)$@ $(MT_DLL) endif endif $(TBENCHSO): $(TBENCHO) ifeq ($(ARCH),aix5) $(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^ else ifeq ($(PLATFORM),macosx) # We need to make both the .dylib and the .so $(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS) ifneq ($(subst $(MACOSX_MINOR),,1234),1234) ifeq ($(MACOSX_MINOR),4) ln -sf $@ $(subst .$(DllSuf),.so,$@) endif endif else $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(EXPLLINKLIBS) $(OutPutOpt)$@ $(MT_DLL) endif endif $(STRESSINTERP): $(STRESSINTERPO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSITER): $(STRESSITERO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(STRESSHIST): $(STRESSHISTO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" $(SQLITETEST): $(SQLITETESTO) $(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@ $(MT_EXE) @echo "$@ done" clean: @rm -f $(OBJS) $(TRACKMATHSRC) core *Dict.* distclean: clean -@(mv -f stressRooStats_ref.root stressRooStats_ref.root- >/dev/null 2>&1;true) -@(mv -f stressHistFactory_ref.root stressHistFactory_ref.root- >/dev/null 2>&1;true) @rm -f $(PROGRAMS) $(EVENTSO) $(EVENTLIB) *Dict.* *.def *.exp \ *.root *.ps *.so *.lib *.dll *.d *.log .def so_locations \ files/* testdb.sqlite @rm -rf cxx_repository -@(mv -f stressRooStats_ref.root- stressRooStats_ref.root >/dev/null 2>&1;true) -@(mv -f stressHistFactory_ref.root- stressHistFactory_ref.root >/dev/null 2>&1;true) -@cd RootShower && $(MAKE) distclean -@cd rhtml && $(MAKE) distclean -@cd RootIDE && $(MAKE) distclean -@cd periodic && $(MAKE) distclean -@cd histviewer && $(MAKE) distclean .SUFFIXES: .$(SrcSuf) ### stressIterators.$(ObjSuf): stressIterators.h Event.$(ObjSuf): Event.h EventMT.$(ObjSuf): EventMT.h MainEvent.$(ObjSuf): Event.h EventDict.$(SrcSuf): Event.h EventLinkDef.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ EventMTDict.$(SrcSuf): EventMT.h EventLinkDef.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ Hello.$(ObjSuf): Hello.h HelloDict.$(SrcSuf): Hello.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ Aclock.$(ObjSuf): Aclock.h AclockDict.$(SrcSuf): Aclock.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ Tetris.$(ObjSuf): Tetris.h TetrisDict.$(SrcSuf): Tetris.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ TBench.$(ObjSuf): TBench.h TBenchDict.$(SrcSuf): TBench.h benchLinkDef.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ guiviewer.$(ObjSuf): guiviewer.h guiviewerDict.$(SrcSuf): guiviewer.h guiviewerLinkDef.h @echo "Generating dictionary $@..." $(ROOTCINT) -f $@ -c $^ stressMathCore.$(ObjSuf): TrackMathCore.h TrackMathCoreDict.$(SrcSuf): TrackMathCore.h TrackMathCoreLinkDef.h @echo "Generating dictionary $@ using rootcint ..." $(ROOTCINT) -f $@ -c $^ stressProof.$(ObjSuf): stressProof.$(SrcSuf) $(CXX) $(CXXFLAGS) -I$(TUTDIR) -c $< TrackMathCoreRflx.$(SrcSuf): TrackMathCore.h TrackMathCoreRflx.xml @echo "Generating dictionary $@ using gccxml ..." genreflex TrackMathCore.h --selection_file=TrackMathCoreRflx.xml -o TrackMathCoreRflx.cxx -I$(ROOTSYS)/include .$(SrcSuf).$(ObjSuf): $(CXX) $(CXXFLAGS) -c $< ifeq ($(GCC_MAJOR),4) ifeq ($(GCC_MINOR),1) TBenchDict.o: CXXFLAGS += -Wno-strict-aliasing endif endif