https://github.com/root-project/root
Tip revision: ff680da7362578b92fdfa78619806a218f1a30d8 authored by Fons Rademakers on 24 October 2007, 15:26:47 UTC
tag release v5-12-00h.
tag release v5-12-00h.
Tip revision: ff680da
Module.mk
# Module.mk for tree module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := tree
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
TREEDIR := $(MODDIR)
TREEDIRS := $(TREEDIR)/src
TREEDIRI := $(TREEDIR)/inc
##### libTree #####
TREEL := $(MODDIRI)/LinkDef.h
TREEDS := $(MODDIRS)/G__Tree.cxx
TREEDO := $(TREEDS:.cxx=.o)
TREEDH := $(TREEDS:.cxx=.h)
# ManualBase4 only needs to be regenerated (and then changed manually) when
# the dictionary interface changes
TREEL2 := $(MODDIRI)/LinkDef2.h
TREEDS2 := $(MODDIRS)/ManualTree2.cxx
TREEDO2 := $(TREEDS2:.cxx=.o)
TREEDH2 := TTree.h
TREEH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
TREES := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
TREEO := $(TREES:.cxx=.o)
TREEDEP := $(TREEO:.o=.d) $(TREEDO:.o=.d)
TREELIB := $(LPATH)/libTree.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(TREEH))
ALLLIBS += $(TREELIB)
# include all dependency files
INCLUDEFILES += $(TREEDEP)
##### local rules #####
include/%.h: $(TREEDIRI)/%.h
cp $< $@
$(TREELIB): $(TREEO) $(TREEDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libTree.$(SOEXT) $@ "$(TREEO) $(TREEDO)" \
"$(TREELIBEXTRA)"
$(TREEDS): $(TREEH) $(TREEL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(TREEH) $(TREEL)
# pre-requisites intentionally not specified... should be called only
# on demand after deleting the file
$(TREEDS2):
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(TREEDH2) $(TREEL2)
all-tree: $(TREELIB)
map-tree: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(TREELIB) \
-d $(TREELIBDEP) -c $(TREEL)
map:: map-tree
clean-tree:
@rm -f $(TREEO) $(TREEDO)
clean:: clean-tree
distclean-tree: clean-tree
@rm -f $(TREEDEP) $(TREEDS) $(TREEDH) $(TREELIB)
distclean:: distclean-tree