]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
except for the 'nothing-to-do' message behaviour is the same for all-static and ...
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Mon, 10 Apr 2006 08:35:17 +0000 (08:35 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Mon, 10 Apr 2006 08:35:17 +0000 (08:35 +0000)
examples/Makefile.in

index b2c819bec08613b096a2ed3155ea6e1f6d59c1da..9e93fc6e0116e8040521476a4a070bfd4b67bb27 100644 (file)
@@ -54,7 +54,11 @@ all-static:  $(PROGRAMS:=-stc)
        $(COMPILE) -o $@ $(srcdir)/$@.c
 
 %-stc:
-       $(CC) $(CPPFLAGS) $(CFLAGS) -lpcap -lcrypto -o $(@:-stc=) $(srcdir)/$(@:-stc=).c $(LDNSDIR)lib/libldns.a
+       @# can't mix implicit and static rules
+       @if [ $(srcdir)/$(@:-stc=).c -nt $(@:-stc=) ] ; then \
+               echo "$(CC) $(CPPFLAGS) $(CFLAGS) -lpcap -lcrypto -o $(@:-stc=) $(srcdir)/$(@:-stc=).c $(LDNSDIR)lib/libldns.a" ; \
+               $(CC) $(CPPFLAGS) $(CFLAGS) -lpcap -lcrypto -o $(@:-stc=) $(srcdir)/$(@:-stc=).c $(LDNSDIR)lib/libldns.a ; \
+       fi ;
 
 lint:
        echo off