swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: eeef54935972efc9354fc54da09f63dfed9a619e authored by Unknown Author on 10 October 2006, 12:24:26 UTC
This commit was manufactured by cvs2svn to create tag 'v5-13-04'.
This commit was manufactured by cvs2svn to create tag 'v5-13-04'.
Tip revision: eeef549
Module.mk
# Module.mk for castor module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := castor
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
CASTORDIR := $(MODDIR)
CASTORDIRS := $(CASTORDIR)/src
CASTORDIRI := $(CASTORDIR)/inc
##### libRCastor #####
CASTORL := $(MODDIRI)/LinkDef.h
CASTORDS := $(MODDIRS)/G__CASTOR.cxx
CASTORDO := $(CASTORDS:.cxx=.o)
CASTORDH := $(CASTORDS:.cxx=.h)
CASTORH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
CASTORS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
CASTORO := $(CASTORS:.cxx=.o)
CASTORDEP := $(CASTORO:.o=.d) $(CASTORDO:.o=.d)
CASTORLIB := $(LPATH)/libRCastor.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(CASTORH))
ALLLIBS += $(CASTORLIB)
# include all dependency files
INCLUDEFILES += $(CASTORDEP)
##### local rules #####
include/%.h: $(CASTORDIRI)/%.h
cp $< $@
$(CASTORLIB): $(CASTORO) $(CASTORDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libRCastor.$(SOEXT) $@ \
"$(CASTORO) $(CASTORDO)" "$(CASTORLIBDIR) $(CASTORCLILIB)"
$(CASTORDS): $(CASTORH) $(CASTORL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(CASTORH) $(CASTORL)
all-castor: $(CASTORLIB)
map-castor: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(CASTORLIB) \
-d $(CASTORLIBDEP) -c $(CASTORL)
map:: map-castor
clean-castor:
@rm -f $(CASTORO) $(CASTORDO)
clean:: clean-castor
distclean-castor: clean-castor
@rm -f $(CASTORDEP) $(CASTORDS) $(CASTORDH) $(CASTORLIB)
distclean:: distclean-castor
##### extra rules ######
ifeq ($(PLATFORM),win32)
$(CASTORO): CXXFLAGS += $(CASTORCFLAGS) $(CASTORINCDIR:%=-I%) -DNOGDI -D__INSIDE_CYGWIN__
else
$(CASTORO): CXXFLAGS += $(CASTORCFLAGS) $(CASTORINCDIR:%=-I%)
endif