Debian Codegraph @

contrib/pgcrypto/Makefile

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