Revision 048ea163f49400b09cc08ab3776223c512a58113 authored by Olivier Couet on 09 November 2015, 16:59:05 UTC, committed by Olivier Couet on 09 November 2015, 16:59:05 UTC
1 parent cd6620f
Module.mk
# Module.mk for qtgsi module
# Copyright (c) 2006 Rene Brun and Fons Rademakers
#
# Author: Bertrand Bellenot, 22/02/2006
MODNAME := qtgsi
MODDIR := $(ROOT_SRCDIR)/gui/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
QTGSIDIR := $(MODDIR)
QTGSIDIRS := $(QTGSIDIR)/src
QTGSIDIRI := $(QTGSIDIR)/inc
QTGSIDIRT := $(call stripsrc,$(QTGSIDIR)/test)
##### libQtGSI #####
QTGSIL := $(MODDIRI)/LinkDef.h
QTGSIDS := $(call stripsrc,$(MODDIRS)/G__QtGSI.cxx)
QTGSIDO := $(QTGSIDS:.cxx=.o)
QTGSIDH := $(QTGSIDS:.cxx=.h)
QTGSIH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
QTGSIS := $(filter-out $(MODDIRS)/moc_%,\
$(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx)))
QTGSIO := $(call stripsrc,$(QTGSIS:.cxx=.o))
QTGSIMOCH := $(MODDIRI)/TQCanvasMenu.h $(MODDIRI)/TQRootApplication.h \
$(MODDIRI)/TQRootCanvas.h $(MODDIRI)/TQRootDialog.h
QTGSIMOC := $(call stripsrc,$(subst $(MODDIRI)/,$(MODDIRS)/moc_,$(patsubst %.h,%.cxx,$(QTGSIMOCH))))
QTGSIMOCO := $(QTGSIMOC:.cxx=.o)
QTGSIDEP := $(QTGSIO:.o=.d) $(QTGSIDO:.o=.d) $(QTGSIMOCO:.o=.d)
QTGSICXXFLAGS := -DQT3_SUPPORT= -DQT3_SUPPORT_CONSTRUCTOR= -DQT_DLL -DQT_THREAD_SUPPORT -I. $(QTINCDIR:%=-I%)
ifneq ($(GCC_MAJOR),)
# Building with GCC
QTGSICXXFLAGS += -Wno-deprecated-register -Wno-uninitialized
endif
ifneq ($(CLANG_MAJOR),)
# Building with clang
QTGSICXXFLAGS += -Wno-deprecated -Wno-uninitialized
endif
QTGSILIB := $(LPATH)/libQtGSI.$(SOEXT)
QTGSIMAP := $(QTGSILIB:.$(SOEXT)=.rootmap)
ifeq ($(PLATFORM),win32)
QTTESTOPTS := -f Makefile.win
else
QTTESTOPTS :=
endif
QTTESTPATH := $(PATH):$(abspath ./bin)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(QTGSIH))
ALLLIBS += $(QTGSILIB)
ALLMAPS += $(QTGSIMAP)
# include all dependency files
INCLUDEFILES += $(QTGSIDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME) \
test-$(MODNAME)
include/%.h: $(QTGSIDIRI)/%.h
cp $< $@
$(QTGSILIB): $(QTGSIO) $(QTGSIDO) $(QTGSIMOCO) $(ORDER_) $(MAINLIBS) $(QTGSILIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libQtGSI.$(SOEXT) $@ \
"$(QTGSIO) $(QTGSIDO) $(QTGSIMOCO)" \
"$(QTGSILIBEXTRA) $(QTLIBDIR) $(QTLIB)"
$(call pcmrule,QTGSI)
$(noop)
$(QTGSIDS): $(QTGSIH) $(QTGSIL) $(ROOTCLINGEXE) $(call pcmdep,QTGSI)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCLINGSTAGE2) -f $@ $(call dictModule,QTGSI) -c -DQTVERS=$(QTVERS) $(QTGSICXXFLAGS) $(QTGSIH) $(QTGSIL)
$(QTGSIMAP): $(QTGSIH) $(QTGSIL) $(ROOTCLINGEXE) $(call pcmdep,QTGSI)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCLINGSTAGE2) -r $(QTGSIDS) $(call dictModule,QTGSI) -c -DQTVERS=$(QTVERS) $(QTGSICXXFLAGS) $(QTGSIH) $(QTGSIL)
all-$(MODNAME): $(QTGSILIB)
test-$(MODNAME): all-$(MODNAME)
ifneq ($(ROOT_OBJDIR),$(ROOT_SRCDIR))
@$(INSTALL) $(QTGSIDIR)/test $(QTGSIDIRT)
endif
cd $(QTGSIDIRT) && $(MAKE) $(QTTESTOPTS)
clean-$(MODNAME):
@rm -f $(QTGSIO) $(QTGSIDO) $(QTGSIMOCO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(QTGSIDEP) $(QTGSIMOC) $(QTGSILIB) $(QTGSIMAP)
@rm -f $(QTGSIDS) $(QTGSIDH)
ifneq ($(ROOT_OBJDIR),$(ROOT_SRCDIR))
@rm -rf $(QTGSIDIRT)
endif
distclean:: distclean-$(MODNAME)
##### extra rules ######
$(sort $(QTGSIMOCO) $(QTGSIO)): CXXFLAGS := $(filter-out -Wshadow,$(CXXFLAGS))
$(QTGSIDO): CXXFLAGS := $(filter-out -Wshadow,$(CXXFLAGS))
$(sort $(QTGSIMOCO) $(QTGSIO)): CXXFLAGS += $(QTGSICXXFLAGS)
$(QTGSIDO): CXXFLAGS += $(QTGSICXXFLAGS)
$(QTGSIMOC): $(call stripsrc,$(QTGSIDIRS)/moc_%.cxx): $(QTGSIDIRI)/%.h
$(MAKEDIR)
$(QTMOCEXE) $< -o $@
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...