summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-05-09 01:01:18 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-05-09 01:01:18 -0300
commit5c6b3c19172948cf2e1800a9333cfcd858ee829c (patch)
treeb8da3f436cba5736d481690935135fe5c6b3badc /Makefile
parenta21ae8219e67783c52ba5f415e1ca4745755adb5 (diff)
adicionado vecmath.h
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b34cf93..f2a9b94 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,9 @@ OBJ=\
map.o\
game.o
+LDFLAGS=`pkg-config --libs sdl3` -lm
+CFLAGS=`pkg-config --cflags sdl3` -O2 -Iinclude
+
all: game
clean:
@@ -12,10 +15,10 @@ clean:
rm -f map.c
game: $(OBJ)
- $(CC) $^ `pkg-config --libs sdl3` -lm -o $@
+ $(CC) $^ $(LDFLAGS) -o $@
%.o: %.c
- $(CC) $< `pkg-config --cflags sdl3` -c -o $@
+ $(CC) $< $(CFLAGS) -c -o $@
map.c: map.png img2map
./img2map map.png > map.c