apparmor/tests/stress/subdomain/Makefile
Steve Beattie 6d3e74907d Import the rest of the core functionality of the internal apparmor
development tree (trunk branch). From svn repo version 6381.
2006-04-11 21:52:54 +00:00

24 lines
542 B
Makefile

TARGETS=change_hat child open
PROFILES=change_hat.profile child.profile open.profile sh.profile
LIB:=$(shell if [ `ls /lib/apparmor* 2>/dev/null` ] ; then echo "apparmor" ; else echo "immunix" ; fi)
LIBS=-l$(LIB)
all: targets profiles
targets: $(TARGETS)
profiles:
for i in $(PROFILES) ;\
do \
sed "s~BASE~$$PWD~" $$i.pre | sed "s/AA/${LIB}/" > $$i ;\
done
change_hat: change_hat.c
cc -Wall -o $@ $< $(LIBS)
child: child.c
cc -Wall -o $@ $< $(LIBS)
open: open.c
cc -Wall -o $@ $< $(LIBS)
clean:
rm -f $(TARGETS) $(PROFILES)