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