# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-DIRCFLAGS= -I../src
+srcdir= @srcdir@
+VPATH= @srcdir@
+
TARGETS= adnstest
+include $(srcdir)/../settings.make
-include ../settings.make
+DIRCFLAGS= -I$(srcdir)/../src
install: $(TARGETS)
- $(INSTALL_BIN) $(TARGETS) $(bin_dir)
+ set -xe; for f in $(TARGETS); \
+ do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done
+
+uninstall:
+ for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
-adnstest: adnstest.o ../dynamic/$(LIBFILE)
+adnstest: adnstest.o $(srcdir)/../dynamic/$(SHLIBFILE)