This repository has been archived on 2022-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
ocaml-cgroups2/examples/cp/Makefile

21 lines
398 B
Makefile
Raw Normal View History

2021-11-29 09:56:59 +00:00
C=clang
2022-01-31 14:03:27 +00:00
all: c cp_priv_sep c_cgroup ml
2021-11-29 09:56:59 +00:00
clean:
2022-01-31 14:03:27 +00:00
rm -f c cp_priv_sep c_cgroup ml
2021-11-29 09:56:59 +00:00
c: cp.c
${C} -o c cp.c
2022-01-31 14:03:27 +00:00
cp_priv_sep: cp_priv_sep.c ../../lib/clone3.c ../../include/clone3.h
${C} -I../../include -o cp_priv_sep cp_priv_sep.c ../../lib/clone3.c
sudo setcap CAP_SYS_ADMIN+eip ./cp_priv_sep
2021-12-13 13:33:22 +00:00
c_cgroup: cp_cgroup.c
${C} -o c_cgroup cp_cgroup.c
2021-11-29 09:56:59 +00:00
ml: cp.ml
opam switch default
ocamlopt -o ml cp.ml