swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 50c26a6f0e7220b3ccc2289cafb653fb6ed60fd6 authored by Fons Rademakers on 02 December 2011, 11:40:15 UTC
tag pro version v5-32-00.
tag pro version v5-32-00.
Tip revision: 50c26a6
Module.mk
# Module.mk for xml module
# Copyright (c) 2004 Rene Brun and Fons Rademakers
#
# Authors: Linev Sergey, Rene Brun 10/05/2004
MODNAME := xml
MODDIR := $(ROOT_SRCDIR)/io/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
XMLDIR := $(MODDIR)
XMLDIRS := $(XMLDIR)/src
XMLDIRI := $(XMLDIR)/inc
##### libXMLIO #####
XMLL := $(MODDIRI)/LinkDef.h
XMLDS := $(call stripsrc,$(MODDIRS)/G__XML.cxx)
XMLDO := $(XMLDS:.cxx=.o)
XMLDH := $(XMLDS:.cxx=.h)
XMLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
XMLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
XMLO := $(call stripsrc,$(XMLS:.cxx=.o))
XMLDEP := $(XMLO:.o=.d) $(XMLDO:.o=.d)
XMLLIB := $(LPATH)/libXMLIO.$(SOEXT)
XMLMAP := $(XMLLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(XMLH))
ALLLIBS += $(XMLLIB)
ALLMAPS += $(XMLMAP)
# include all dependency files
INCLUDEFILES += $(XMLDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(XMLDIRI)/%.h
cp $< $@
$(XMLLIB): $(XMLO) $(XMLDO) $(ORDER_) $(MAINLIBS) $(XMLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libXMLIO.$(SOEXT) $@ "$(XMLO) $(XMLDO)" \
"$(XMLLIBEXTRA)"
$(XMLDS): $(XMLH) $(XMLL) $(ROOTCINTTMPDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(XMLH) $(XMLL)
$(XMLMAP): $(RLIBMAP) $(MAKEFILEDEP) $(XMLL)
$(RLIBMAP) -o $@ -l $(XMLLIB) \
-d $(XMLLIBDEPM) -c $(XMLL)
all-$(MODNAME): $(XMLLIB) $(XMLMAP)
clean-$(MODNAME):
@rm -f $(XMLO) $(XMLDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(XMLDEP) $(XMLDS) $(XMLDH) $(XMLLIB) $(XMLMAP)
distclean:: distclean-$(MODNAME)