+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= ../src/libadns.a
+
+ifeq ($(ENABLE_DYNAMIC),elf)
+DYNAMIC_DEP= ../dynamic/$(SHLIBFILE)
+DYNAMIC_LINK= -L../dynamic -ladns
+DYNAMIC_SUFFIX= _s
+else
+DYNAMIC_DEP= $(STATIC_LIB)
+DYNAMIC_LINK= $(STATIC_LIB)
+DYNAMIC_SUFFIX=
+endif
+