Revision 4c14c6ee242af5d5df0f337f6c778bc6d746d318 authored by Guilherme Amadio on 15 May 2017, 07:39:31 UTC, committed by Guilherme Amadio on 16 May 2017, 16:20:31 UTC
1 parent 7741087
Module.mk
# Module.mk for gpad module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODNAME := gpad
MODDIR := $(ROOT_SRCDIR)/graf2d/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
GPADDIR := $(MODDIR)
GPADDIRS := $(GPADDIR)/src
GPADDIRI := $(GPADDIR)/inc
##### libGpad #####
GPADL := $(MODDIRI)/LinkDef.h
GPADDS := $(call stripsrc,$(MODDIRS)/G__Gpad.cxx)
GPADDO := $(GPADDS:.cxx=.o)
GPADDH := $(GPADDS:.cxx=.h)
GPADH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
GPADS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
GPADO := $(call stripsrc,$(GPADS:.cxx=.o))
GPADDEP := $(GPADO:.o=.d) $(GPADDO:.o=.d)
GPADLIB := $(LPATH)/libGpad.$(SOEXT)
GPADMAP := $(GPADLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
GPADH_REL := $(patsubst $(MODDIRI)/%.h,include/%.h,$(GPADH))
ALLHDRS += $(GPADH_REL)
ALLLIBS += $(GPADLIB)
ALLMAPS += $(GPADMAP)
ifeq ($(CXXMODULES),yes)
CXXMODULES_HEADERS := $(patsubst include/%,header \"%\"\\n,$(GPADH_REL))
CXXMODULES_MODULEMAP_CONTENTS += module Graf2d_$(MODNAME) { \\n
CXXMODULES_MODULEMAP_CONTENTS += $(CXXMODULES_HEADERS)
CXXMODULES_MODULEMAP_CONTENTS += "export \* \\n"
CXXMODULES_MODULEMAP_CONTENTS += link \"$(GPADLIB)\" \\n
CXXMODULES_MODULEMAP_CONTENTS += } \\n
endif
# include all dependency files
INCLUDEFILES += $(GPADDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(GPADDIRI)/%.h
cp $< $@
$(GPADLIB): $(GPADO) $(GPADDO) $(ORDER_) $(MAINLIBS) $(GPADLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libGpad.$(SOEXT) $@ "$(GPADO) $(GPADDO)" \
"$(GPADLIBEXTRA)"
$(call pcmrule,GPAD)
$(noop)
$(GPADDS): $(GPADH) $(GPADL) $(ROOTCLINGEXE) $(call pcmdep,GPAD)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCLINGSTAGE2) -f $@ $(call dictModule,GPAD) -c -writeEmptyRootPCM $(GPADH) $(GPADL)
$(GPADMAP): $(GPADH) $(GPADL) $(ROOTCLINGEXE) $(call pcmdep,GPAD)
$(MAKEDIR)
@echo "Generating rootmap $@..."
$(ROOTCLINGSTAGE2) -r $(GPADDS) $(call dictModule,GPAD) -c $(GPADH) $(GPADL)
all-$(MODNAME): $(GPADLIB)
clean-$(MODNAME):
@rm -f $(GPADO) $(GPADDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(GPADDEP) $(GPADDS) $(GPADDH) $(GPADLIB) $(GPADMAP)
distclean:: distclean-$(MODNAME)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...