25 lines
358 B
Makefile
Executable File
25 lines
358 B
Makefile
Executable File
# ---- ---- #
|
|
|
|
CC = gcc
|
|
CF = -Wall -lkrb5 -lvirt -ljson-c -lcrypto -g -pedantic
|
|
|
|
# ---- ---- #
|
|
|
|
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
|
|
|
|
# ---- ---- #
|
|
|