Added support for CLI style commands
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
||||
|
Reference in New Issue
Block a user