1 # $Cambridge: exim/test/Makefile.in,v 1.1 2006/02/06 16:07:10 ph10 Exp $
2 # This Makefile builds the support programs for the Exim test suite.
4 ##############################################################################
5 # These variables are set by the configure script.
10 CLIENT_SSL=@CLIENT_SSL@
11 CLIENT_GNUTLS=@CLIENT_GNUTLS@
13 LOADED_OPT=@LOADED_OPT@
15 ##############################################################################
19 all: 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
23 # Ensure the bin directory exists
25 makebin:; @if [ ! -e bin ] ; then mkdir bin 2>/dev/null; echo ""; fi
27 # Compile and link the programs:
29 # bin/client is the SMTP script-driven client, without TLS support
30 # bin/client-ssl is with OpenSSL support
31 # there isn't yet a version with GnuTLS support
32 # bin/checkaccess tests whether the exim uid/gid can access the files
33 # bin/iefbr14 a program that does nothing and returns 0
34 # bin/loaded is a dynamically loaded test module
35 # bin/server is the SMTP script-driven server (no TLS support)
38 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf src/cf.c
39 @echo ">>> bin/cf command build"
42 bin/client: src/client.c
43 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client src/client.c
44 @echo ">>> bin/client command built"
47 bin/client-gnutls: src/client.c
48 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -lgnutls -lgcrypt -o bin/client-gnutls src/client.c
49 @echo ">>> bin/client-gnutls command built"
52 bin/client-ssl: src/client.c
53 $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -lssl -lcrypto -o bin/client-ssl src/client.c
54 @echo ">>> bin/client-ssl command built"
57 bin/checkaccess:src/checkaccess.c
58 $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess src/checkaccess.c
59 @echo ">>> bin/checkaccess command built"
62 bin/fakens: src/fakens.c
63 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens src/fakens.c
64 @echo ">>> bin/fakens command built"
68 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd src/fd.c
69 @echo ">>> bin/fd command built"
72 bin/iefbr14: src/iefbr14.c
73 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 src/iefbr14.c
74 @echo ">>> bin/iefbr14 command built"
77 bin/loaded: src/loaded.c
78 $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded src/loaded.c
79 @echo ">>> bin/loaded command built"
82 bin/mtpscript: src/mtpscript.c
83 $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript src/mtpscript.c
84 @echo ">>> bin/mtpscript command built"
87 bin/server: src/server.c
88 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server src/server.c
89 @echo ">>> bin/server command built"
92 bin/showids: src/showids.c
93 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids src/showids.c
94 @echo ">>> bin/showids command built"