+PROGS_SYSDEP= @PROGS_HAVE_TSEARCH@
+ENABLE_DYNAMIC= @ENABLE_DYNAMIC@
+
+PROGRAMS= adnslogres adnsheloex adnshost $(PROGS_SYSDEP)
+PROGRAMS_LOCAL= fanftest adnstest
+PROGRAMS_ALL= $(PROGRAMS) $(PROGRAMS_LOCAL)
+
+STATIC_LIB= $(ADNSDIR)/libadns.a
+
+ifeq ($(ENABLE_DYNAMIC),elf)
+DYNAMIC_DEP= $(srcdir)/../dynamic/$(SHLIBFILE)
+DYNAMIC_LINK= -L$(srcdir)/../dynamic -ladns
+DYNAMIC_SUFFIX= _s
+else
+DYNAMIC_DEP= $(STATIC_LIB)
+DYNAMIC_LINK= $(STATIC_LIB)
+DYNAMIC_SUFFIX=
+endif
+
+TARG_INSTALL= $(PROGRAMS)
+TARG_LOCAL= $(addsuffix $(DYNAMIC_SUFFIX), $(PROGRAMS_ALL))