2010-09-21 04:08:53 +08:00
|
|
|
# contrib/uuid-ossp/Makefile
|
2007-04-22 01:26:18 +08:00
|
|
|
|
|
|
|
MODULE_big = uuid-ossp
|
2014-07-15 02:07:52 +08:00
|
|
|
OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) $(WIN32RES)
|
2011-02-14 09:06:41 +08:00
|
|
|
|
|
|
|
EXTENSION = uuid-ossp
|
|
|
|
DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql
|
2014-07-15 02:07:52 +08:00
|
|
|
PGFILEDESC = "uuid-ossp - UUID generation"
|
2007-04-22 01:26:18 +08:00
|
|
|
|
2014-05-28 07:42:08 +08:00
|
|
|
REGRESS = uuid_ossp
|
|
|
|
|
|
|
|
SHLIB_LINK += $(UUID_LIBS)
|
|
|
|
|
|
|
|
# We copy some needed files verbatim from pgcrypto
|
|
|
|
pgcrypto_src = $(top_srcdir)/contrib/pgcrypto
|
|
|
|
|
|
|
|
PG_CPPFLAGS = -I$(pgcrypto_src)
|
|
|
|
|
|
|
|
EXTRA_CLEAN = md5.c sha1.c
|
2007-04-22 01:26:18 +08:00
|
|
|
|
|
|
|
ifdef USE_PGXS
|
2007-06-27 06:05:04 +08:00
|
|
|
PG_CONFIG = pg_config
|
|
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
2007-04-22 01:26:18 +08:00
|
|
|
include $(PGXS)
|
|
|
|
else
|
|
|
|
subdir = contrib/uuid-ossp
|
|
|
|
top_builddir = ../..
|
|
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
|
|
endif
|
2014-05-28 07:42:08 +08:00
|
|
|
|
|
|
|
md5.c sha1.c: % : $(pgcrypto_src)/%
|
|
|
|
rm -f $@ && $(LN_S) $< .
|