summaryrefslogtreecommitdiff
path: root/Makefile
blob: 0224a427586eb42d75ec359cf44bf2ff6840ff1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
BIN = build/engine
SRC = source/engine.c
CC = clang
CFLAGS = -Wall -Wextra -Wfloat-equal -Wswitch-default -Wswitch-enum \
         -Wno-unused-parameter -Wno-implicit-fallthrough -Wno-unused-function -g -Werror

$(BIN): $(SRC)
	mkdir -p build
	$(CC) $(CFLAGS) $< -o $@

run:
	$(BIN)

.PHONY: clean
clean:
	rm -rf build