mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 17:31:01 +01:00
24 lines
453 B
Makefile
24 lines
453 B
Makefile
TARGETS=change_hat child open
|
|
PROFILES=change_hat.profile child.profile open.profile sh.profile
|
|
LIB:=apparmor
|
|
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)
|