linuxinstall/Makefile

25 lines
352 B
Makefile
Executable File

# ---- ---- #
CC = gcc
CF = -Wall -lkrb5 -lvirt -ljson-c -lcrypto -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
# ---- ---- #