# client/Makefile - client program(s) Makefile
#
-# This file is part of adns, which is Copyright (C) 1997, 1998 Ian Jackson
+# This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
srcdir= @srcdir@
VPATH= @srcdir@
-TARGETS= adnstest
+TARG_LOCAL= adnstest_s
+TARG_INSTALL= adnstest
+TARGETS= $(TARG_LOCAL) $(TARG_INSTALL)
include $(srcdir)/../settings.make
DIRCFLAGS= -I$(srcdir)/../src
-install: $(TARGETS)
+all: $(TARGETS)
+
+install: $(TARG_INSTALL)
set -xe; for f in $(TARGETS); \
do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done
for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
adnstest: adnstest.o $(srcdir)/../dynamic/$(SHLIBFILE)
+
+adnstest_s: adnstest.o $(srcdir)/../src/libadns.a
+ $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)