diff --git a/makefile b/makefile index 35d1cb5..0ce5b6c 100644 --- a/makefile +++ b/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,)