16cd6a6acSopenharmony_ci# Installation directories. 26cd6a6acSopenharmony_ciPREFIX ?= /usr 36cd6a6acSopenharmony_ciBINDIR ?= $(PREFIX)/bin 46cd6a6acSopenharmony_ci 56cd6a6acSopenharmony_ciCFLAGS ?= -Wall -Werror 66cd6a6acSopenharmony_cioverride CFLAGS += -I../include 76cd6a6acSopenharmony_cioverride LDFLAGS += -L../src 86cd6a6acSopenharmony_cioverride LDLIBS += -lsepol 96cd6a6acSopenharmony_ci 106cd6a6acSopenharmony_ciTARGETS=$(patsubst %.c,%,$(sort $(wildcard *.c))) 116cd6a6acSopenharmony_ci 126cd6a6acSopenharmony_ciall: $(TARGETS) 136cd6a6acSopenharmony_ci 146cd6a6acSopenharmony_ciinstall: all 156cd6a6acSopenharmony_ci -mkdir -p $(DESTDIR)$(BINDIR) 166cd6a6acSopenharmony_ci install -m 755 $(TARGETS) $(DESTDIR)$(BINDIR) 176cd6a6acSopenharmony_ci 186cd6a6acSopenharmony_ciclean: 196cd6a6acSopenharmony_ci -rm -f $(TARGETS) *.o 206cd6a6acSopenharmony_ci 216cd6a6acSopenharmony_ciindent: 226cd6a6acSopenharmony_ci ../../scripts/Lindent $(wildcard *.[ch]) 236cd6a6acSopenharmony_ci 246cd6a6acSopenharmony_cirelabel: 256cd6a6acSopenharmony_ci 26