# GNU Make project makefile autogenerated by GENie # https://github.com/bkaradzic/GENie .SUFFIXES: ifndef config config=debug32 endif ifndef verbose SILENT = @ endif SHELLTYPE := msdos ifeq (,$(ComSpec)$(COMSPEC)) SHELLTYPE := posix endif ifeq (/bin,$(findstring /bin,$(SHELL))) SHELLTYPE := posix endif ifeq (/bin,$(findstring /bin,$(MAKESHELL))) SHELLTYPE := posix endif ifeq (posix,$(SHELLTYPE)) MKDIR = $(SILENT) mkdir -p "$(1)" COPY = $(SILENT) cp -fR "$(1)" "$(2)" RM = $(SILENT) rm -f "$(1)" else MKDIR = $(SILENT) mkdir "$(subst /,\\,$(1))" 2> nul || exit 0 COPY = $(SILENT) copy /Y "$(subst /,\\,$(1))" "$(subst /,\\,$(2))" RM = $(SILENT) del /F "$(subst /,\\,$(1))" 2> nul || exit 0 endif CC = gcc CXX = g++ AR = ar ifndef RESCOMP ifdef WINDRES RESCOMP = $(WINDRES) else RESCOMP = windres endif endif ifeq ($(config),debug32) OBJDIR = ../../../../linux_gcc/obj/x32/Debug TARGETDIR = ../../../../linux_gcc/bin/x32/Debug override TARGET = $(TARGETDIR)/libbgfx.a DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBX_CONFIG_DEBUG=0 -DBGFX_CONFIG_MAX_FRAME_BUFFERS=128 INCLUDES += -I"../../../../../3rdparty/bgfx/include" -I"../../../../../3rdparty/bgfx/3rdparty" -I"../../../../../3rdparty/bx/include" -I"../../../../../3rdparty/bimg/include" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/directx" -I"../../../../../3rdparty/bgfx/3rdparty/khronos" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/wsl/stubs" -I"../../../../../3rdparty/bx/include/compat/linux" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wno-misleading-indentation ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Wpointer-arith -Wimplicit-fallthrough ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 LIBDEPS += LDDEPS += LDRESP = LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil EXTERNAL_LIBS += LINKOBJS = $(OBJECTS) LINKCMD = $(AR) -rcs $(TARGET) OBJRESP = OBJECTS := \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o \ $(OBJDIR)/3rdparty/bgfx/src/dxgi.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o \ $(OBJDIR)/3rdparty/bgfx/src/nvapi.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o \ $(OBJDIR)/3rdparty/bgfx/src/shader.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o \ $(OBJDIR)/3rdparty/bgfx/src/topology.o \ $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release32) OBJDIR = ../../../../linux_gcc/obj/x32/Release TARGETDIR = ../../../../linux_gcc/bin/x32/Release override TARGET = $(TARGETDIR)/libbgfx.a DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBX_CONFIG_DEBUG=0 -DBGFX_CONFIG_MAX_FRAME_BUFFERS=128 INCLUDES += -I"../../../../../3rdparty/bgfx/include" -I"../../../../../3rdparty/bgfx/3rdparty" -I"../../../../../3rdparty/bx/include" -I"../../../../../3rdparty/bimg/include" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/directx" -I"../../../../../3rdparty/bgfx/3rdparty/khronos" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/wsl/stubs" -I"../../../../../3rdparty/bx/include/compat/linux" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wno-misleading-indentation ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m32 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m32 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Wpointer-arith -Wimplicit-fallthrough ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m32 LIBDEPS += LDDEPS += LDRESP = LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil EXTERNAL_LIBS += LINKOBJS = $(OBJECTS) LINKCMD = $(AR) -rcs $(TARGET) OBJRESP = OBJECTS := \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o \ $(OBJDIR)/3rdparty/bgfx/src/dxgi.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o \ $(OBJDIR)/3rdparty/bgfx/src/nvapi.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o \ $(OBJDIR)/3rdparty/bgfx/src/shader.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o \ $(OBJDIR)/3rdparty/bgfx/src/topology.o \ $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),debug64) OBJDIR = ../../../../linux_gcc/obj/x64/Debug TARGETDIR = ../../../../linux_gcc/bin/x64/Debug override TARGET = $(TARGETDIR)/libbgfx.a DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBX_CONFIG_DEBUG=0 -DBGFX_CONFIG_MAX_FRAME_BUFFERS=128 INCLUDES += -I"../../../../../3rdparty/bgfx/include" -I"../../../../../3rdparty/bgfx/3rdparty" -I"../../../../../3rdparty/bx/include" -I"../../../../../3rdparty/bimg/include" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/directx" -I"../../../../../3rdparty/bgfx/3rdparty/khronos" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/wsl/stubs" -I"../../../../../3rdparty/bx/include/compat/linux" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wno-misleading-indentation ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Wpointer-arith -Wimplicit-fallthrough ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 LIBDEPS += LDDEPS += LDRESP = LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil EXTERNAL_LIBS += LINKOBJS = $(OBJECTS) LINKCMD = $(AR) -rcs $(TARGET) OBJRESP = OBJECTS := \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o \ $(OBJDIR)/3rdparty/bgfx/src/dxgi.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o \ $(OBJDIR)/3rdparty/bgfx/src/nvapi.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o \ $(OBJDIR)/3rdparty/bgfx/src/shader.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o \ $(OBJDIR)/3rdparty/bgfx/src/topology.o \ $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release64) OBJDIR = ../../../../linux_gcc/obj/x64/Release TARGETDIR = ../../../../linux_gcc/bin/x64/Release override TARGET = $(TARGETDIR)/libbgfx.a DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBX_CONFIG_DEBUG=0 -DBGFX_CONFIG_MAX_FRAME_BUFFERS=128 INCLUDES += -I"../../../../../3rdparty/bgfx/include" -I"../../../../../3rdparty/bgfx/3rdparty" -I"../../../../../3rdparty/bx/include" -I"../../../../../3rdparty/bimg/include" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/directx" -I"../../../../../3rdparty/bgfx/3rdparty/khronos" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/wsl/stubs" -I"../../../../../3rdparty/bx/include/compat/linux" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wno-misleading-indentation ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -m64 -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -m64 -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Wpointer-arith -Wimplicit-fallthrough ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s -m64 LIBDEPS += LDDEPS += LDRESP = LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil EXTERNAL_LIBS += LINKOBJS = $(OBJECTS) LINKCMD = $(AR) -rcs $(TARGET) OBJRESP = OBJECTS := \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o \ $(OBJDIR)/3rdparty/bgfx/src/dxgi.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o \ $(OBJDIR)/3rdparty/bgfx/src/nvapi.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o \ $(OBJDIR)/3rdparty/bgfx/src/shader.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o \ $(OBJDIR)/3rdparty/bgfx/src/topology.o \ $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),debug) OBJDIR = obj/Debug TARGETDIR = ../../../../../scripts/src override TARGET = $(TARGETDIR)/libbgfx.a DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBX_CONFIG_DEBUG=0 -DBGFX_CONFIG_MAX_FRAME_BUFFERS=128 INCLUDES += -I"../../../../../3rdparty/bgfx/include" -I"../../../../../3rdparty/bgfx/3rdparty" -I"../../../../../3rdparty/bx/include" -I"../../../../../3rdparty/bimg/include" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/directx" -I"../../../../../3rdparty/bgfx/3rdparty/khronos" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/wsl/stubs" -I"../../../../../3rdparty/bx/include/compat/linux" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wno-misleading-indentation ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Wpointer-arith -Wimplicit-fallthrough ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s LIBDEPS += LDDEPS += LDRESP = LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil EXTERNAL_LIBS += LINKOBJS = $(OBJECTS) LINKCMD = $(AR) -rcs $(TARGET) OBJRESP = OBJECTS := \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o \ $(OBJDIR)/3rdparty/bgfx/src/dxgi.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o \ $(OBJDIR)/3rdparty/bgfx/src/nvapi.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o \ $(OBJDIR)/3rdparty/bgfx/src/shader.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o \ $(OBJDIR)/3rdparty/bgfx/src/topology.o \ $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release) OBJDIR = obj/Release TARGETDIR = ../../../../../scripts/src override TARGET = $(TARGETDIR)/libbgfx.a DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS -DBX_CONFIG_DEBUG=0 -DBGFX_CONFIG_MAX_FRAME_BUFFERS=128 INCLUDES += -I"../../../../../3rdparty/bgfx/include" -I"../../../../../3rdparty/bgfx/3rdparty" -I"../../../../../3rdparty/bx/include" -I"../../../../../3rdparty/bimg/include" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/directx" -I"../../../../../3rdparty/bgfx/3rdparty/khronos" -I"../../../../../3rdparty/bgfx/3rdparty/directx-headers/include/wsl/stubs" -I"../../../../../3rdparty/bx/include/compat/linux" ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP -MP $(DEFINES) $(INCLUDES) ALL_ASMFLAGS += $(ASMFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=gnu99 -Wpointer-arith -Wstrict-prototypes -Wbad-function-cast ALL_CXXFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow -Wno-misleading-indentation ALL_OBJCFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare ALL_OBJCPPFLAGS += $(CXXFLAGS) $(CFLAGS) $(ALL_CPPFLAGS) $(ARCH) -pipe -O3 -fno-strict-aliasing -Wno-unknown-pragmas -Wall -Wcast-align -Wformat-security -Wundef -Wwrite-strings -Wno-conversion -Wno-sign-compare -Wno-error=deprecated-declarations -Wno-error=unused-result -Wno-error=array-bounds -Wno-error=attributes -Wno-error=stringop-truncation -Wno-stringop-overflow -Wno-stringop-overread -Wno-nonnull -Wno-error=maybe-uninitialized -Wno-error=uninitialized -Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-tautological-compare -std=c++20 -Wpointer-arith -Wimplicit-fallthrough ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) ALL_LDFLAGS += $(LDFLAGS) -L"../../../../../../../../../usr/X11/lib" -L"../../../../../../../../../usr/X11R6/lib" -L"../../../../../../../../../usr/openwin/lib" -L"." -s LIBDEPS += LDDEPS += LDRESP = LIBS += $(LDDEPS) -ldl -lrt -lSDL2 -lm -lpthread -lutil EXTERNAL_LIBS += LINKOBJS = $(OBJECTS) LINKCMD = $(AR) -rcs $(TARGET) OBJRESP = OBJECTS := \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/bgfx.o \ $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o \ $(OBJDIR)/3rdparty/bgfx/src/dxgi.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o \ $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o \ $(OBJDIR)/3rdparty/bgfx/src/nvapi.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o \ $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o \ $(OBJDIR)/3rdparty/bgfx/src/shader.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o \ $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o \ $(OBJDIR)/3rdparty/bgfx/src/topology.o \ $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif OBJDIRS := \ $(OBJDIR) \ $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui \ $(OBJDIR)/3rdparty/bgfx/examples/common/imgui \ $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg \ $(OBJDIR)/3rdparty/bgfx/src \ RESOURCES := \ .PHONY: clean prebuild prelink all: $(OBJDIRS) $(TARGETDIR) prebuild prelink $(TARGET) @: $(TARGET): $(GCH) $(OBJECTS) $(LIBDEPS) $(EXTERNAL_LIBS) $(RESOURCES) $(OBJRESP) $(LDRESP) | $(TARGETDIR) $(OBJDIRS) @echo Archiving $(notdir $@)... ifeq (posix,$(SHELLTYPE)) $(SILENT) rm -f $(TARGET) else $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) endif $(SILENT) $(LINKCMD) $(LINKOBJS) $(POSTBUILDCMDS) $(TARGETDIR): @echo Creating $(TARGETDIR) -$(call MKDIR,$(TARGETDIR)) $(OBJDIRS): -$(call MKDIR,$@) clean: ifeq (posix,$(SHELLTYPE)) $(SILENT) rm -f $(TARGET) $(SILENT) rm -rf $(OBJDIR) else $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) endif prebuild: $(PREBUILDCMDS) prelink: $(PRELINKCMDS) ifneq (,$(PCH)) $(GCH): $(PCH) $(MAKEFILE) | $(OBJDIR) @echo Precompiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) -x c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" $(GCH_OBJC): $(PCH) $(MAKEFILE) | $(OBJDIR) @echo Precompiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_OBJCPPFLAGS) -x objective-c++-header $(DEFINES) $(INCLUDES) -o "$@" -c "$<" endif ifneq (,$(OBJRESP)) $(OBJRESP): $(OBJECTS) | $(TARGETDIR) $(OBJDIRS) $(SILENT) echo $^ $(SILENT) echo $^ > $@ endif ifneq (,$(LDRESP)) $(LDRESP): $(LDDEPS) | $(TARGETDIR) $(OBJDIRS) $(SILENT) echo $^ $(SILENT) echo $^ > $@ endif $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui.o: ../../../../../3rdparty/bgfx/3rdparty/dear-imgui/imgui.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.o: ../../../../../3rdparty/bgfx/3rdparty/dear-imgui/imgui_draw.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.o: ../../../../../3rdparty/bgfx/3rdparty/dear-imgui/imgui_tables.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.o: ../../../../../3rdparty/bgfx/3rdparty/dear-imgui/imgui_widgets.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/3rdparty/dear-imgui @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/examples/common/imgui/imgui.o: ../../../../../3rdparty/bgfx/examples/common/imgui/imgui.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/examples/common/imgui @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg.o: ../../../../../3rdparty/bgfx/examples/common/nanovg/nanovg.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.o: ../../../../../3rdparty/bgfx/examples/common/nanovg/nanovg_bgfx.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/examples/common/nanovg @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/bgfx.o: ../../../../../3rdparty/bgfx/src/bgfx.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/debug_renderdoc.o: ../../../../../3rdparty/bgfx/src/debug_renderdoc.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/dxgi.o: ../../../../../3rdparty/bgfx/src/dxgi.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/glcontext_egl.o: ../../../../../3rdparty/bgfx/src/glcontext_egl.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/glcontext_html5.o: ../../../../../3rdparty/bgfx/src/glcontext_html5.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/glcontext_wgl.o: ../../../../../3rdparty/bgfx/src/glcontext_wgl.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/nvapi.o: ../../../../../3rdparty/bgfx/src/nvapi.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_agc.o: ../../../../../3rdparty/bgfx/src/renderer_agc.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d11.o: ../../../../../3rdparty/bgfx/src/renderer_d3d11.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d12.o: ../../../../../3rdparty/bgfx/src/renderer_d3d12.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_d3d9.o: ../../../../../3rdparty/bgfx/src/renderer_d3d9.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_gl.o: ../../../../../3rdparty/bgfx/src/renderer_gl.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_gnm.o: ../../../../../3rdparty/bgfx/src/renderer_gnm.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_noop.o: ../../../../../3rdparty/bgfx/src/renderer_noop.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_nvn.o: ../../../../../3rdparty/bgfx/src/renderer_nvn.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_vk.o: ../../../../../3rdparty/bgfx/src/renderer_vk.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/renderer_webgpu.o: ../../../../../3rdparty/bgfx/src/renderer_webgpu.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/shader.o: ../../../../../3rdparty/bgfx/src/shader.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/shader_dx9bc.o: ../../../../../3rdparty/bgfx/src/shader_dx9bc.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/shader_dxbc.o: ../../../../../3rdparty/bgfx/src/shader_dxbc.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/shader_spirv.o: ../../../../../3rdparty/bgfx/src/shader_spirv.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/topology.o: ../../../../../3rdparty/bgfx/src/topology.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/3rdparty/bgfx/src/vertexlayout.o: ../../../../../3rdparty/bgfx/src/vertexlayout.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/3rdparty/bgfx/src @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" -include $(OBJECTS:%.o=%.d) ifneq (,$(PCH)) -include $(OBJDIR)/$(notdir $(PCH)).d -include $(OBJDIR)/$(notdir $(PCH))_objc.d endif