diff --git a/.gitignore b/.gitignore index 27a0fdd..520fb5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea +renderer cmake* -tags +tags* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5a7f6c0 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +SRCS = $(shell find ./src -type f -name *.c) + +build: + gcc -Wall -std=c99 $(SRCS) -lSDL2 -o renderer + +run: build + ./renderer + +clean: + rm renderer + +all: clean build run