summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
authorTorsten Werner <twerner@debian.org>2009-09-30 21:23:15 +0200
committerAndrew G. Morgan <morgan@kernel.org>2010-08-08 15:26:04 -0700
commit7ebd7c568c94a8e617aaf2a00a0b4b097bc910ff (patch)
tree10e876fa33e7ed1de8f06cd3a02fbb4248eaf5d3 /progs
parent03134f14a65bae774899ade233a70a5c33f97110 (diff)
downloadlibcap2-7ebd7c568c94a8e617aaf2a00a0b4b097bc910ff.tar.gz
fix Makefiles
This patch allows modifications of $(CFLAGS) when invoking make and fixes some library linking issues. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'progs')
-rw-r--r--progs/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/Makefile b/progs/Makefile
index a1542dc..8000a91 100644
--- a/progs/Makefile
+++ b/progs/Makefile
@@ -14,7 +14,7 @@ BUILD=$(PROGS)
ifneq ($(DYNAMIC),yes)
LDFLAGS += --static
endif
-LDLIBS += -lcap
+LDLIBS += -L../libcap -lcap
all: $(BUILD)
@@ -22,7 +22,7 @@ $(BUILD): %: %.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
%.o: %.c $(INCS)
- $(CC) $(CFLAGS) -c $< -o $@
+ $(CC) $(IPATH) $(CFLAGS) -c $< -o $@
install: all
mkdir -p -m 0755 $(SBINDIR)