CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
-LIBS = @LIBS@ @LIBSSL@
+LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@
LDFLAGS = @LDFLAGS@
#
infodir='$(infodir)' mandir='$(mandir)' manext='$(manext)'
# subdirectories in the distribution
-SUBDIRS = src doc po util windows
+SUBDIRS = src doc po tests util windows
# default target
all: src/config.h Makefile $(SUBDIRS)
+unittest: src/config.h Makefile
+ cd tests && $(MAKE) $(TESTDEFS) $@
+
check: all
$(SUBDIRS): FORCE
DISTFILES: FORCE
rm -rf $(DISTNAME)
(cd $(srcdir); find . ! -type d -print) \
- | sed '/\/\(CVS\|RCS\)\//d; \
- /$@/d; \
- /\.tar.*/d; \
- s/^.\///; /^\.$$/d;' \
+ | sed '/\/\(CVS\|RCS\)\//d; /$@/d; /\.tar.*/d; s/^.\///; /^\.$$/d;' \
| sort | uniq > $@
#
clean-top:
$(RM) *~ *.bak $(DISTNAME).tar.gz
- $(RM) -r .libs
distclean-top: clean-top
$(RM) Makefile config.status config.log config.cache libtool stamp-h