Added support for CLI style commands

This commit is contained in:
2024-02-16 17:13:52 +01:00
parent ba07fd7968
commit 2c0dd8d9ab
6 changed files with 168 additions and 51 deletions

View File

@@ -6,20 +6,16 @@ CF = -Wall -lkrb5 -lvirt -ljson-c -g
# ---- ---- #
build: $(shell find . -name "*.c") $(shell find . -name "*.h")
@echo "Building sandbox..."
@mkdir -p bin
@$(CC) $(CF) -o ./bin/sandbox $(shell find . -name "*.c")
run: build
@echo "Running sandbox..."
@./bin/sandbox
debug: build
@echo "Debugging sandbox..."
@gdb -q ./bin/sandbox
clean:
@echo "Cleaning sandbox..."
@rm -rf ./bin
.PHONY: build run clean