linuxinstall/Makefile

29 lines
461 B
Makefile

# ---- ---- #
CC = clang
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
# ---- ---- #