add math libs

This commit is contained in:
NishiOwO 2025-04-04 00:20:17 +09:00
parent 700475f59a
commit 40cb68383d
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
3 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ OBJDUMP = $(TARGET_PREFIX)objdump
STRIP = $(TARGET_PREFIX)strip
CFLAGS = -D_DEFAULT_SOURCE -DUSE_$(BACKEND) -DDRV_$(DRIVER) -I../engine/include $(ODE_CFLAGS) $(GL_CFLAGS) $(LUA_CFLAGS) $(STB_CFLAGS) $(ZLIB_CFLAGS)
LDFLAGS = $(LUA_LDFLAGS) $(STB_LDFLAGS) $(ZLIB_LDFLAGS)
LIBS = $(ODE_LIBS) $(GL_LIBS) $(SOCKET_LIBS) $(LUA_LIBS) $(CXX_LIBS) $(STB_LIBS) $(ZLIB_LIBS)
LIBS = $(ODE_LIBS) $(GL_LIBS) $(SOCKET_LIBS) $(LUA_LIBS) $(CXX_LIBS) $(STB_LIBS) $(ZLIB_LIBS) $(MATH_LIBS)
.PHONY: all format clean ./engine ./src print-deps pack

View File

@ -12,6 +12,7 @@ GL_CFLAGS = `pkg-config --cflags glfw3` `pkg-config --cflags glu`
GL_LIBS = `pkg-config --libs glfw3` `pkg-config --libs glu`
endif
SOCKET_LIBS =
MATH_LIBS = -lm
EXEC =
endif

View File

@ -22,6 +22,7 @@ GL_CFLAGS = -I../deps/include
GL_LIBS = -L../deps/lib -lglfw -lopengl32 -lglu32 -lgdi32
endif
SOCKET_LIBS = -lws2_32
MATH_LIBS =
EXEC = .exe
endif