Revision 7ec5cff52c9288f79f3410af70626e16efda8123 authored by Fons Rademakers on 14 July 2003, 15:35:12 UTC, committed by Fons Rademakers on 14 July 2003, 15:35:12 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@6922 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent b449678
Module.mk
# Module.mk for dcache module
#
# Author: Grzegorz Mazur <mazur@mail.desy.de>, 16/1/2002
MODDIR := dcache
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
DCACHEDIR := $(MODDIR)
DCACHEDIRS := $(DCACHEDIR)/src
DCACHEDIRI := $(DCACHEDIR)/inc
##### libDCache #####
DCACHEL := $(MODDIRI)/LinkDef.h
DCACHEDS := $(MODDIRS)/G__DCache.cxx
DCACHEDO := $(DCACHEDS:.cxx=.o)
DCACHEDH := $(DCACHEDS:.cxx=.h)
DCACHEH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
DCACHES := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
DCACHEO := $(DCACHES:.cxx=.o)
DCACHEDEP := $(DCACHEO:.o=.d) $(DCACHEDO:.o=.d)
DCACHELIB := $(LPATH)/libDCache.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(DCACHEH))
ALLLIBS += $(DCACHELIB)
# include all dependency files
INCLUDEFILES += $(DCACHEDEP)
##### local rules #####
include/%.h: $(DCACHEDIRI)/%.h
cp $< $@
$(DCACHELIB): $(DCACHEO) $(DCACHEDO) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libDCache.$(SOEXT) $@ "$(DCACHEO) $(DCACHEDO)" \
"$(DCACHELIBEXTRA) $(DCAPLIBDIR) $(DCAPLIB)"
$(DCACHEDS): $(DCACHEH) $(DCACHEL) $(ROOTCINTTMP)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(DCACHEH) $(DCACHEL)
$(DCACHEDO): $(DCACHEDS)
$(CXX) $(NOOPT) $(CXXFLAGS) -I$(DCAPINCDIR) -I. -o $@ -c $<
all-dcache: $(DCACHELIB)
clean-dcache:
@rm -f $(DCACHEO) $(DCACHEDO)
clean:: clean-dcache
distclean-dcache: clean-dcache
@rm -f $(DCACHEDEP) $(DCACHEDS) $(DCACHEDH) $(DCACHELIB)
distclean:: distclean-dcache
##### extra rules ######
$(DCACHEO): %.o: %.cxx
$(CXX) $(OPT) $(CXXFLAGS) -I$(DCAPINCDIR) -o $@ -c $<
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...