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
))
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 \
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
50 PGXS
:= $(shell $(PG_CONFIG
) --pgxs
)
53 subdir
= contrib
/pgcrypto
55 include $(top_builddir
)/src
/Makefile.global
56 include $(top_srcdir
)/contrib
/contrib-global.mk
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
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