1# Add your test source files here: 2SOURCES = $(sort $(wildcard *.c)) 3CILS = $(sort $(wildcard *.cil)) 4 5########################################################################### 6 7EXECUTABLE = libsemanage-tests 8CFLAGS += -g -O0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter 9override CFLAGS += -I../src -I../include 10override LDLIBS += -lcunit -lbz2 -laudit -lselinux -lsepol 11 12OBJECTS = $(SOURCES:.c=.o) 13POLICIES = $(CILS:.cil=.policy) 14 15all: $(EXECUTABLE) $(POLICIES) 16 17$(EXECUTABLE): $(OBJECTS) ../src/libsemanage.a 18 $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS) 19 20%.policy: %.cil 21 ../../secilc/secilc $*.cil -o $*.policy -f /dev/null 22 23clean distclean: 24 rm -rf $(OBJECTS) $(POLICIES) $(EXECUTABLE) 25 26test: all 27 ./$(EXECUTABLE) 28 29