https://github.com/root-project/root
Tip revision: 3a32363395b1399b050b5945beaa5df27d26f6d3 authored by Pere Mato on 01 September 2016, 12:35:07 UTC
Update ROOT version files to v6.06/08.
Update ROOT version files to v6.06/08.
Tip revision: 3a32363
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)
@rm -rf include/v5
distclean:: distclean-$(MODNAME)
# Optimize dictionary with stl containers.
$(HISTDO): NOOPT = $(OPT)
$(HISTDO): CXXFLAGS := $(filter-out -Xclang -fmodules -Xclang -fmodules-cache-path=$(ROOTSYS)/pcm/, $(CXXFLAGS))