fixed build

main
anulax1225 ago%!(EXTRA string=11 months)
parent db6196960b
commit 7b9d8ca3d8
  1. 8
      Makefile
  2. 2
      premake5.lua

@ -38,16 +38,16 @@ ifeq ($(config),debug)
TARGETDIR = ../../bin/linux-x86_64-Debug/GLAD TARGETDIR = ../../bin/linux-x86_64-Debug/GLAD
TARGET = $(TARGETDIR)/libGLAD.a TARGET = $(TARGETDIR)/libGLAD.a
OBJDIR = ../../bin-int/linux-x86_64-Debug/GLAD OBJDIR = ../../bin-int/linux-x86_64-Debug/GLAD
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g -fPIC ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g -fPIC ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64
else ifeq ($(config),release) else ifeq ($(config),release)
TARGETDIR = ../../bin/linux-x86_64-Release/GLAD TARGETDIR = ../../bin/linux-x86_64-Release/GLAD
TARGET = $(TARGETDIR)/libGLAD.a TARGET = $(TARGETDIR)/libGLAD.a
OBJDIR = ../../bin-int/linux-x86_64-Release/GLAD OBJDIR = ../../bin-int/linux-x86_64-Release/GLAD
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -fPIC ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2 -fPIC ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 -s ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -m64 -s
endif endif

@ -8,8 +8,6 @@ project "GLAD"
includedirs { "%{prj.location}/include" } includedirs { "%{prj.location}/include" }
buildoptions { "-fPIC" }
files files
{ {
"%{prj.location}/src/glad.c", "%{prj.location}/src/glad.c",

Loading…
Cancel
Save