Revision 449c76be8ffa80cbd05bd4722e5727367f95005b authored by Timur Pocheptsov on 27 March 2014, 07:42:20 UTC, committed by Timur Pocheptsov on 27 March 2014, 07:42:20 UTC
1 parent 14eb329
Module.mk
# Module.mk for tree module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := tree
MODDIR := $(ROOT_SRCDIR)/tree/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
TREEDIR := $(MODDIR)
TREEDIRS := $(TREEDIR)/src
TREEDIRI := $(TREEDIR)/inc
##### libTree #####
TREEL := $(MODDIRI)/LinkDef.h
TREEDS := $(call stripsrc,$(MODDIRS)/G__Tree.cxx)
TREEDO := $(TREEDS:.cxx=.o)
TREEDH := $(TREEDS:.cxx=.h)
TREEH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
TREES := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
TREEO := $(call stripsrc,$(TREES:.cxx=.o))
TREEDEP := $(TREEO:.o=.d) $(TREEDO:.o=.d)
TREELIB := $(LPATH)/libTree.$(SOEXT)
TREEMAP := $(TREELIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(TREEH))
ALLLIBS += $(TREELIB)
ALLMAPS += $(TREEMAP)
# include all dependency files
INCLUDEFILES += $(TREEDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(TREEDIRI)/%.h
cp $< $@
$(TREELIB): $(TREEO) $(TREEDO) $(ORDER_) $(MAINLIBS) $(TREELIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libTree.$(SOEXT) $@ "$(TREEO) $(TREEDO)" \
"$(TREELIBEXTRA)"
$(call pcmrule,TREE)
$(noop)
$(TREEDS): $(TREEH) $(TREEL) $(ROOTCINTTMPDEP) $(call pcmdep,TREE)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ $(call dictModule,TREE) -c $(TREEH) $(TREEL)
$(TREEMAP): $(TREEH) $(TREEL) $(ROOTCINTTMPDEP) $(call pcmdep,TREE)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCINTTMP) -r $(TREEDS) $(call dictModule,TREE) -c $(TREEH) $(TREEL)
all-$(MODNAME): $(TREELIB)
clean-$(MODNAME):
@rm -f $(TREEO) $(TREEDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(TREEDEP) $(TREEDS) $(TREEDH) $(TREELIB) $(TREEMAP)
distclean:: distclean-$(MODNAME)
##### extra rules ######
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...