2000-06-15 19:28:21 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2000-04-17 11:36:29 +00:00
|
|
|
# $Id$
|
|
|
|
|
2000-04-13 09:19:23 +00:00
|
|
|
bin_PROGRAMS = echoping
|
2000-06-15 19:28:21 +00:00
|
|
|
man_MANS = echoping.1
|
2000-09-27 05:38:29 +00:00
|
|
|
echoping_SOURCES = echoping.c error.c readline.c writen.c util.c http.c icp.c HTParse.c echoping.h icp.h HTParse.h smtp.c
|
2000-04-13 09:19:23 +00:00
|
|
|
echoping_LDADD =
|
2000-06-30 09:44:24 +00:00
|
|
|
DOCS=DETAILS
|
2000-04-13 09:19:23 +00:00
|
|
|
|
2001-03-16 15:07:47 +00:00
|
|
|
TESTS=test-echoping-local test-echoping-remote
|
2002-10-03 20:27:09 +00:00
|
|
|
MORE_TESTS=test-echoping-proxy test-echoping-icp test-echoping-crypto test-echoping-tos test-echoping-ipv6
|
2000-06-25 14:23:00 +00:00
|
|
|
|
|
|
|
test: check
|
|
|
|
tests: check
|
|
|
|
|
2001-03-16 15:07:47 +00:00
|
|
|
fulltest: test moretest
|
|
|
|
|
|
|
|
moretests: moretest
|
|
|
|
moretest: $(MORE_TESTS)
|
|
|
|
@failed=0; all=0; \
|
|
|
|
srcdir=$(srcdir); export srcdir; \
|
|
|
|
for tst in $(MORE_TESTS); do \
|
|
|
|
if test -f $$tst; then dir=.; \
|
|
|
|
else dir="$(srcdir)"; fi; \
|
|
|
|
if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
|
|
|
|
all=`expr $$all + 1`; \
|
|
|
|
echo "PASS: $$tst"; \
|
|
|
|
elif test $$? -ne 77; then \
|
|
|
|
all=`expr $$all + 1`; \
|
|
|
|
failed=`expr $$failed + 1`; \
|
|
|
|
echo "FAIL: $$tst"; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
if test "$$failed" -eq 0; then \
|
|
|
|
banner="All $$all tests passed"; \
|
|
|
|
else \
|
|
|
|
banner="$$failed of $$all tests failed"; \
|
|
|
|
fi; \
|
|
|
|
dashes=`echo "$$banner" | sed s/./=/g`; \
|
|
|
|
echo "$$dashes"; \
|
|
|
|
echo "$$banner"; \
|
|
|
|
echo "$$dashes"; \
|
|
|
|
test "$$failed" -eq 0
|
|
|
|
|
2002-09-25 13:00:29 +00:00
|
|
|
internal_test: internal_tests
|
|
|
|
internal_tests: internal_tests.o $(echoping_OBJECTS)
|
|
|
|
$(CC) $(LDFLAGS) -o $@ $< util.o
|
|
|
|
./internal_tests
|
|
|
|
|
2001-03-11 12:49:53 +00:00
|
|
|
debug:
|
2002-10-03 14:59:37 +00:00
|
|
|
$(MAKE) DEBUG=1 CFLAGS='-g -O0'
|
2001-03-11 12:49:53 +00:00
|
|
|
|
2001-01-26 10:30:50 +00:00
|
|
|
upload: dist
|
2001-01-26 14:39:32 +00:00
|
|
|
@echo "Have you updated ChangeLog and tagged (cvs tag RELEASE_x_x_x) everything?"
|
2001-01-26 10:30:50 +00:00
|
|
|
@echo "If so, make upload-force"
|
|
|
|
|
|
|
|
upload-force: dist
|
2002-10-10 11:16:51 +00:00
|
|
|
scp $(distdir).tar.gz bortzmeyer@ftp.internatif.org:'~ftp/pub/unix/echoping'
|
2001-02-14 10:13:18 +00:00
|
|
|
rm -f upload.log
|
2001-01-26 10:30:50 +00:00
|
|
|
ncftpput -d upload.log upload.sourceforge.net /incoming $(distdir).tar.gz
|
|
|
|
|
2003-11-09 21:05:50 +00:00
|
|
|
realclean: clean
|
|
|
|
rm -f *~
|
|
|
|
|
2000-11-06 13:30:41 +00:00
|
|
|
EXTRA_DIST = $(man_MANS) $(TESTS) $(DOCS) $(MORE_TESTS)
|
2000-06-25 18:55:56 +00:00
|
|
|
|
2000-06-15 19:28:21 +00:00
|
|
|
## Otherwise, we depend on GNUmake, but for CVS users, not for regular
|
|
|
|
## tarball users
|
|
|
|
##AUTOMAKE_OPTIONS = no-dependencies
|
|
|
|
|
|
|
|
|
|
|
|
|