# Module.mk for xmlparser module # Copyright (c) 2004 Rene Brun and Fons Rademakers # # Authors: Jose Lo MODNAME := xmlparser MODDIR := $(ROOT_SRCDIR)/io/$(MODNAME) MODDIRS := $(MODDIR)/src MODDIRI := $(MODDIR)/inc XMLPARSERDIR := $(MODDIR) XMLPARSERDIRS := $(XMLPARSERDIR)/src XMLPARSERDIRI := $(XMLPARSERDIR)/inc ##### libXMLParser ##### XMLPARSERL := $(MODDIRI)/LinkDef.h XMLPARSERDS := $(call stripsrc,$(MODDIRS)/G__XMLParser.cxx) XMLPARSERDO := $(XMLPARSERDS:.cxx=.o) XMLPARSERDH := $(XMLPARSERDS:.cxx=.h) XMLPARSERH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h)) XMLPARSERS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx)) XMLPARSERO := $(call stripsrc,$(XMLPARSERS:.cxx=.o)) XMLPARSERDEP := $(XMLPARSERO:.o=.d) $(XMLPARSERDO:.o=.d) XMLPARSERLIB := $(LPATH)/libXMLParser.$(SOEXT) XMLPARSERMAP := $(XMLPARSERLIB:.$(SOEXT)=.rootmap) # used in the main Makefile ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(XMLPARSERH)) ALLLIBS += $(XMLPARSERLIB) ALLMAPS += $(XMLPARSERMAP) # include all dependency files INCLUDEFILES += $(XMLPARSERDEP) ##### local rules ##### .PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) include/%.h: $(XMLPARSERDIRI)/%.h cp $< $@ $(XMLPARSERLIB): $(XMLPARSERO) $(XMLPARSERDO) $(ORDER_) $(MAINLIBS) @$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \ "$(SOFLAGS)" libXMLParser.$(SOEXT) $@ \ "$(XMLPARSERO) $(XMLPARSERDO)" \ "$(XMLLIBDIR) $(XMLCLILIB)" $(XMLPARSERDS): $(XMLPARSERH) $(XMLPARSERL) $(ROOTCINTTMPDEP) $(MAKEDIR) @echo "Generating dictionary $@..." $(ROOTCINTTMP) -f $@ -c $(XMLPARSERH) $(XMLPARSERL) $(XMLPARSERMAP): $(RLIBMAP) $(MAKEFILEDEP) $(XMLPARSERL) $(RLIBMAP) -o $@ -l $(XMLPARSERLIB) \ -d $(XMLPARSERLIBDEPM) -c $(XMLPARSERL) all-$(MODNAME): $(XMLPARSERLIB) $(XMLPARSERMAP) clean-$(MODNAME): @rm -f $(XMLPARSERO) $(XMLPARSERDO) clean:: clean-$(MODNAME) distclean-$(MODNAME): clean-$(MODNAME) @rm -f $(XMLPARSERDEP) $(XMLPARSERDS) $(XMLPARSERDH) \ $(XMLPARSERLIB) $(XMLPARSERMAP) distclean:: distclean-$(MODNAME) ##### extra rules ###### $(XMLPARSERO): CXXFLAGS += $(XMLINCDIR:%=-I%)