Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

contrib

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Bruce Momjian authored
    b36d3103
    History
     The PostgreSQL contrib tree
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    	FIXME:
    		os2client	
    		odbc
    		spi/preprocessor
    		tools		
    	
    
     - in each directory must be Makefile, possible Makefile template
       is below this text,
    
    --------
    #
    # $Header: /cvsroot/pgsql/contrib/README,v 1.18 2000/06/15 18:54:29 momjian Exp $
    #
    
    TOPDIR=../..
    
    include ../Makefile.global
    
    NAME	= some_name
    
    PROGRAM	= 
    OBJS	= $(NAME).o
    DOCS	= $(NAME).doc
    SQLS	= $(NAME).sql
    BINS	=
    EXAMPLES=
    MODS	= $(NAME)$(DLSUFFIX)
    
    CFLAGS += -I. $(CFLAGS_SL)
    
    OTHER_CLEAN = $(SQLS)
    
    all: $(MODS) $(SQLS)
    
    %.sql: %.sql.in
    	$(SED) "s|MODULE_PATHNAME|$(CONTRIB_MODDIR)/$@|" < $< > $@
    
    
    install: install_doc install_sql install_mod install_bin install_example
    
    install_doc:
    	for inst_file in $(DOCS); do \
    		$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_DOCDIR); \
    	done
    
    install_sql:
    	for inst_file in $(SQLS); do \
    		$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_SQLDIR); \
    	done
    
    install_mod:
    	for inst_file in $(MODS); do \
    		$(INSTALL) $(INSTL_SHLIB_OPTS) $$inst_file $(CONTRIB_MODDIR); \
    	done
    
    install_bin:
    	for inst_file in $(BINS); do \
    		$(INSTALL) $(INSTL_EXE_OPTS) $$inst_file $(CONTRIB_BINDIR); \
    	done
    
    install_example:
    	for inst_file in $(EXAMPLES); do \
    		$(INSTALL) $(INSTL_LIB_OPTS) $$inst_file $(CONTRIB_EXAMPLESDIR); \
    	done
    
    depend dep:
    	$(CC) -MM -MG $(CFLAGS) *.c > depend
    
    clean:
    	$(RM) *~ $(OBJS) $(MODS) $(PROGRAM) depend $(OTHER_CLEAN) core log
    
    ifeq (depend,$(wildcard depend))
    include depend
    endif
    -----------