mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 09:45:45 +01:00
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:
4
makefile
4
makefile
@@ -48,13 +48,13 @@ CFLAGS += -DNDEBUG -O2
|
||||
endif
|
||||
|
||||
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
|
||||
SRC := $(wildcard src/*.c) $(wildcard src/**/*.c)
|
||||
RES := $(wildcard res/*.glsl)
|
||||
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
|
||||
|
||||
NAME += $(if $(filter 1,$(ISWIN)),.exe,)
|
||||
|
||||
Reference in New Issue
Block a user