Testsuite: allow --range <number> +
[users/heiko/exim.git] / test / Makefile.in
index 58affa2ba32289ee25210c52ca89e9d24f6415be..3d7810c8bbd4f47f9ee0f1a0e9ef65ada1111668 100644 (file)
@@ -1,16 +1,18 @@
-# $Cambridge: exim/test/Makefile.in,v 1.1 2006/02/06 16:07:10 ph10 Exp $
 # This Makefile builds the support programs for the Exim test suite.
 
 ##############################################################################
 # These variables are set by the configure script.
 
 CC=@CC@
 # This Makefile builds the support programs for the Exim test suite.
 
 ##############################################################################
 # These variables are set by the configure script.
 
 CC=@CC@
-CFLAGS=@CFLAGS@
+CFLAGS=@CFLAGS@ @BIND_8_COMPAT@ @DEFS@
 LDFLAGS=@LDFLAGS@
 CLIENT_SSL=@CLIENT_SSL@
 CLIENT_GNUTLS=@CLIENT_GNUTLS@
 LOADED=@LOADED@
 LOADED_OPT=@LOADED_OPT@
 LDFLAGS=@LDFLAGS@
 CLIENT_SSL=@CLIENT_SSL@
 CLIENT_GNUTLS=@CLIENT_GNUTLS@
 LOADED=@LOADED@
 LOADED_OPT=@LOADED_OPT@
+LIBS=@LIBS@
+
+SRC = @srcdir@/src
 
 ##############################################################################
 
 
 ##############################################################################
 
@@ -26,72 +28,79 @@ makebin:;       @if [ ! -e bin ] ; then mkdir bin 2>/dev/null; echo ""; fi
 
 # Compile and link the programs:
 #
 
 # Compile and link the programs:
 #
-# bin/client        is the SMTP script-driven client, without TLS support
-# bin/client-ssl    is with OpenSSL support
-#                   there isn't yet a version with GnuTLS support
-# bin/checkaccess   tests whether the exim uid/gid can access the files
-# bin/iefbr14       a program that does nothing and returns 0
-# bin/loaded        is a dynamically loaded test module
-# bin/server        is the SMTP script-driven server (no TLS support)
-
-bin/cf:         src/cf.c
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/cf src/cf.c
+# 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 nameserver
+# 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 " "
 
                @echo ">>> bin/cf command build"
                @echo " "
 
-bin/client:     src/client.c
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client src/client.c
+bin/client:     $(SRC)/client.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/client $(SRC)/client.c $(LIBS)
                @echo ">>> bin/client command built"
                @echo " "
 
                @echo ">>> bin/client command built"
                @echo " "
 
-bin/client-gnutls: src/client.c
-               $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -lgnutls -lgcrypt -o bin/client-gnutls src/client.c
+bin/client-gnutls: $(SRC)/client.c Makefile
+               $(CC) $(CFLAGS) -DHAVE_GNUTLS $(LDFLAGS) -o bin/client-gnutls $(SRC)/client.c -lgnutls -lgcrypt $(LIBS)
                @echo ">>> bin/client-gnutls command built"
                @echo " "
 
                @echo ">>> bin/client-gnutls command built"
                @echo " "
 
-bin/client-ssl: src/client.c
-               $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -lssl -lcrypto -o bin/client-ssl src/client.c
+bin/client-ssl: $(SRC)/client.c Makefile
+               $(CC) $(CFLAGS) -DHAVE_OPENSSL $(LDFLAGS) -o bin/client-ssl $(SRC)/client.c -lssl -lcrypto $(LIBS)
                @echo ">>> bin/client-ssl command built"
                @echo " "
 
                @echo ">>> bin/client-ssl command built"
                @echo " "
 
-bin/checkaccess:src/checkaccess.c
-               $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess src/checkaccess.c
+bin/checkaccess:$(SRC)/checkaccess.c Makefile
+               $(CC) $(CFLAGS) -DNO_TLS $(LDFLAGS) -o bin/checkaccess $(SRC)/checkaccess.c
                @echo ">>> bin/checkaccess command built"
                @echo " "
 
                @echo ">>> bin/checkaccess command built"
                @echo " "
 
-bin/fakens:     src/fakens.c
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens src/fakens.c
+bin/fakens:     $(SRC)/fakens.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fakens $(SRC)/fakens.c $(LIBS)
                @echo ">>> bin/fakens command built"
                @echo " "
 
                @echo ">>> bin/fakens command built"
                @echo " "
 
-bin/fd:         src/fd.c
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd src/fd.c
+bin/fd:         $(SRC)/fd.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/fd $(SRC)/fd.c
                @echo ">>> bin/fd command built"
                @echo " "
 
                @echo ">>> bin/fd command built"
                @echo " "
 
-bin/iefbr14:    src/iefbr14.c
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 src/iefbr14.c
+bin/iefbr14:    $(SRC)/iefbr14.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/iefbr14 $(SRC)/iefbr14.c
                @echo ">>> bin/iefbr14 command built"
                @echo " "
 
                @echo ">>> bin/iefbr14 command built"
                @echo " "
 
-bin/loaded:     src/loaded.c
-               $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded src/loaded.c
+bin/loaded:     $(SRC)/loaded.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) $(LOADED_OPT) -o bin/loaded $(SRC)/loaded.c
                @echo ">>> bin/loaded command built"
                @echo " "
 
                @echo ">>> bin/loaded command built"
                @echo " "
 
-bin/mtpscript:  src/mtpscript.c
-               $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript src/mtpscript.c
+bin/mtpscript:  $(SRC)/mtpscript.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) $(mtpscript_OPT) -o bin/mtpscript $(SRC)/mtpscript.c
                @echo ">>> bin/mtpscript command built"
                @echo " "
 
                @echo ">>> bin/mtpscript command built"
                @echo " "
 
-bin/server:     src/server.c
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server src/server.c
+bin/server:     $(SRC)/server.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/server $(SRC)/server.c $(LIBS)
                @echo ">>> bin/server command built"
                @echo " "
 
                @echo ">>> bin/server command built"
                @echo " "
 
-bin/showids:    src/showids.c 
-               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids src/showids.c
+bin/showids:    $(SRC)/showids.c Makefile
+               $(CC) $(CFLAGS) $(LDFLAGS) -o bin/showids $(SRC)/showids.c
                @echo ">>> bin/showids command built"
                @echo " "
 
                @echo ">>> bin/showids command built"
                @echo " "
 
+clean:;         rm -rf bin/*
+
 # End
 # End