# Installation directories.
PREFIX ?= /usr/local/selinux
BINDIR ?= $(PREFIX)/bin

# libattr library and include directories, if not in /usr/lib and /usr/include.
LIBATTRDIR ?= /usr/local/lib
LIBATTRINC ?= /usr/local/include

# libselinux library and include directories.
# Pull from the local copy unless you separately installed libselinux first.
LIBSELDIR ?= ../libselinux/src
LIBSELINC ?= ../libselinux/include

CFLAGS ?= -Wall -I$(LIBSELINC) -I$(LIBATTRINC)
LDFLAGS ?= -L$(LIBSELDIR) -L$(LIBATTRDIR)
LDLIBS ?= -lselinux -lattr

TARGETS=$(patsubst %.c,%,$(wildcard *.c))

all: $(TARGETS)

install: all
	-mkdir -p $(BINDIR)
	install -m 755 $(TARGETS) $(BINDIR)

clean:
	rm -f $(TARGETS) *.o 

relabel:

