swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: f71c167e58696410e0948e82bc2fed353003e721 authored by Axel Naumann on 14 September 2015, 07:45:05 UTC
Update ROOT version files to v6.05/02.
Update ROOT version files to v6.05/02.
Tip revision: f71c167
Module.mk
# Module.mk for hist module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := hist
MODDIR := $(ROOT_SRCDIR)/hist/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
HISTDIR := $(MODDIR)
HISTDIRS := $(HISTDIR)/src
HISTDIRI := $(HISTDIR)/inc
##### libHist #####
HISTL := $(MODDIRI)/LinkDef.h
HISTDS := $(call stripsrc,$(MODDIRS)/G__Hist.cxx)
HISTDO := $(HISTDS:.cxx=.o)
HISTDH := $(HISTDS:.cxx=.h)
HISTH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
HISTHMAT := $(filter-out $(MODDIRI)/Math/LinkDef%,$(wildcard $(MODDIRI)/Math/*.h))
HISTHV5 := $(filter-out $(MODDIRI)/v5/LinkDef%,$(wildcard $(MODDIRI)/v5/*.h))
#HISTHMAT += mathcore/inc/Math/WrappedFunction.h
HISTHH := $(HISTH) $(HISTHMAT) $(HISTHV5)
HISTS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
HISTO := $(call stripsrc,$(HISTS:.cxx=.o))
HISTDEP := $(HISTO:.o=.d) $(HISTDO:.o=.d)
HISTLIB := $(LPATH)/libHist.$(SOEXT)
HISTMAP := $(HISTLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(HISTHH))
#ALLHDRS += $(patsubst $(MODDIRI)/Math/%.h,include/Math/%.h,$(HISTHH))
ALLLIBS += $(HISTLIB)
ALLMAPS += $(HISTMAP)
# include all dependency files
INCLUDEFILES += $(HISTDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/Math/%.h: $(HISTDIRI)/Math/%.h
@(if [ ! -d "include/Math" ]; then \
mkdir -p include/Math; \
fi)
cp $< $@
include/v5/%.h: $(HISTDIRI)/v5/%.h
@(if [ ! -d "include/v5" ]; then \
mkdir -p include/v5; \
fi)
cp $< $@
include/%.h: $(HISTDIRI)/%.h
cp $< $@
$(HISTLIB): $(HISTO) $(HISTDO) $(ORDER_) $(MAINLIBS) $(HISTLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libHist.$(SOEXT) $@ "$(HISTO) $(HISTDO)" \
"$(HISTLIBEXTRA)"
$(call pcmrule,HIST)
$(noop)
$(HISTDS): $(HISTHH) $(HISTL) $(ROOTCLINGEXE) $(call pcmdep,HIST)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCLINGSTAGE2) -f $@ $(call dictModule,HIST) -c -writeEmptyRootPCM $(HISTHH) $(HISTL)
$(HISTMAP): $(HISTHH) $(HISTL) $(ROOTCLINGEXE) $(call pcmdep,HIST)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCLINGSTAGE2) -r $(HISTDS) $(call dictModule,HIST) -c $(HISTHH) $(HISTL)
all-$(MODNAME): $(HISTLIB)
clean-$(MODNAME):
@rm -f $(HISTO) $(HISTDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(HISTDEP) $(HISTDS) $(HISTDH) $(HISTLIB) $(HISTMAP)
distclean:: distclean-$(MODNAME)
# Optimize dictionary with stl containers.
$(HISTDO): NOOPT = $(OPT)
$(HISTDO): CXXFLAGS := $(filter-out -Xclang -fmodules -Xclang -fmodules-cache-path=$(ROOTSYS)/pcm/, $(CXXFLAGS))