summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-09-26 18:26:44 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-09-26 18:26:44 +0200
commit016a83faf62e27298729fc741fbcc0e5073a84c7 (patch)
tree60b5d4feb00693d313e567b7d87f47ec40dd9b6d /Makefile
parent19db0c747735def79619a27cc119c7a57507cf57 (diff)
Include cglm as submodule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 9b2c9d7..161b034 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,11 @@ CC ?= gcc
SRCDIR ?= src
OBJDIR ?= obj
-LIBS = $(shell pkg-config --libs SDL2) -Wl,-rpath,./SDL/build/ $(shell pkg-config --libs cglm)
-INCS = -ISDL/build/include/SDL2 -ISDL/build/include-config-/SDL2
+LIBS = -lm
+INCS = -Ithirdparty/cglm/include
CFLAGS ?= -D_FORTIFY_SOURCE=2 -Wall -Werror -Wno-error=unused-variable -g -Og
-CFLAGS += -std=gnu11 -fms-extensions -flto $(shell pkg-config --cflags cglm)
+CFLAGS += -std=gnu11 -fms-extensions -flto
APP_SOURCES = $(shell find $(SRCDIR) -name "*.c")
APP_OBJS = $(APP_SOURCES:%.c=$(OBJDIR)/%.o)