https://github.com/root-project/root
Tip revision: 98f2e0558ddd5d1759d123a86fc6939391301164 authored by Fons Rademakers on 29 February 2012, 15:45:49 UTC
tag patch release v5-32-01.
tag patch release v5-32-01.
Tip revision: 98f2e05
Module.mk
# Module.mk for html module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := html
MODDIR := $(ROOT_SRCDIR)/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
HTMLDIR := $(MODDIR)
HTMLDIRS := $(HTMLDIR)/src
HTMLDIRI := $(HTMLDIR)/inc
##### libHtml #####
HTMLL := $(MODDIRI)/LinkDef.h
HTMLDS := $(call stripsrc,$(MODDIRS)/G__Html.cxx)
HTMLDO := $(HTMLDS:.cxx=.o)
HTMLDH := $(HTMLDS:.cxx=.h)
HTMLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
HTMLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
HTMLO := $(call stripsrc,$(HTMLS:.cxx=.o))
HTMLDEP := $(HTMLO:.o=.d) $(HTMLDO:.o=.d)
HTMLLIB := $(LPATH)/libHtml.$(SOEXT)
HTMLMAP := $(HTMLLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(HTMLH))
ALLLIBS += $(HTMLLIB)
ALLMAPS += $(HTMLMAP)
# include all dependency files
INCLUDEFILES += $(HTMLDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(HTMLDIRI)/%.h
cp $< $@
$(HTMLLIB): $(HTMLO) $(HTMLDO) $(ORDER_) $(MAINLIBS) $(HTMLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libHtml.$(SOEXT) $@ "$(HTMLO) $(HTMLDO)" \
"$(HTMLLIBEXTRA)"
$(HTMLDS): $(HTMLH) $(HTMLL) $(ROOTCINTTMPDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(HTMLH) $(HTMLL)
$(HTMLMAP): $(RLIBMAP) $(MAKEFILEDEP) $(HTMLL)
$(RLIBMAP) -o $@ -l $(HTMLLIB) \
-d $(HTMLLIBDEPM) -c $(HTMLL)
all-$(MODNAME): $(HTMLLIB) $(HTMLMAP)
clean-$(MODNAME):
@rm -f $(HTMLO) $(HTMLDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(HTMLDEP) $(HTMLDS) $(HTMLDH) $(HTMLLIB) $(HTMLMAP)
distclean:: distclean-$(MODNAME)