chiark / gitweb /
Give install the '-c' flag (otherwise some delete the original !).
[adns.git] / client / Makefile.in
index 24a8a6e8e4a6a8fbe578dfe633a1d6d9fd834b51..c75d4d0c02d22ba0a9af66e003236a5524e0bbc9 100644 (file)
 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)
-               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)
+
+adnstest_s:    adnstest.o $(srcdir)/../src/libadns.a
+               $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)