Blame libselinux/utils/Makefile
|
Chris PeBenito |
473ea7 |
# Installation directories.
|
|
Chris PeBenito |
473ea7 |
PREFIX ?= $(DESTDIR)/usr
|
|
Chris PeBenito |
473ea7 |
BINDIR ?= $(PREFIX)/sbin
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
CFLAGS ?= -Wall
|
|
Chris PeBenito |
473ea7 |
override CFLAGS += -I../include -D_GNU_SOURCE
|
|
Chris PeBenito |
473ea7 |
LDLIBS += -L../src -lselinux
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
all: $(TARGETS)
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
install: all
|
|
Chris PeBenito |
473ea7 |
-mkdir -p $(BINDIR)
|
|
Chris PeBenito |
473ea7 |
install -m 755 $(TARGETS) $(BINDIR)
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
clean:
|
|
Chris PeBenito |
473ea7 |
rm -f $(TARGETS) *.o
|
|
Chris PeBenito |
473ea7 |
|
|
Chris PeBenito |
473ea7 |
relabel:
|
|
Chris PeBenito |
473ea7 |
|