diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2008-10-19 19:14:08 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2008-10-19 19:14:08 -0700 |
commit | 100d8e3ab0eb44b0def28d6f5e858dbc6398ec6c (patch) | |
tree | 306a067012633920ac443c7a55f05bf7abceeb0c /progs/Makefile | |
parent | 21291c2860ca09426cefcb04ceaa5139add06895 (diff) | |
download | libcap2-100d8e3ab0eb44b0def28d6f5e858dbc6398ec6c.tar.gz |
Add an example program to verify that a file has specific capabilities.
This program is not installed by default. Its more of a code sample
to help folk trying to put such checks into other programs (package
managers for example).
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'progs/Makefile')
-rw-r--r-- | progs/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/progs/Makefile b/progs/Makefile index a8e0e53..3f66a38 100644 --- a/progs/Makefile +++ b/progs/Makefile @@ -5,13 +5,14 @@ include $(topdir)/Make.Rules # Programs: all of the examples that we will compile # PROGS=getpcaps getcap setcap capsh +BUILD=$(PROGS) verify-caps LDFLAGS += --static LDLIBS += -lcap -all: $(PROGS) +all: $(BUILD) -$(PROGS): %: %.o +$(BUILD): %: %.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) %.o: %.c $(INCS) @@ -25,4 +26,4 @@ install: all clean: $(LOCALCLEAN) - rm -f *.o $(PROGS) tcapsh ping + rm -f *.o $(BUILD) tcapsh ping |