mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	I have updated my contrib code for version 6.5. In the attachment you will find the directories array, datetime, miscutil, string, tools and userlocks which replace the corresponding directories under contrib. In contrib/tools you will find some developement scripts which I use while hacking the sources. I hope they will be useful for some other people. I have also added a contrib/Makefile which tries to compile and install all the contribs. Unfortunately many of them don't have a Makefile or don't compile cleanly. -- Massimo Dal Zotto
		
			
				
	
	
		
			65 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Makefile
		
	
	
	
	
	
#-------------------------------------------------------------------------
 | 
						|
#
 | 
						|
# Makefile --
 | 
						|
#
 | 
						|
#    Makefile for array iterator module.
 | 
						|
#
 | 
						|
#-------------------------------------------------------------------------
 | 
						|
 | 
						|
PGDIR = ../..
 | 
						|
SRCDIR = $(PGDIR)/src
 | 
						|
 | 
						|
include $(SRCDIR)/Makefile.global
 | 
						|
 | 
						|
INCLUDE_OPT =	-I ./ \
 | 
						|
		-I $(SRCDIR)/ \
 | 
						|
		-I $(SRCDIR)/include \
 | 
						|
		-I $(SRCDIR)/port/$(PORTNAME)
 | 
						|
 | 
						|
CFLAGS += $(INCLUDE_OPT) $(CFLAGS_SL)
 | 
						|
 | 
						|
MODNAME =	array_iterator
 | 
						|
 | 
						|
SQLDEFS =	$(MODNAME).sql
 | 
						|
 | 
						|
MODULE =	$(MODNAME)$(DLSUFFIX)
 | 
						|
 | 
						|
MODDIR =	$(LIBDIR)/modules
 | 
						|
 | 
						|
SQLDIR =	$(LIBDIR)/sql
 | 
						|
 | 
						|
all:		module sql
 | 
						|
 | 
						|
module:		$(MODULE)
 | 
						|
 | 
						|
sql:		$(SQLDEFS)
 | 
						|
 | 
						|
install:	$(MODULE) $(SQLDEFS) $(MODDIR) $(SQLDIR)
 | 
						|
		cp -p $(MODULE) $(MODDIR)/
 | 
						|
		strip $(MODDIR)/$(MODULE)
 | 
						|
		cp -p $(SQLDEFS) $(SQLDIR)/
 | 
						|
 | 
						|
$(MODDIR):
 | 
						|
		mkdir -p $@
 | 
						|
 | 
						|
$(SQLDIR):
 | 
						|
		mkdir -p $@
 | 
						|
 | 
						|
%.sql: %.sql.in
 | 
						|
		sed "s|MODULE_PATHNAME|$(MODDIR)/$(MODULE)|" < $< > $@
 | 
						|
 | 
						|
.SUFFIXES: $(DLSUFFIX)
 | 
						|
 | 
						|
%$(DLSUFFIX): %.c
 | 
						|
		$(CC) $(CFLAGS) -shared -o $@ $<
 | 
						|
 | 
						|
depend dep:
 | 
						|
		$(CC) -MM $(INCLUDE_OPT) *.c >depend
 | 
						|
 | 
						|
clean:
 | 
						|
		rm -f *~ $(MODULE) $(MODNAME).sql
 | 
						|
 | 
						|
ifeq (depend,$(wildcard depend))
 | 
						|
include depend
 | 
						|
endif
 |