25 lines
345 B
Makefile
25 lines
345 B
Makefile
|
# ---- ---- #
|
||
|
|
||
|
CC = clang
|
||
|
CF = -Wall -lkrb5 -lvirt -ljson-c -g
|
||
|
|
||
|
# ---- ---- #
|
||
|
|
||
|
build: $(shell find . -name "*.c") $(shell find . -name "*.h")
|
||
|
@mkdir -p bin
|
||
|
@$(CC) $(CF) -o ./bin/sandbox $(shell find . -name "*.c")
|
||
|
|
||
|
run: build
|
||
|
@./bin/sandbox
|
||
|
|
||
|
debug: build
|
||
|
@gdb -q ./bin/sandbox
|
||
|
|
||
|
clean:
|
||
|
@rm -rf ./bin
|
||
|
|
||
|
.PHONY: build run clean
|
||
|
|
||
|
# ---- ---- #
|
||
|
|