Home | History | Annotate | Download | only in tests
      1 # Add your test source files here:
      2 SOURCES = $(sort $(wildcard *.c))
      3 
      4 ###########################################################################
      5 
      6 EXECUTABLE = libsemanage-tests
      7 CFLAGS += -g -O0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter
      8 override CFLAGS += -I../src -I../include
      9 override LDLIBS += -lcunit -lbz2 -laudit -lselinux -lsepol
     10 
     11 OBJECTS = $(SOURCES:.c=.o) 
     12 
     13 all: $(EXECUTABLE) 
     14 
     15 $(EXECUTABLE): $(OBJECTS) ../src/libsemanage.a
     16 	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
     17 
     18 clean distclean: 
     19 	rm -rf $(OBJECTS) $(EXECUTABLE)
     20 
     21 test: all 
     22 	./$(EXECUTABLE)
     23 
     24