aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-01-16 23:26:01 +0100
committerThomas Guillermo Albers Raviola <thomas@thomaslabs.org>2026-01-16 23:26:01 +0100
commitc15c603b35e86fd42e6db94a7382ba7a1ddadd6e (patch)
treeab56040ce4768564bef5fbe9e65fe4c025cea6ce /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..628d7d4
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+OBJ = main.o menu.o render.o util.o bullet.o player.o collisions.o file.o
+CFLAGS = -std=c99 -g -Wall
+LDFLAGS = -lSDL2 -lSDL2_image -lSDL2_ttf -lm -lSDL2_mixer
+
+all: $(OBJ)
+ @$(CC) $(OBJ) -o highnoon $(LDFLAGS)
+
+%.o : %.c
+ @$(CC) $(CFLAGS) -c -o $@ $<
+
+.PHONY : clean
+clean:
+ @rm -f $(OBJ) highnoon