.POSIX: CC := clang CFLAGS := -std=c11 -g -O0 -Wall -Wextra -Wshadow -Iinclude $(shell sdl2-config --cflags) $(shell pkg-config --cflags cglm) LDFLAGS := LDLIBS := -ldl -lm $(shell sdl2-config --libs) $(shell pkg-config --libs cglm) all: mino mino: glad.o tex.o graph.o input.o scene.o scene-title.o mino.o mino.o: mino.c include/mino.h scene.o: scene.c include/scene.h scene-title.o: scene-title.c input.o: input.c include/input.h graph.o: graph.c include/graph.h tex.o: tex.c include/tex.h glad.o: glad.c include/glad/glad.h clean: rm -rf mino mino.o scene-title.o scene.o input.o graph.o tex.o glad.o