swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 99a3ac6f8bb5fb40db00e8991a9505c00c0462c5 authored by Philippe Canal on 28 February 2008, 15:31:01 UTC
From Paul and Philippe:
From Paul and Philippe:
Tip revision: 99a3ac6
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%)