Revision a9d626ed6f8f82fa9af58828d03dbb804c88a28f authored by Axel Naumann on 21 November 2016, 07:43:30 UTC, committed by Axel Naumann on 24 November 2016, 07:21:49 UTC
(cherry picked from commit 294c141c1d21227560b3bfc37a2940be97b275cb)
1 parent b947352
Module.mk
# Module.mk for monalisa module
# Copyright (c) 2005 Rene Brun and Fons Rademakers
#
# Author: Andreas Peters, 07/12/2005
MODNAME := monalisa
MODDIR := $(ROOT_SRCDIR)/net/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
MONALISADIR := $(MODDIR)
MONALISADIRS := $(MONALISADIR)/src
MONALISADIRI := $(MONALISADIR)/inc
##### libMonaLisa #####
MONALISAL := $(MODDIRI)/LinkDef.h
MONALISADS := $(call stripsrc,$(MODDIRS)/G__MonaLisa.cxx)
MONALISADO := $(MONALISADS:.cxx=.o)
MONALISADH := $(MONALISADS:.cxx=.h)
MONALISAH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
MONALISAS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
MONALISAO := $(call stripsrc,$(MONALISAS:.cxx=.o))
MONALISADEP := $(MONALISAO:.o=.d) $(MONALISADO:.o=.d)
MONALISALIB := $(LPATH)/libMonaLisa.$(SOEXT)
MONALISAMAP := $(MONALISALIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(MONALISAH))
ALLLIBS += $(MONALISALIB)
ALLMAPS += $(MONALISAMAP)
# include all dependency files
INCLUDEFILES += $(MONALISADEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(MONALISADIRI)/%.h
cp $< $@
$(MONALISALIB): $(MONALISAO) $(MONALISADO) $(ORDER_) $(MAINLIBS) $(MONALISALIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libMonaLisa.$(SOEXT) $@ "$(MONALISAO) $(MONALISADO)" \
"$(MONALISALIBEXTRA) $(MONALISALIBDIR) $(MONALISACLILIB)"
$(call pcmrule,MONALISA)
$(noop)
$(MONALISADS): $(MONALISAH) $(MONALISAL) $(ROOTCLINGEXE) $(call pcmdep,MONALISA)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCLINGSTAGE2) -f $@ $(call dictModule,MONALISA) -c $(MONALISAINCDIR:%=-I%) $(MONALISAH) $(MONALISAL)
$(MONALISAMAP): $(MONALISAH) $(MONALISAL) $(ROOTCLINGEXE) $(call pcmdep,MONALISA)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCLINGSTAGE2) -r $(MONALISADS) $(call dictModule,MONALISA) -c $(MONALISAINCDIR:%=-I%) $(MONALISAH) $(MONALISAL)
all-$(MODNAME): $(MONALISALIB)
clean-$(MODNAME):
@rm -f $(MONALISAO) $(MONALISADO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(MONALISADEP) $(MONALISADS) $(MONALISADH) \
$(MONALISALIB) $(MONALISAMAP)
distclean:: distclean-$(MODNAME)
##### extra rules ######
$(MONALISAO) $(MONALISADO): CXXFLAGS += $(MONALISAINCDIR:%=-I%)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...