Revision 4fd44c7b3c641895603c91ef130c3d3b10b80eef authored by Axel Naumann on 07 February 2014, 22:40:52 UTC, committed by Axel Naumann on 07 February 2014, 22:41:59 UTC
(cherry picked from commit f5b530ffcaba9cd95b1aafef268bcd5904ba3718)
1 parent 5e1543d
Module.mk
# Module.mk for gdml module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Ben Lloyd 09/11/06
MODNAME := gdml
MODDIR := $(ROOT_SRCDIR)/geom/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
GDMLDIR := $(MODDIR)
GDMLDIRS := $(GDMLDIR)/src
GDMLDIRI := $(GDMLDIR)/inc
##### libGdml #####
GDMLL := $(MODDIRI)/LinkDef.h
GDMLDS := $(call stripsrc,$(MODDIRS)/G__Gdml.cxx)
GDMLDO := $(GDMLDS:.cxx=.o)
GDMLDH := $(GDMLDS:.cxx=.h)
GDMLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
GDMLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
GDMLO := $(call stripsrc,$(GDMLS:.cxx=.o))
GDMLDEP := $(GDMLO:.o=.d) $(GDMLDO:.o=.d)
GDMLLIB := $(LPATH)/libGdml.$(SOEXT)
GDMLMAP := $(GDMLLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(GDMLH))
ALLLIBS += $(GDMLLIB)
ALLMAPS += $(GDMLMAP)
# include all dependency files
INCLUDEFILES += $(GDMLDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(GDMLDIRI)/%.h
cp $< $@
$(GDMLLIB): $(GDMLO) $(GDMLDO) $(ORDER_) $(MAINLIBS) $(GDMLLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libGdml.$(SOEXT) $@ "$(GDMLO) $(GDMLDO)" \
"$(GDMLLIBEXTRA)"
$(GDMLDS): $(GDMLH) $(GDMLL) $(ROOTCINTTMPDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(GDMLH) $(GDMLL)
$(GDMLMAP): $(RLIBMAP) $(MAKEFILEDEP) $(GDMLL)
$(RLIBMAP) -o $@ -l $(GDMLLIB) \
-d $(GDMLLIBDEPM) -c $(GDMLL)
all-$(MODNAME): $(GDMLLIB) $(GDMLMAP)
clean-$(MODNAME):
@rm -f $(GDMLO) $(GDMLDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(GDMLDEP) $(GDMLDS) $(GDMLDH) $(GDMLLIB) $(GDMLMAP)
distclean:: distclean-$(MODNAME)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...