include ../Include.make

ALL_FILES = caitsith_param_test caitsith_log_test caitsith_parser_test caitsith_audit2cond_test caitsith_lsm_test caitsith_wildcard_test

all: $(ALL_FILES)

#
# Tools for kernel testing.
#

BINDIR = '"'$(shell readlink -f /bin)'"'
POLDIR = '"/sys/kernel/security/caitsith"'
#POLDIR = '"/proc/caitsith"'

.c:
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DBINDIR=$(BINDIR) -DPOLDIR=$(POLDIR) -o $@ $<

#
# Delete all test programs.
#

clean:
	rm -f $(ALL_FILES)
