summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorkitty piapiac <kcp@bsd.computer>2023-04-15 22:57:36 -0700
committerkitty piapiac <kcp@bsd.computer>2023-04-15 22:57:36 -0700
commit4136e8f2e1e5da874d58fcea3b1f004b07c9677f (patch)
tree93350473689fef10155c4598a43fef7374871b47 /Makefile
init sdl2,opengl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..134a932
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+.POSIX:
+CC := clang
+CFLAGS := -std=c11 -Wall -Wextra -Wshadow -Iinclude $(shell sdl2-config --cflags)
+LDFLAGS :=
+LDLIBS := -ldl $(shell sdl2-config --libs)
+all: mino
+mino: glad.o graph.o mino.o
+mino.o: mino.c include/mino.h
+graph.o: graph.c include/graph.h
+glad.o: glad.c include/glad/glad.h
+clean:
+ rm -rf mino mino.o graph.o glad.o