OpenSSL: fix build on earlier library versions
[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@
be4bdb96 7CFLAGS=@CFLAGS@ @CPPFLAGS@ @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
fa49e273 15SRC = @srcdir@/src
ad179014 16
151b83f8
PH
17##############################################################################
18
6481e125 19BINARIES = bin/cf bin/client $(CLIENT_SSL) $(CLIENT_GNUTLS) \
151b83f8 20 bin/checkaccess bin/fakens bin/fd bin/iefbr14 $(LOADED) \
2a9d222a 21 bin/mtpscript bin/server bin/showids bin/locate
151b83f8 22
6481e125
JH
23# List of targets
24
25all: binaries sysbinaries
26
27binaries: $(BINARIES)
151b83f8 28
e7ae83be 29sysbinaries: FORCE binaries
50936073 30 bin/locate initdb postgres pg_ctl mysqld
3f783654 31 ls -la bin.sys
151b83f8
PH
32
33# Compile and link the programs:
34#
fa49e273 35# bin/cf a "compare" program
bbe15da8
PH
36# bin/checkaccess tests whether the exim uid/gid can access the files
37# bin/client an SMTP script-driven client, without TLS support
38# bin/client-gnutls ditto, with GnuTLS support
39# bin/client-ssl ditto, with OpenSSL support
4c04137d 40# bin/fakens a fake nameserver
bbe15da8
PH
41# bin/fd output details of open file descriptors
42# bin/iefbr14 a program that does nothing and returns 0
43# bin/loaded a dynamically loaded test module
44# bin/mtpscript an LMTP/SMTP "server" that works on stdin/stdout
45# bin/server an SMTP (socket) script-driven server (no TLS support)
46# bin/showids output current uid, gid, euid, egid
47
fa49e273
HSHR
48bin/cf: $(SRC)/cf.c Makefile
49 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf $(SRC)/cf.c
151b83f8 50
fa49e273
HSHR
51bin/client: $(SRC)/client.c Makefile
52 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client $(SRC)/client.c $(LIBS)
151b83f8 53
fa49e273
HSHR
54bin/client-gnutls: $(SRC)/client.c Makefile
55 $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls $(SRC)/client.c -lgnutls -lgcrypt $(LIBS)
151b83f8 56
fa49e273
HSHR
57bin/client-ssl: $(SRC)/client.c Makefile
58 $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $(SRC)/client.c -lssl -lcrypto $(LIBS)
151b83f8 59
fa49e273
HSHR
60bin/checkaccess:$(SRC)/checkaccess.c Makefile
61 $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $(SRC)/checkaccess.c
151b83f8 62
fa49e273
HSHR
63bin/fakens: $(SRC)/fakens.c Makefile
64 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens $(SRC)/fakens.c $(LIBS)
151b83f8 65
fa49e273
HSHR
66bin/fd: $(SRC)/fd.c Makefile
67 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd $(SRC)/fd.c
151b83f8 68
fa49e273
HSHR
69bin/iefbr14: $(SRC)/iefbr14.c Makefile
70 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 $(SRC)/iefbr14.c
151b83f8 71
fa49e273
HSHR
72bin/loaded: $(SRC)/loaded.c Makefile
73 $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded $(SRC)/loaded.c
151b83f8 74
fa49e273
HSHR
75bin/mtpscript: $(SRC)/mtpscript.c Makefile
76 $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript $(SRC)/mtpscript.c
151b83f8 77
fa49e273
HSHR
78bin/server: $(SRC)/server.c Makefile
79 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server $(SRC)/server.c $(LIBS)
151b83f8 80
fa49e273
HSHR
81bin/showids: $(SRC)/showids.c Makefile
82 $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids $(SRC)/showids.c
fa49e273 83
cc285a9f 84bin/locate: $(SRC)/locate.sh Makefile
50936073 85 cp $(SRC)/locate.pl bin/locate
e7ae83be 86 chmod 0755 bin/locate
cc285a9f 87
6481e125
JH
88clean:; rm -rf $(BINARIES) bin.sys
89
cc285a9f 90FORCE:
151b83f8
PH
91
92# End