Testsuite: Better platform portability by searching for Postgres server binaries
[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@ @DEFS@
8 LDFLAGS=@LDFLAGS@
9 CLIENT_SSL=@CLIENT_SSL@
10 CLIENT_GNUTLS=@CLIENT_GNUTLS@
11 LOADED=@LOADED@
12 LOADED_OPT=@LOADED_OPT@
13 LIBS=@LIBS@
14
15 SRC = @srcdir@/src
16
17 ##############################################################################
18
19 BINARIES = 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 # List of targets
24
25 all: binaries sysbinaries
26
27 binaries: $(BINARIES)
28
29 sysbinaries: FRC
30 bin/locate.sh initdb postgres
31
32 # Compile and link the programs:
33 #
34 # bin/cf a "compare" program
35 # bin/checkaccess tests whether the exim uid/gid can access the files
36 # bin/client an SMTP script-driven client, without TLS support
37 # bin/client-gnutls ditto, with GnuTLS support
38 # bin/client-ssl ditto, with OpenSSL support
39 # bin/fakens a fake nameserver
40 # bin/fd output details of open file descriptors
41 # bin/iefbr14 a program that does nothing and returns 0
42 # bin/loaded a dynamically loaded test module
43 # bin/mtpscript an LMTP/SMTP "server" that works on stdin/stdout
44 # bin/server an SMTP (socket) script-driven server (no TLS support)
45 # bin/showids output current uid, gid, euid, egid
46
47 bin/cf: $(SRC)/cf.c Makefile
48 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf $(SRC)/cf.c
49
50 bin/client: $(SRC)/client.c Makefile
51 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client $(SRC)/client.c $(LIBS)
52
53 bin/client-gnutls: $(SRC)/client.c Makefile
54 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls $(SRC)/client.c -lgnutls -lgcrypt $(LIBS)
55
56 bin/client-ssl: $(SRC)/client.c Makefile
57 $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $(SRC)/client.c -lssl -lcrypto $(LIBS)
58
59 bin/checkaccess:$(SRC)/checkaccess.c Makefile
60 $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $(SRC)/checkaccess.c
61
62 bin/fakens: $(SRC)/fakens.c Makefile
63 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens $(SRC)/fakens.c $(LIBS)
64
65 bin/fd: $(SRC)/fd.c Makefile
66 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd $(SRC)/fd.c
67
68 bin/iefbr14: $(SRC)/iefbr14.c Makefile
69 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 $(SRC)/iefbr14.c
70
71 bin/loaded: $(SRC)/loaded.c Makefile
72 $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded $(SRC)/loaded.c
73
74 bin/mtpscript: $(SRC)/mtpscript.c Makefile
75 $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript $(SRC)/mtpscript.c
76
77 bin/server: $(SRC)/server.c Makefile
78 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server $(SRC)/server.c $(LIBS)
79
80 bin/showids: $(SRC)/showids.c Makefile
81 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids $(SRC)/showids.c
82
83 clean:; rm -rf $(BINARIES) bin.sys
84
85 FRC:
86
87 # End