Revision 9b62968205ef333b01240e01da8ff8e2845a6ae7 authored by Lorenzo Moneta on 30 January 2014, 16:18:57 UTC, committed by Wouter Verkerke on 11 February 2014, 09:10:39 UTC
Signed-off-by: Wouter Verkerke <verkerke@nikhef.nl>
1 parent b4fe628
Module.mk
# Module.mk for sapdb module
# Copyright (c) 2001 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 24/8/2001
MODNAME := sapdb
MODDIR := $(ROOT_SRCDIR)/sql/$(MODNAME)
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
SAPDBDIR := $(MODDIR)
SAPDBDIRS := $(SAPDBDIR)/src
SAPDBDIRI := $(SAPDBDIR)/inc
##### libSapDB #####
SAPDBL := $(MODDIRI)/LinkDef.h
SAPDBDS := $(call stripsrc,$(MODDIRS)/G__SapDB.cxx)
SAPDBDO := $(SAPDBDS:.cxx=.o)
SAPDBDH := $(SAPDBDS:.cxx=.h)
SAPDBH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
SAPDBS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
SAPDBO := $(call stripsrc,$(SAPDBS:.cxx=.o))
SAPDBDEP := $(SAPDBO:.o=.d) $(SAPDBDO:.o=.d)
SAPDBLIB := $(LPATH)/libSapDB.$(SOEXT)
SAPDBMAP := $(SAPDBLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(SAPDBH))
ALLLIBS += $(SAPDBLIB)
ALLMAPS += $(SAPDBMAP)
# include all dependency files
INCLUDEFILES += $(SAPDBDEP)
##### local rules #####
.PHONY: all-$(MODNAME) clean-$(MODNAME) distclean-$(MODNAME)
include/%.h: $(SAPDBDIRI)/%.h
cp $< $@
$(SAPDBLIB): $(SAPDBO) $(SAPDBDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libSapDB.$(SOEXT) $@ "$(SAPDBO) $(SAPDBDO)" \
"$(SAPDBLIBEXTRA) $(SAPDBLIBDIR) $(SAPDBCLILIB)"
$(SAPDBDS): $(SAPDBH) $(SAPDBL) $(ROOTCINTTMPDEP)
$(MAKEDIR)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(SAPDBH) $(SAPDBL)
$(SAPDBMAP): $(RLIBMAP) $(MAKEFILEDEP) $(SAPDBL)
$(RLIBMAP) -o $@ -l $(SAPDBLIB) \
-d $(SAPDBLIBDEPM) -c $(SAPDBL)
all-$(MODNAME): $(SAPDBLIB) $(SAPDBMAP)
clean-$(MODNAME):
@rm -f $(SAPDBO) $(SAPDBDO)
clean:: clean-$(MODNAME)
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(SAPDBDEP) $(SAPDBDS) $(SAPDBDH) $(SAPDBLIB) $(SAPDBMAP)
distclean:: distclean-$(MODNAME)
##### extra rules ######
$(SAPDBO) $(SAPDBDO): CXXFLAGS += $(SAPDBINCDIR:%=-I%)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...