swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 76be6de18dcbe8d887847d63ccba200af4390992 authored by Fons Rademakers on 19 May 2008, 09:32:27 UTC
tag patch release v5-18-00c.
tag patch release v5-18-00c.
Tip revision: 76be6de
Module.mk
# Module.mk for ged module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Ilka Antcheva, 18/2/2004
MODDIR := ged
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
GEDDIR := $(MODDIR)
GEDDIRS := $(GEDDIR)/src
GEDDIRI := $(GEDDIR)/inc
##### libGed #####
GEDL := $(MODDIRI)/LinkDef.h
GEDDS := $(MODDIRS)/G__Ged.cxx
GEDDO := $(GEDDS:.cxx=.o)
GEDDH := $(GEDDS:.cxx=.h)
GEDH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
GEDS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
GEDO := $(GEDS:.cxx=.o)
GEDDEP := $(GEDO:.o=.d) $(GEDDO:.o=.d)
GEDLIB := $(LPATH)/libGed.$(SOEXT)
GEDMAP := $(GEDLIB:.$(SOEXT)=.rootmap)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(GEDH))
ALLLIBS += $(GEDLIB)
ALLMAPS += $(GEDMAP)
# include all dependency files
INCLUDEFILES += $(GEDDEP)
##### local rules #####
include/%.h: $(GEDDIRI)/%.h
cp $< $@
$(GEDLIB): $(GEDO) $(GEDDO) $(ORDER_) $(MAINLIBS) $(GEDLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libGed.$(SOEXT) $@ "$(GEDO) $(GEDDO)" \
"$(GEDLIBEXTRA)"
$(GEDDS): $(GEDH) $(GEDL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(GEDH) $(GEDL)
$(GEDMAP): $(RLIBMAP) $(MAKEFILEDEP) $(GEDL)
$(RLIBMAP) -o $(GEDMAP) -l $(GEDLIB) \
-d $(GEDLIBDEPM) -c $(GEDL)
all-ged: $(GEDLIB) $(GEDMAP)
clean-ged:
@rm -f $(GEDO) $(GEDDO)
clean:: clean-ged
distclean-ged: clean-ged
@rm -f $(GEDDEP) $(GEDDS) $(GEDDH) $(GEDLIB) $(GEDMAP)
distclean:: distclean-ged