Debian Codegraph @

src/test/modules/ssl_passphrase_callback/Makefile

raw
1 # ssl_passphrase_callback Makefile
2
3 export with_ssl
4
5 MODULE_big = ssl_passphrase_func
6 OBJS = ssl_passphrase_func.o $(WIN32RES)
7 PGFILEDESC = "callback function to provide a passphrase"
8
9 TAP_TESTS = 1
10
11 ifdef USE_PGXS
12 PG_CONFIG = pg_config
13 PGXS := $(shell $(PG_CONFIG) --pgxs)
14 include $(PGXS)
15 else
16 subdir = src/test/modules/ssl_passphrase_callback
17 top_builddir = ../../../..
18 include $(top_builddir)/src/Makefile.global
19 include $(top_srcdir)/contrib/contrib-global.mk
20 endif
21
22 SHLIB_LINK += $(filter -lssl -lcrypto, $(LIBS))
23
24 # Targets to generate or remove the ssl certificate and key
25 # Normally not needed. Don't run these targets in a vpath build, the results
26 # won't be in the right place if you do.
27
28 # needs to agree with what's in the test script
29 PASS = FooBaR1
30
31 .PHONY: ssl-files ssl-files-clean
32
33 ssl-files:
34 $(OPENSSL) req -new -x509 -days 10000 -nodes -out server.crt \
35 -keyout server.ckey -subj "/CN=localhost"
36 $(OPENSSL) pkey -aes256 -in server.ckey -out server.key -passout pass:$(PASS)
37 rm server.ckey
38
39 ssl-files-clean:
40 rm -f server.crt server.key