Changes from Tony Finch: poll-using option and bugfix for adnslogres;
[adns] / client / Makefile.in
index 24a8a6e..c03b493 100644 (file)
 srcdir=                @srcdir@
 VPATH=         @srcdir@
 
-TARGETS=       adnstest
+PROGRAMS=      adnstest adnslogres adnshost
+TARG_INSTALL=  $(PROGRAMS)
+TARG_LOCAL=    $(addsuffix _s, $(PROGRAMS))
+TARGETS=       $(TARG_LOCAL) $(TARG_INSTALL)
 include                $(srcdir)/../settings.make
 
 DIRCFLAGS=     -I$(srcdir)/../src
 
-install:       $(TARGETS)
-               set -xe; for f in $(TARGETS); \
+all:           $(TARGETS)
+
+install:       $(TARG_INSTALL)
+               set -xe; for f in $(TARG_INSTALL); \
                        do $(INSTALL_PROGRAM) $$f $(bin_dir)/$$f; done
 
 uninstall:
                for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
 
-adnstest:      adnstest.o $(srcdir)/../dynamic/$(SHLIBFILE)
+%:             %.o $(srcdir)/../dynamic/$(SHLIBFILE)
+               $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)
+
+%_s:           %.o $(srcdir)/../src/libadns.a
+               $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)