summaryrefslogtreecommitdiff
path: root/test/Makefile.in
blob: fda4d5f64124d5902a2dcc47f11d99dc3df1367a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# This Makefile builds the support programs for the Exim test suite.

##############################################################################
# These variables are set by the configure script.

CC=@CC@
CFLAGS=@CFLAGS@ @BIND_8_COMPAT@
LDFLAGS=@LDFLAGS@
CLIENT_SSL=@CLIENT_SSL@
CLIENT_GNUTLS=@CLIENT_GNUTLS@
LOADED=@LOADED@
LOADED_OPT=@LOADED_OPT@

##############################################################################

# List of targets

all:            makebin bin/cf bin/client $(CLIENT_SSL) $(CLIENT_GNUTLS) \
                bin/checkaccess bin/fakens bin/fd bin/iefbr14 $(LOADED) \
                bin/mtpscript bin/server bin/showids

# Ensure the bin directory exists

makebin:;       @if [ ! -e bin ] ; then mkdir bin 2>/dev/null; echo ""; fi

# Compile and link the programs:
#
# bin/cf              a "compare" program 
# bin/checkaccess     tests whether the exim uid/gid can access the files
# bin/client          an SMTP script-driven client, without TLS support
# bin/client-gnutls   ditto, with GnuTLS support
# bin/client-ssl      ditto, with OpenSSL support
# bin/fakens          a fake namserver
# bin/fd              output details of open file descriptors
# bin/iefbr14         a program that does nothing and returns 0
# bin/loaded          a dynamically loaded test module
# bin/mtpscript       an LMTP/SMTP "server" that works on stdin/stdout
# bin/server          an SMTP (socket) script-driven server (no TLS support)
# bin/showids         output current uid, gid, euid, egid

bin/cf:         src/cf.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf src/cf.c
		@echo ">>> bin/cf command build"
		@echo " "

bin/client:     src/client.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/client src/client.c
		@echo ">>> bin/client command built"
		@echo " "

bin/client-gnutls: src/client.c Makefile
		$(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls src/client.c -lgnutls -lgcrypt
		@echo ">>> bin/client-gnutls command built"
		@echo " "

bin/client-ssl: src/client.c Makefile
		$(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl src/client.c -lssl -lcrypto
		@echo ">>> bin/client-ssl command built"
		@echo " "

bin/checkaccess:src/checkaccess.c Makefile
		$(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess src/checkaccess.c
		@echo ">>> bin/checkaccess command built"
		@echo " "

bin/fakens:     src/fakens.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens src/fakens.c
		@echo ">>> bin/fakens command built"
		@echo " "

bin/fd:         src/fd.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd src/fd.c
		@echo ">>> bin/fd command built"
		@echo " "

bin/iefbr14:    src/iefbr14.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 src/iefbr14.c
		@echo ">>> bin/iefbr14 command built"
		@echo " "

bin/loaded:     src/loaded.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded src/loaded.c
		@echo ">>> bin/loaded command built"
		@echo " "

bin/mtpscript:  src/mtpscript.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript src/mtpscript.c
		@echo ">>> bin/mtpscript command built"
		@echo " "

bin/server:     src/server.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/server src/server.c
		@echo ">>> bin/server command built"
		@echo " "

bin/showids:    src/showids.c Makefile
		$(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids src/showids.c
		@echo ">>> bin/showids command built"
		@echo " "
                
clean:;         rm -rf bin/* 

# End