Revision 180edf636855cd63af5828d752ae1d73caaf12a9 authored by Rene Brun on 19 September 2006, 12:38:03 UTC, committed by Rene Brun on 19 September 2006, 12:38:03 UTC
git-svn-id: http://root.cern.ch/svn/root/trunk@16296 27541ba8-7e3a-0410-8455-c3a389f83636
1 parent 829e8d8
Module.mk
# Module.mk for pgsql module
# Copyright (c) 2001 Rene Brun and Fons Rademakers
#
# Author: g.p.ciceri <gp.ciceri@acm.org>, 1/06/2001
MODDIR := pgsql
MODDIRS := $(MODDIR)/src
MODDIRI := $(MODDIR)/inc
PGSQLDIR := $(MODDIR)
PGSQLDIRS := $(PGSQLDIR)/src
PGSQLDIRI := $(PGSQLDIR)/inc
##### libPgSQL #####
PGSQLL := $(MODDIRI)/LinkDef.h
PGSQLDS := $(MODDIRS)/G__PgSQL.cxx
PGSQLDO := $(PGSQLDS:.cxx=.o)
PGSQLDH := $(PGSQLDS:.cxx=.h)
PGSQLH := $(filter-out $(MODDIRI)/LinkDef%,$(wildcard $(MODDIRI)/*.h))
PGSQLS := $(filter-out $(MODDIRS)/G__%,$(wildcard $(MODDIRS)/*.cxx))
PGSQLO := $(PGSQLS:.cxx=.o)
PGSQLDEP := $(PGSQLO:.o=.d) $(PGSQLDO:.o=.d)
PGSQLLIB := $(LPATH)/libPgSQL.$(SOEXT)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PGSQLH))
ALLLIBS += $(PGSQLLIB)
# include all dependency files
INCLUDEFILES += $(PGSQLDEP)
##### local rules #####
include/%.h: $(PGSQLDIRI)/%.h
cp $< $@
$(PGSQLLIB): $(PGSQLO) $(PGSQLDO) $(ORDER_) $(MAINLIBS)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libPgSQL.$(SOEXT) $@ "$(PGSQLO) $(PGSQLDO)" \
"$(PGSQLLIBEXTRA) $(PGSQLLIBDIR) $(PGSQLCLILIB)"
$(PGSQLDS): $(PGSQLH) $(PGSQLL) $(ROOTCINTTMPEXE)
@echo "Generating dictionary $@..."
$(ROOTCINTTMP) -f $@ -c $(PGSQLH) $(PGSQLL)
all-pgsql: $(PGSQLLIB)
map-pgsql: $(RLIBMAP)
$(RLIBMAP) -r $(ROOTMAP) -l $(PGSQLLIB) \
-d $(PGSQLLIBDEP) -c $(PGSQLL)
map:: map-pgsql
clean-pgsql:
@rm -f $(PGSQLO) $(PGSQLDO)
clean:: clean-pgsql
distclean-pgsql: clean-pgsql
@rm -f $(PGSQLDEP) $(PGSQLDS) $(PGSQLDH) $(PGSQLLIB)
distclean:: distclean-pgsql
##### extra rules ######
$(PGSQLO) $(PGSQLDO): CXXFLAGS += $(PGSQLINCDIR:%=-I%)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...