https://github.com/root-project/root
Tip revision: 25921c9a5e8b0fa81f0b185ed3a0a98641919034 authored by Unknown Author on 05 July 2007, 11:44:57 UTC
This commit was manufactured by cvs2svn to create tag 'v5-12-00g'.
This commit was manufactured by cvs2svn to create tag 'v5-12-00g'.
Tip revision: 25921c9
Module.mk
# Module.mk for mysql module
# Copyright (c) 2000 Rene Brun and Fons Rademakers
#
# Author: Fons Rademakers, 29/2/2000
MODDIR := mysql
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
MYSQLDIR := $(MODDIR)
MYSQLDIRS := $(MYSQLDIR)/src
MYSQLDIRI := $(MYSQLDIR)/inc
##### libMySQL #####
MYSQLL := $(MODDIRI)/LinkDef.h
MYSQLDS := $(MODDIRS)/G__MySQL.cxx
MYSQLDO := $(MYSQLDS:.cxx=.o)
MYSQLDH := $(MYSQLDS:.cxx=.h)
MYSQLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
MYSQLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
MYSQLO := $(MYSQLS:.cxx=.o)
MYSQLDEP := $(MYSQLO:.o=.d) $(MYSQLDO:.o=.d)
MYSQLLIB := $(LPATH)/libMySQL.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(MYSQLH))
ALLLIBS += $(MYSQLLIB)
# include all dependency files
INCLUDEFILES += $(MYSQLDEP)
##### local rules #####
include/%.h: $(MYSQLDIRI)/%.h
cp $< $@
$(MYSQLLIB): $(MYSQLO) $(MYSQLDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libMySQL.$(SOEXT) $@ "$(MYSQLO) $(MYSQLDO)" \
"$(MYSQLLIBEXTRA) $(MYSQLLIBDIR) $(MYSQLCLILIB)"
$(MYSQLDS): $(MYSQLH) $(MYSQLL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(MYSQLINCDIR:%=-I%) $(MYSQLH) $(MYSQLL)
all-mysql: $(MYSQLLIB)
map-mysql: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(MYSQLLIB) \
-d $(MYSQLLIBDEP) -c $(MYSQLL)
map:: map-mysql
clean-mysql:
@rm -f $(MYSQLO) $(MYSQLDO)
clean:: clean-mysql
distclean-mysql: clean-mysql
@rm -f $(MYSQLDEP) $(MYSQLDS) $(MYSQLDH) $(MYSQLLIB)
distclean:: distclean-mysql
##### extra rules ######
$(MYSQLO) $(MYSQLDO): CXXFLAGS += $(MYSQLINCDIR:%=-I%)