https://github.com/root-project/root
Tip revision: a48bb7fe1e147de1fad7e8775a664518df516f81 authored by Unknown Author on 29 May 2006, 10:03:03 UTC
This commit was manufactured by cvs2svn to create tag 'v5-10-00e'.
This commit was manufactured by cvs2svn to create tag 'v5-10-00e'.
Tip revision: a48bb7f
Module.mk
# Module.mk for oracle module
# Copyright (c) 2005 Rene Brun and Fons Rademakers
#
# Author: Yan Liu, 11/17/2004
MODDIR := oracle
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
ORACLEDIR := $(MODDIR)
ORACLEDIRS := $(ORACLEDIR)/src
ORACLEDIRI := $(ORACLEDIR)/inc
##### libOracle #####
ORACLEL := $(MODDIRI)/LinkDef.h
ORACLEDS := $(MODDIRS)/G__Oracle.cxx
ORACLEDO := $(ORACLEDS:.cxx=.o)
ORACLEDH := $(ORACLEDS:.cxx=.h)
ORACLEH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
ORACLES := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
ORACLEO := $(ORACLES:.cxx=.o)
ORACLEDEP := $(ORACLEO:.o=.d) $(ORACLEDO:.o=.d)
ORACLELIB := $(LPATH)/libOracle.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(ORACLEH))
ALLLIBS += $(ORACLELIB)
# include all dependency files
INCLUDEFILES += $(ORACLEDEP)
##### local rules #####
include/%.h: $(ORACLEDIRI)/%.h
cp $< $@
$(ORACLELIB): $(ORACLEO) $(ORACLEDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libOracle.$(SOEXT) $@ "$(ORACLEO) $(ORACLEDO)" \
"$(ORACLELIBEXTRA) $(ORACLELIBDIR) $(ORACLECLILIB)"
$(ORACLEDS): $(ORACLEH) $(ORACLEL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(ORACLEH) $(ORACLEL)
$(ORACLEDO): $(ORACLEDS)
$(CXX) $(NOOPT) $(CXXFLAGS) -I$(ORACLEINCDIR) -I. -o $@ -c $<
all-oracle: $(ORACLELIB)
map-oracle: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(ORACLELIB) \
-d $(ORACLELIBDEP) -c $(ORACLEL)
map:: map-oracle
clean-oracle:
@rm -f $(ORACLEO) $(ORACLEDO)
clean:: clean-oracle
distclean-oracle: clean-oracle
@rm -f $(ORACLEDEP) $(ORACLEDS) $(ORACLEDH) $(ORACLELIB)
distclean:: distclean-oracle
##### extra rules ######
$(ORACLEO): %.o: %.cxx
$(CXX) $(OPT) $(CXXFLAGS) -I$(ORACLEINCDIR) -o $@ -c $<