2024-02-15 00:17:20 +01:00
|
|
|
# ---- ---- #
|
|
|
|
|
2024-02-19 16:01:53 +01:00
|
|
|
CC = gcc
|
2024-02-28 17:50:27 +01:00
|
|
|
CF = -Wall -lkrb5 -lvirt -ljson-c -lcrypto -g -pedantic
|
2024-02-15 00:17:20 +01:00
|
|
|
|
|
|
|
# ---- ---- #
|
|
|
|
|
|
|
|
build: $(shell find . -name "*.c") $(shell find . -name "*.h")
|
|
|
|
@mkdir -p bin
|
2024-02-28 17:50:27 +01:00
|
|
|
$(CC) $(CF) -o ./bin/sandbox $(shell find . -name "*.c")
|
2024-02-15 00:17:20 +01:00
|
|
|
|
|
|
|
run: build
|
2024-02-28 17:50:27 +01:00
|
|
|
./bin/sandbox
|
2024-02-15 00:17:20 +01:00
|
|
|
|
|
|
|
debug: build
|
2024-02-28 17:50:27 +01:00
|
|
|
gdb -q ./bin/sandbox
|
2024-02-15 00:17:20 +01:00
|
|
|
|
|
|
|
clean:
|
2024-02-28 17:50:27 +01:00
|
|
|
rm -rf ./bin
|
2024-02-15 00:17:20 +01:00
|
|
|
|
|
|
|
.PHONY: build run clean
|
|
|
|
|
|
|
|
# ---- ---- #
|
|
|
|
|