head	1.5;
access;
symbols
	UUID_1_6_2:1.4
	UUID_1_6_1:1.4
	UUID_1_6_0:1.4
	UUID_1_5_1:1.3
	UUID_1_5_0:1.2
	UUID_1_4_2:1.2
	UUID_1_4_1:1.2
	UUID_1_4_0:1.2;
locks; strict;
comment	@# @;


1.5
date	2008.07.05.12.58.23;	author rse;	state dead;
branches;
next	1.4;
commitid	XLXN7vUmABwPcC9t;

1.4
date	2006.11.20.19.29.27;	author rse;	state Exp;
branches;
next	1.3;
commitid	tIHzBANKon9MqrVr;

1.3
date	2006.07.31.12.43.32;	author rse;	state Exp;
branches;
next	1.2;
commitid	3JJtE9S2buQJM0Hr;

1.2
date	2006.01.12.20.31.51;	author rse;	state Exp;
branches;
next	1.1;
commitid	zorI32uWUKI1Olhr;

1.1
date	2006.01.12.20.00.23;	author rse;	state Exp;
branches;
next	;
commitid	QzM3BRD6JxgeDlhr;


desc
@@


1.5
log
@remove OSSP uuid from CVS -- it is now versioned controlled in a Monotone repository
@
text
@##
##  Makefile for PostgreSQL extension module
##

#   NOTICE: This requires GNU make as the PostgreSQL PGXS build
#   environment is based on GNU make features!
#
#   NOTICE: Usually one would just use "PGXS := $(shell pg_config
#   --pgxs)" followed by "include $(PGXS)" as the template. The problem
#   just is that this way (at least still under PostgreSQL 8.1) one
#   cannot pass the "-L../.libs -luuid" to the command which links the
#   DSO. Hence we fiddle around with the Makefiles which "PGXS" uses
#   itself ourself.

PG_CONFIG         ?= pg_config
PGXS              := $(shell $(PG_CONFIG) --pgxs)
POSTGRES          := $(shell $(PG_CONFIG) --bindir)/postgres
top_builddir      := $(dir $(PGXS))../..
include           $(top_builddir)/src/Makefile.global
    
NAME              = uuid
OBJS              = uuid.o
SO_MAJOR_VERSION  = 1
SO_MINOR_VERSION  = 0

override CPPFLAGS := -I.. $(CPPFLAGS)
SHLIB_LINK        := -L../.libs -luuid
SHLIB_LINK        += $(shell test $(shell uname -s) = FreeBSD && echo "-Wl,-Bsymbolic")
SHLIB_LINK        += $(shell test $(shell uname -s) = Darwin && echo "-bundle_loader $(POSTGRES)")
rpath             :=

all: uuid.sql all-lib

enable_shared     = yes
include           $(top_builddir)/src/Makefile.shlib

uuid.sql: uuid.sql.in
	sed -e 's;MODULE_PATHNAME;$(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX);g' <uuid.sql.in >uuid.sql

install: all
	$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
	$(mkinstalldirs) $(DESTDIR)$(datadir)
	$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX)
	$(INSTALL_DATA) uuid.sql $(DESTDIR)$(datadir)/uuid.sql

uninstall:
	-rm -f $(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX)
	-rm -f $(DESTDIR)$(datadir)/uuid.sql

clean distclean: clean-lib
	rm -f $(OBJS)
	rm -f uuid.sql

realclean: distclean

test:

@


1.4
log
@Support MacOS X (aka Darwin) in PostgreSQL bindings by passing
a "-bundle_loader" option to the linker in order to resolve the
"undefined symbols" problem.
@
text
@@


1.3
log
@Use "MODULE_PATHNAME" instead of "@@MODULE_PATHNAME@@" in
uuid.sql.in to be more aligned to the PostgreSQL styles.

Submitted by: Simon "janus" Dassow <janus@@errornet.de>
@
text
@d17 1
d29 1
@


1.2
log
@hook PostgreSQL bindings into regular build environment
@
text
@d36 1
a36 1
	sed -e 's;@@MODULE_PATHNAME@@;$(DESTDIR)$(pkglibdir)/uuid$(DLSUFFIX);g' <uuid.sql.in >uuid.sql
@


1.1
log
@Added experimental PostgreSQL bindings.
@
text
@d15 2
a16 1
PGXS              := $(shell pg_config --pgxs)
d52 4
@

