Repair memory leaks in plpython.
[pgsql.git] / contrib / pgcrypto / Makefile
blob85f1c94681356f6e5ab6372bca5534ee6030a1b5
1 # contrib/pgcrypto/Makefile
3 ZLIB_TST = pgp-compression
4 ZLIB_OFF_TST = pgp-zlib-DISABLED
6 CF_PGP_TESTS = $(if $(subst no,,$(with_zlib)), $(ZLIB_TST), $(ZLIB_OFF_TST))
8 OBJS = \
9 $(WIN32RES) \
10 crypt-blowfish.o \
11 crypt-des.o \
12 crypt-gensalt.o \
13 crypt-md5.o \
14 mbuf.o \
15 openssl.o \
16 pgcrypto.o \
17 pgp-armor.o \
18 pgp-cfb.o \
19 pgp-compress.o \
20 pgp-decrypt.o \
21 pgp-encrypt.o \
22 pgp-info.o \
23 pgp-mpi.o \
24 pgp-mpi-openssl.o \
25 pgp-pgsql.o \
26 pgp-pubdec.o \
27 pgp-pubenc.o \
28 pgp-pubkey.o \
29 pgp-s2k.o \
30 pgp.o \
31 px-crypt.o \
32 px-hmac.o \
33 px.o
35 MODULE_big = pgcrypto
37 EXTENSION = pgcrypto
38 DATA = pgcrypto--1.3.sql pgcrypto--1.2--1.3.sql pgcrypto--1.1--1.2.sql \
39 pgcrypto--1.0--1.1.sql
40 PGFILEDESC = "pgcrypto - cryptographic functions"
42 REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \
43 sha2 des 3des cast5 \
44 crypt-des crypt-md5 crypt-blowfish crypt-xdes \
45 pgp-armor pgp-decrypt pgp-encrypt pgp-encrypt-md5 $(CF_PGP_TESTS) \
46 pgp-pubkey-decrypt pgp-pubkey-encrypt pgp-info
48 ifdef USE_PGXS
49 PG_CONFIG = pg_config
50 PGXS := $(shell $(PG_CONFIG) --pgxs)
51 include $(PGXS)
52 else
53 subdir = contrib/pgcrypto
54 top_builddir = ../..
55 include $(top_builddir)/src/Makefile.global
56 include $(top_srcdir)/contrib/contrib-global.mk
57 endif
59 # Add libraries that pgcrypto depends (or might depend) on into the
60 # shared library link. (The order in which you list them here doesn't
61 # matter.)
62 SHLIB_LINK += $(filter -lcrypto -lz, $(LIBS))
63 ifeq ($(PORTNAME), win32)
64 SHLIB_LINK += $(filter -leay32, $(LIBS))
65 # those must be at the end
66 SHLIB_LINK += -lws2_32
67 endif