exiqgrep: handle queue line size output too small for K
[exim.git] / test / Makefile.in
1 # This Makefile builds the support programs for the Exim test suite.
2
3 ##############################################################################
4 # These variables are set by the configure script.
5
6 CC=@CC@
7 CFLAGS=@CFLAGS@ @BIND_8_COMPAT@
8 LDFLAGS=@LDFLAGS@
9 CLIENT_SSL=@CLIENT_SSL@
10 CLIENT_GNUTLS=@CLIENT_GNUTLS@
11 LOADED=@LOADED@
12 LOADED_OPT=@LOADED_OPT@
13
14 ##############################################################################
15
16 # List of targets
17
18 all:            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
24 makebin:;       @if [ ! -e bin ] ; then mkdir bin 2>/dev/null; echo ""; fi
25
26 # Compile and link the programs:
27 #
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
41 bin/cf:         src/cf.c Makefile
42                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf src/cf.c
43                 @echo ">>> bin/cf command build"
44                 @echo " "
45
46 bin/client:     src/client.c Makefile
47                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client src/client.c
48                 @echo ">>> bin/client command built"
49                 @echo " "
50
51 bin/client-gnutls: src/client.c Makefile
52                 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -lgnutls -lgcrypt -o bin/client-gnutls src/client.c
53                 @echo ">>> bin/client-gnutls command built"
54                 @echo " "
55
56 bin/client-ssl: src/client.c Makefile
57                 $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -lssl -lcrypto -o bin/client-ssl src/client.c
58                 @echo ">>> bin/client-ssl command built"
59                 @echo " "
60
61 bin/checkaccess:src/checkaccess.c Makefile
62                 $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess src/checkaccess.c
63                 @echo ">>> bin/checkaccess command built"
64                 @echo " "
65
66 bin/fakens:     src/fakens.c Makefile
67                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens src/fakens.c
68                 @echo ">>> bin/fakens command built"
69                 @echo " "
70
71 bin/fd:         src/fd.c Makefile
72                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd src/fd.c
73                 @echo ">>> bin/fd command built"
74                 @echo " "
75
76 bin/iefbr14:    src/iefbr14.c Makefile
77                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 src/iefbr14.c
78                 @echo ">>> bin/iefbr14 command built"
79                 @echo " "
80
81 bin/loaded:     src/loaded.c Makefile
82                 $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded src/loaded.c
83                 @echo ">>> bin/loaded command built"
84                 @echo " "
85
86 bin/mtpscript:  src/mtpscript.c Makefile
87                 $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript src/mtpscript.c
88                 @echo ">>> bin/mtpscript command built"
89                 @echo " "
90
91 bin/server:     src/server.c Makefile
92                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server src/server.c
93                 @echo ">>> bin/server command built"
94                 @echo " "
95
96 bin/showids:    src/showids.c Makefile
97                 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids src/showids.c
98                 @echo ">>> bin/showids command built"
99                 @echo " "
100                 
101 clean:;         rm -rf bin/* 
102
103 # End