summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..51b96ad
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+OBJ=\
+ sdl3_main.o\
+ physics.o\
+ map.o
+
+all: game
+
+clean:
+ rm -f game
+ rm -f $(OBJ)
+
+game: $(OBJ)
+ $(CC) $^ `pkg-config --libs sdl3` -lm -o $@
+
+%.o: %.c
+ $(CC) $< `pkg-config --cflags sdl3` -c -o $@
+
+.PHONY: all clean