summaryrefslogtreecommitdiff
path: root/Makefile
blob: f9c5906ff73b8b66ffc9247c1d697a2c957739bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
BIN = build/engine
SRC = source/engine/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