fixes in makefile

test wildcard must include non-directory wildcard.
Furthermore, `-lc` mustn't be included due to `mingw` complaining... It
was a bit stupid to include this regardless.
This commit is contained in:
2025-08-12 11:03:21 +02:00
parent 98be56290d
commit ffbbe11553

View File

@@ -48,13 +48,13 @@ CFLAGS += -DNDEBUG -O2
endif endif
CFLAGS += -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/include CFLAGS += -Ilib/glad/include -Ilib/glfw/include -Ilib/libarchive/include
LDFLAGS += -lc -lm lib/glad/gl.o lib/glfw/src/libglfw3.a LDFLAGS += -lm lib/glad/gl.o lib/glfw/src/libglfw3.a
# get source files # get source files
SRC := $(wildcard src/*.c) $(wildcard src/**/*.c) SRC := $(wildcard src/*.c) $(wildcard src/**/*.c)
RES := $(wildcard res/*.glsl) RES := $(wildcard res/*.glsl)
ifeq ($(DEBUG),test) ifeq ($(DEBUG),test)
SRC := $(filter-out src/main.c, $(SRC)) $(wildcard test/**/*.c) SRC := $(filter-out src/main.c, $(SRC)) $(wildcard test/*.c) $(wildcard test/**/*.c)
endif endif
NAME += $(if $(filter 1,$(ISWIN)),.exe,) NAME += $(if $(filter 1,$(ISWIN)),.exe,)