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