policycoreutils: Fix Makefile to match other policycoreutils Makefiles

Include -W
Set LDLIBS consistently (include -L$(LIBDIR))
Don't explicitly call $(CC) let make do it.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Dan Walsh 2011-12-05 14:05:39 -05:00 committed by Eric Paris
parent 5e46bb8647
commit c4c0748091

View File

@ -8,13 +8,13 @@ SBINDIR ?= $(PREFIX)/sbin
MANDIR ?= $(PREFIX)/share/man
LOCALEDIR ?= /usr/share/locale
SHAREDIR ?= $(PREFIX)/share/sandbox
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra
LDLIBS += -lcgroup -lselinux -lcap-ng
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DPACKAGE="\"policycoreutils\"" -Wall -Werror -Wextra -W
LDLIBS += -lcgroup -lselinux -lcap-ng -L$(LIBDIR)
SEUNSHARE_OBJS = seunshare.o
all: sandbox seunshare sandboxX.sh start
seunshare: seunshare.o $(EXTRA_OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) -L$(LIBDIR)
seunshare: $(SEUNSHARE_OBJS)
install: all
-mkdir -p $(BINDIR)