.PHONY: all clean install uninstall PROTOBUF=/usr/include/ STARTER=starter GEN=gen SRCS=$(STARTER)/cgroup_prepare.c $(STARTER)/ns_exec.c $(STARTER)/util.c $(STARTER)/starter.c all: proto $(STARTER)/alpine-make-rootfs $(STARTER)/minrootfs $(STARTER)/starter proto: /usr/include/google/protobuf/empty.proto proto/runner/v1/runner.proto mkdir -p $(GEN) protoc --c_out=$(GEN) runner/v1/runner.proto -I proto protoc --c_out=$(GEN) google/protobuf/empty.proto -I $(PROTOBUF) $(STARTER)/alpine-make-rootfs: git clone https://github.com/alpinelinux/alpine-make-rootfs starter/alpine-make-rootfs $(STARTER)/minrootfs: $(STARTER)/create_rootfs.sh $(STARTER)/create_rootfs.sh $(STARTER)/starter: proto $(STARTER)/starter.c $(STARTER)/cgroup_prepare.c $(STARTER)/ns_exec.c Makefile $(CC) -o $(STARTER)/starter $(SRCS) -g -fsanitize=address -fsanitize=leak -fno-omit-frame-pointer -lrabbitmq -lprotobuf-c -I gen #$(CC) $(STARTER)/starter.c -o $(STARTER)/starter