From e5a6c8fc44531e43ca0406082468c5b9a4ac2b4e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 1 Feb 2021 12:06:47 -0500 Subject: add top-level Makefile --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2b024ee --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +.POSIX: + +PRIVEXECBINDIR=/usr/local/bin +PRIVEXECDIR=/usr/local/lib/privexec +PRIVEXECGROUP=_privexec + +all: + cd check; make + cd exec; make + cd privexec; make + +install: all + mkdir -p $(PRIVEXECDIR) + cp -f check/check $(PRIVEXECDIR) + strip $(PRIVEXECDIR)/check + chown root:$(PRIVEXECGROUP) $(PRIVEXECDIR)/check + chmod 550 $(PRIVEXECDIR)/check + + cp -f exec/exec $(PRIVEXECDIR) + strip $(PRIVEXECDIR)/exec + chown root:$(PRIVEXECGROUP) $(PRIVEXECDIR)/exec + chmod 4550 $(PRIVEXECDIR)/exec + + cp -f privexec/privexec $(PRIVEXECBINDIR) + strip $(PRIVEXECBINDIR)/privexec + chown root:$(PRIVEXECGROUP) $(PRIVEXECBINDIR)/privexec + chmod 2555 $(PRIVEXECBINDIR)/privexec + +clean: + cd check; make clean + cd exec; make clean + cd privexec; make clean -- cgit v1.2.1