summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-03-02 11:10:26 +0000
committerDavid Howells <dhowells@redhat.com>2011-03-02 11:10:26 +0000
commit8e43531657d946dad3d82af485cf65410fbcba72 (patch)
tree88eafc538e55c5f202ac9d37a64f114b353a1cc4 /Makefile
parent3b0246f150499dec19b7554fd9bf13113ea82f82 (diff)
downloadkeyutils-8e43531657d946dad3d82af485cf65410fbcba72.tar.gz
Build: Built programs should depend on build library
Programs build by this package should depend on the library built by this package as they're linked against it. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 46e960d..28bb030 100644
--- a/Makefile
+++ b/Makefile
@@ -75,10 +75,10 @@ keyutils.os: keyutils.c keyutils.h Makefile
$(CC) $(CFLAGS) -fPIC -o $@ -c $<
-keyctl: keyctl.c keyutils.h Makefile
+keyctl: keyctl.c keyutils.h Makefile -lkeyutils
$(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils
-request-key: request-key.c keyutils.h Makefile
+request-key: request-key.c keyutils.h Makefile -lkeyutils
$(CC) -L. $(CFLAGS) $(LDFLAGS) $(RPATH) -o $@ $< -lkeyutils