https://github.com/root-project/root
Tip revision: dc23f9fcef6b528a41995f8ce10463d5330581e6 authored by Fons Rademakers on 27 October 2012, 21:18:24 UTC
tag patch release v5-34-03.
tag patch release v5-34-03.
Tip revision: dc23f9f
Module.mk
# Module.mk for qtroot module
# Copyright (c) 2003 Valeri Fine
#
# Author: Valeri Fine, 20/5/2003
MODNAME := qtroot
MODDIR := $(ROOT_SRCDIR)/gui/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
QTROOTDIR := $(MODDIR)
QTROOTDIRS := $(QTROOTDIR)/src
QTROOTDIRI := $(QTROOTDIR)/inc
##### libQtRoot #####
QTROOTL := $(MODDIRI)/LinkDef.h
QTROOTDS := $(call stripsrc,$(MODDIRS)/G__QtRoot.cxx)
QTROOTDO := $(QTROOTDS:.cxx=.o)
QTROOTDH := $(QTROOTDS:.cxx=.h)
QTROOTH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
QTROOTS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
QTROOTO := $(call stripsrc,$(QTROOTS:.cxx=.o))
QTROOTDEP := $(QTROOTO:.o=.d) $(QTROOTDO:.o=.d)
QTROOTLIB := $(LPATH)/libQtRoot.$(SOEXT)
QTROOTMAP := $(QTROOTLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(QTROOTH))
ALLLIBS += $(QTROOTLIB)
ALLMAPS += $(QTROOTMAP)
# include all dependency files
INCLUDEFILES += $(QTROOTDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(QTROOTDIRI)/%.h
cp $< $@
$(QTROOTLIB): $(QTROOTO) $(QTROOTDO) $(ORDER_) $(MAINLIBS) $(QTROOTLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libQtRoot.$(SOEXT) $@ "$(QTROOTO) $(QTROOTDO)" \
"$(QTROOTLIBEXTRA) $(QTLIBDIR) $(QTLIB)"
$(QTROOTDS): $(QTROOTH) $(QTROOTL) $(ROOTCINTTMPDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(QTROOTH) $(QTROOTL)
$(QTROOTMAP): $(RLIBMAP) $(MAKEFILEDEP) $(QTROOTL)
$(RLIBMAP) -o $@ -l $(QTROOTLIB) \
-d $(QTROOTLIBDEPM) -c $(QTROOTL)
all-$(MODNAME): $(QTROOTLIB) $(QTROOTMAP)
clean-$(MODNAME):
@rm -f $(QTROOTO) $(QTROOTDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(QTROOTDEP) $(QTROOTDS) $(QTROOTDH) $(QTROOTLIB) $(QTROOTMAP)
distclean:: distclean-$(MODNAME)
##### extra rules ######
$(sort $(QTROOTO)) $(QTROOTDO): CXXFLAGS := $(filter-out -Wshadow,$(CXXFLAGS))
$(sort $(QTROOTO)) $(QTROOTDO): CXXFLAGS += $(GQTCXXFLAGS)