DANE: smtp transport option dane_require_tls_ciphers
[exim.git] / test / Makefile.in
CommitLineData
151b83f8
PH
1# This Makefile builds the support programs for the Exim test suite.
2
3##############################################################################
4# These variables are set by the configure script.
5
6CC=@CC@
7b56f8c7 7CFLAGS=@CFLAGS@ @BIND_8_COMPAT@ @DEFS@
151b83f8
PH
8LDFLAGS=@LDFLAGS@
9CLIENT_SSL=@CLIENT_SSL@
10CLIENT_GNUTLS=@CLIENT_GNUTLS@
286b9d5f 11B64_GNUTLS=@B64_GNUTLS@
151b83f8
PH
12LOADED=@LOADED@
13LOADED_OPT=@LOADED_OPT@
a4ca1b01 14LIBS=@LIBS@
151b83f8 15
fa49e273 16SRC = @srcdir@/src
ad179014 17
151b83f8
PH
18##############################################################################
19
6481e125 20BINARIES = bin/cf bin/client $(CLIENT_SSL) $(CLIENT_GNUTLS) \
151b83f8 21 bin/checkaccess bin/fakens bin/fd bin/iefbr14 $(LOADED) \
286b9d5f
JH
22 bin/mtpscript bin/server bin/showids bin/locate \
23 $(B64_GNUTLS)
151b83f8 24
6481e125
JH
25# List of targets
26
27all: binaries sysbinaries
28
29binaries: $(BINARIES)
151b83f8 30
e7ae83be 31sysbinaries: FORCE binaries
50936073 32 bin/locate initdb postgres pg_ctl mysqld
3f783654 33 ls -la bin.sys
151b83f8
PH
34
35# Compile and link the programs:
36#
fa49e273 37# bin/cf a "compare" program
bbe15da8
PH
38# bin/checkaccess tests whether the exim uid/gid can access the files
39# bin/client an SMTP script-driven client, without TLS support
40# bin/client-gnutls ditto, with GnuTLS support
41# bin/client-ssl ditto, with OpenSSL support
4c04137d 42# bin/fakens a fake nameserver
bbe15da8
PH
43# bin/fd output details of open file descriptors
44# bin/iefbr14 a program that does nothing and returns 0
45# bin/loaded a dynamically loaded test module
46# bin/mtpscript an LMTP/SMTP "server" that works on stdin/stdout
47# bin/server an SMTP (socket) script-driven server (no TLS support)
48# bin/showids output current uid, gid, euid, egid
49
fa49e273
HSHR
50bin/cf: $(SRC)/cf.c Makefile
51 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf $(SRC)/cf.c
151b83f8 52
fa49e273
HSHR
53bin/client: $(SRC)/client.c Makefile
54 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client $(SRC)/client.c $(LIBS)
151b83f8 55
fa49e273
HSHR
56bin/client-gnutls: $(SRC)/client.c Makefile
57 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls $(SRC)/client.c -lgnutls -lgcrypt $(LIBS)
151b83f8 58
fa49e273
HSHR
59bin/client-ssl: $(SRC)/client.c Makefile
60 $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $(SRC)/client.c -lssl -lcrypto $(LIBS)
151b83f8 61
fa49e273
HSHR
62bin/checkaccess:$(SRC)/checkaccess.c Makefile
63 $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $(SRC)/checkaccess.c
151b83f8 64
fa49e273
HSHR
65bin/fakens: $(SRC)/fakens.c Makefile
66 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens $(SRC)/fakens.c $(LIBS)
151b83f8 67
fa49e273
HSHR
68bin/fd: $(SRC)/fd.c Makefile
69 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd $(SRC)/fd.c
151b83f8 70
fa49e273
HSHR
71bin/iefbr14: $(SRC)/iefbr14.c Makefile
72 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 $(SRC)/iefbr14.c
151b83f8 73
fa49e273
HSHR
74bin/loaded: $(SRC)/loaded.c Makefile
75 $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded $(SRC)/loaded.c
151b83f8 76
fa49e273
HSHR
77bin/mtpscript: $(SRC)/mtpscript.c Makefile
78 $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript $(SRC)/mtpscript.c
151b83f8 79
fa49e273
HSHR
80bin/server: $(SRC)/server.c Makefile
81 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server $(SRC)/server.c $(LIBS)
151b83f8 82
fa49e273
HSHR
83bin/showids: $(SRC)/showids.c Makefile
84 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids $(SRC)/showids.c
fa49e273 85
cc285a9f 86bin/locate: $(SRC)/locate.sh Makefile
50936073 87 cp $(SRC)/locate.pl bin/locate
e7ae83be 88 chmod 0755 bin/locate
cc285a9f 89
286b9d5f
JH
90bin/ed25519_privkey_pem_to_pubkey_raw_b64: $(SRC)/ed25519_privkey_pem_to_pubkey_raw_b64.c Makefile
91 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/ed25519_privkey_pem_to_pubkey_raw_b64 \
92 $(SRC)/ed25519_privkey_pem_to_pubkey_raw_b64.c -lgnutls -lgcrypt $(LIBS)
93
6481e125
JH
94clean:; rm -rf $(BINARIES) bin.sys
95
cc285a9f 96FORCE:
151b83f8
PH
97
98# End