Fix ldap option setting.
[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@
bbe15da8 7CFLAGS=@CFLAGS@ @BIND_8_COMPAT@
151b83f8
PH
8LDFLAGS=@LDFLAGS@
9CLIENT_SSL=@CLIENT_SSL@
10CLIENT_GNUTLS=@CLIENT_GNUTLS@
11LOADED=@LOADED@
12LOADED_OPT=@LOADED_OPT@
13
14##############################################################################
15
16# List of targets
17
18all: makebin bin/cf bin/client $(CLIENT_SSL) $(CLIENT_GNUTLS) \
19 bin/checkaccess bin/fakens bin/fd bin/iefbr14 $(LOADED) \
20 bin/mtpscript bin/server bin/showids
21
22# Ensure the bin directory exists
23
24makebin:; @if [ ! -e bin ] ; then mkdir bin 2>/dev/null; echo ""; fi
25
26# Compile and link the programs:
27#
bbe15da8
PH
28# bin/cf a "compare" program
29# bin/checkaccess tests whether the exim uid/gid can access the files
30# bin/client an SMTP script-driven client, without TLS support
31# bin/client-gnutls ditto, with GnuTLS support
32# bin/client-ssl ditto, with OpenSSL support
33# bin/fakens a fake namserver
34# bin/fd output details of open file descriptors
35# bin/iefbr14 a program that does nothing and returns 0
36# bin/loaded a dynamically loaded test module
37# bin/mtpscript an LMTP/SMTP "server" that works on stdin/stdout
38# bin/server an SMTP (socket) script-driven server (no TLS support)
39# bin/showids output current uid, gid, euid, egid
40
41bin/cf: src/cf.c Makefile
151b83f8
PH
42 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf src/cf.c
43 @echo ">>> bin/cf command build"
44 @echo " "
45
bbe15da8 46bin/client: src/client.c Makefile
151b83f8
PH
47 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client src/client.c
48 @echo ">>> bin/client command built"
49 @echo " "
50
bbe15da8 51bin/client-gnutls: src/client.c Makefile
0b7343d7 52 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls src/client.c -lgnutls -lgcrypt
151b83f8
PH
53 @echo ">>> bin/client-gnutls command built"
54 @echo " "
55
bbe15da8 56bin/client-ssl: src/client.c Makefile
0b7343d7 57 $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl src/client.c -lssl -lcrypto
151b83f8
PH
58 @echo ">>> bin/client-ssl command built"
59 @echo " "
60
bbe15da8 61bin/checkaccess:src/checkaccess.c Makefile
151b83f8
PH
62 $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess src/checkaccess.c
63 @echo ">>> bin/checkaccess command built"
64 @echo " "
65
bbe15da8 66bin/fakens: src/fakens.c Makefile
151b83f8
PH
67 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens src/fakens.c
68 @echo ">>> bin/fakens command built"
69 @echo " "
70
bbe15da8 71bin/fd: src/fd.c Makefile
151b83f8
PH
72 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd src/fd.c
73 @echo ">>> bin/fd command built"
74 @echo " "
75
bbe15da8 76bin/iefbr14: src/iefbr14.c Makefile
151b83f8
PH
77 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 src/iefbr14.c
78 @echo ">>> bin/iefbr14 command built"
79 @echo " "
80
bbe15da8 81bin/loaded: src/loaded.c Makefile
151b83f8
PH
82 $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded src/loaded.c
83 @echo ">>> bin/loaded command built"
84 @echo " "
85
bbe15da8 86bin/mtpscript: src/mtpscript.c Makefile
151b83f8
PH
87 $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript src/mtpscript.c
88 @echo ">>> bin/mtpscript command built"
89 @echo " "
90
bbe15da8 91bin/server: src/server.c Makefile
151b83f8
PH
92 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server src/server.c
93 @echo ">>> bin/server command built"
94 @echo " "
95
bbe15da8 96bin/showids: src/showids.c Makefile
151b83f8
PH
97 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids src/showids.c
98 @echo ">>> bin/showids command built"
99 @echo " "
bbe15da8
PH
100
101clean:; rm -rf bin/*
151b83f8
PH
102
103# End