# # arch_spec_root.mk: architecture/site specific makefile fragment # for clients of ROOT. # This file can be used in several ways: # #1. Your package makefile doesn't need dictionary generation and you just #want to link to the base root libraries. Add this to your makefile: # # include SoftRelTools/arch_spec_root.mk # #2. Your package makefile doesn't need dictionary generation but you want #to link to the graphics libraries (-lGpad -lGui -lGX11 -lX3d) in addition #to the the base libraries: # # override LINK_root_glibs += any-string-you-want # include SoftRelTools/arch_spec_root.mk # #3. You need dictionary generation the base libraries: # # USE_ROOT = any-string-you-want # include SoftRelTools/arch_spec_root.mk # #4. You need dictionary generation and all of the libraries: # # USE_ROOT = any-string-you-want # override LINK_root_glibs += any-string-you-want # include SoftRelTools/arch_spec_root.mk override LDFLAGS += -L$(ROOTSYS)/lib ifeq (D0,$EXPERIMENT) # D0's version of ROOT has these as .so's that are added to LD_LIBRARY_PATH # by the D0RunII.table file ROOTLIBS = else ROOTLIBS = -lNew -lBase -lRint -lCint -lClib -lCont -lFunc \ -lGraf -lGraf3d -lHist -lHtml -lMatrix -lMeta -lMinuit -lNet \ -lPostscript -lProof -lTree -lUnix -lZip -lEG -lPhysics endif ifneq ($(LINK_root_glibs),) ifeq (D0,$EXPERIMENT) ROOTGLIBS = else ROOTGLIBS = -lGpad -lGui -lGX11 -lX3d endif else ROOTGLIBS = endif ifneq (,$(findstring Linux,$(BFARCH))) override LOADLIBES += $(ROOTLIBS) $(ROOTGLIBS) -lm -ldl endif ifneq (,$(findstring IRIX6,$(BFARCH))) override LOADLIBES += $(ROOTLIBS) $(ROOTGLIBS) -lm endif ifneq (,$(findstring OSF,$(BFARCH))) override LOADLIBES += $(ROOTLIBS) $(ROOTGLIBS) -lm endif ifdef USE_ROOT override CPPFLAGS += -DUSE_ROOT override CPPFLAGS += -I$(SRT_TOP)/RootUtils/Fixes \ -I$(CDFSOFT2_DIR)/RootUtils/Fixes \ -I$(ROOTSYS)/include #------------------------------------------------------------------------------- # CINT dictionary (create it with .cxx extention not to mix with the rest of the # sources) can't be compiled with the standard set of KCC options... # modify the options to get dictionaries to compile #------------------------------------------------------------------------------- CINT_FLAGS = $(filter-out --strict -D__KAI_STRICT -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED,$(CXXFLAGS) $(CPPFLAGS) $(CXXCFLAGS)) CINT_DEFECTS = -DDEFECT_OLD_STDC_HEADERS \ -DDEFECT_NO_IOSFWD_HEADER \ -DDEFECT_OLD_STRINGSTREAM $(CINT_OBJECTS) : $(workdir_o)%_cint.o : %_cint.cxx # echo cint_hh = $(cint_hh) # echo cint_h = $(cint_h) # echo CINT_H_DICT = $(CINT_H_DICT) # echo $(CINT_OBJECTS) # echo cint_deps = $(cint_deps) echo "<**compiling**>" CINT dictionary $< if [ ! -d $(workdir) ] ; then mkdir $(workdir) ; fi if [ ! -d $(workdir_o) ] ; then mkdir $(workdir_o) ; fi $(CXX) $(CINT_FLAGS) -c $*_cint.cxx -o $(workdir_o)$*_cint.o ifndef (,$(CINT_HH_DICT)) $(CINT_HH_DICT) : %_cint.cxx : $(CINT_PREP) %.hh %_linkdef.h echo "<**generating CINT dictionary**>" $@ -rootcint -f $*_cint.cxx -c $(CINT_DEFECTS) $(CPPFLAGS) $^ endif ifndef (,$(CINT_H_DICT)) $(CINT_H_DICT) : %_cint.cxx : $(CINT_PREP) %.h %_linkdef.h echo "<**generating CINT dictionary**>" $@ -rootcint -f $*_cint.cxx -c $(CINT_DEFECTS) $(CPPFLAGS) $^ endif endif # endif USE_ROOT