Started writing the management program.
This commit is contained in:
28
Makefile
Normal file
28
Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
# ---- ---- #
|
||||
|
||||
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
|
||||
|
||||
# ---- ---- #
|
||||
|
Reference in New Issue
Block a user