diff options
author | HampusM <hampus@hampusmat.com> | 2022-01-07 17:15:00 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-01-07 17:15:00 +0100 |
commit | 813c98b028c9ba484fb5b21a60067ae35cc925ff (patch) | |
tree | 5f4032967b974cd2ad6183a50834c17d8dd6700b /Makefile | |
parent | 977c46591583a59f8d51773ffaba08b5076a426e (diff) |
build: use Makefile instead of Cmake
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..82c2f43 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +CC=gcc +CSTD=c17 +CFLAGS=-Wall -O2 --std=$(CSTD) +CDEBUGFLAGS=-Wall -g -O0 --std=$(CSTD) # -fno-stack-protector + +SRCDIR=src +SRCS=$(wildcard $(SRCDIR)/*.c) + +TARGET=mazerator + +.PHONY: debug clean + +all: $(TARGET) + +$(TARGET): $(SRCS) + $(CC) $(CFLAGS) $(SRCS) -o $(TARGET) + +debug: + $(CC) $(CDEBUGFLAGS) $(SRCS) -o $(TARGET) + +clean: + $(RM) $(TARGET) |