# 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/ocore_sdl TARGETDIR = ../../../../linux_gcc/bin/x32/Debug override TARGET = $(TARGETDIR)/libocore_sdl.a DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" -I"../../../../../3rdparty/asio/include" FORCE_INCLUDE += -include /data/emu/mame-nes-theklap/src/src/osd/sdl/sdlprefix.h 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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)/src/osd/asio.o \ $(OBJDIR)/src/osd/modules/file/posixdir.o \ $(OBJDIR)/src/osd/modules/file/posixfile.o \ $(OBJDIR)/src/osd/modules/file/posixptty.o \ $(OBJDIR)/src/osd/modules/file/posixsocket.o \ $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ $(OBJDIR)/src/osd/modules/osdmodule.o \ $(OBJDIR)/src/osd/osdcore.o \ $(OBJDIR)/src/osd/osdsync.o \ $(OBJDIR)/src/osd/strconv.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release32) OBJDIR = ../../../../linux_gcc/obj/x32/Release/ocore_sdl TARGETDIR = ../../../../linux_gcc/bin/x32/Release override TARGET = $(TARGETDIR)/libocore_sdl.a DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" -I"../../../../../3rdparty/asio/include" FORCE_INCLUDE += -include /data/emu/mame-nes-theklap/src/src/osd/sdl/sdlprefix.h 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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)/src/osd/asio.o \ $(OBJDIR)/src/osd/modules/file/posixdir.o \ $(OBJDIR)/src/osd/modules/file/posixfile.o \ $(OBJDIR)/src/osd/modules/file/posixptty.o \ $(OBJDIR)/src/osd/modules/file/posixsocket.o \ $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ $(OBJDIR)/src/osd/modules/osdmodule.o \ $(OBJDIR)/src/osd/osdcore.o \ $(OBJDIR)/src/osd/osdsync.o \ $(OBJDIR)/src/osd/strconv.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),debug64) OBJDIR = ../../../../linux_gcc/obj/x64/Debug/ocore_sdl TARGETDIR = ../../../../linux_gcc/bin/x64/Debug override TARGET = $(TARGETDIR)/libocore_sdl.a DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" -I"../../../../../3rdparty/asio/include" FORCE_INCLUDE += -include /data/emu/mame-nes-theklap/src/src/osd/sdl/sdlprefix.h 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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)/src/osd/asio.o \ $(OBJDIR)/src/osd/modules/file/posixdir.o \ $(OBJDIR)/src/osd/modules/file/posixfile.o \ $(OBJDIR)/src/osd/modules/file/posixptty.o \ $(OBJDIR)/src/osd/modules/file/posixsocket.o \ $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ $(OBJDIR)/src/osd/modules/osdmodule.o \ $(OBJDIR)/src/osd/osdcore.o \ $(OBJDIR)/src/osd/osdsync.o \ $(OBJDIR)/src/osd/strconv.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release64) OBJDIR = ../../../../linux_gcc/obj/x64/Release/ocore_sdl TARGETDIR = ../../../../linux_gcc/bin/x64/Release override TARGET = $(TARGETDIR)/libocore_sdl.a DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" -I"../../../../../3rdparty/asio/include" FORCE_INCLUDE += -include /data/emu/mame-nes-theklap/src/src/osd/sdl/sdlprefix.h 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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)/src/osd/asio.o \ $(OBJDIR)/src/osd/modules/file/posixdir.o \ $(OBJDIR)/src/osd/modules/file/posixfile.o \ $(OBJDIR)/src/osd/modules/file/posixptty.o \ $(OBJDIR)/src/osd/modules/file/posixsocket.o \ $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ $(OBJDIR)/src/osd/modules/osdmodule.o \ $(OBJDIR)/src/osd/osdcore.o \ $(OBJDIR)/src/osd/osdsync.o \ $(OBJDIR)/src/osd/strconv.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),debug) OBJDIR = obj/Debug/ocore_sdl TARGETDIR = ../../../../../scripts/src/osd override TARGET = $(TARGETDIR)/libocore_sdl.a DEFINES += -DMAME_DEBUG -DMAME_PROFILER -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" -I"../../../../../3rdparty/asio/include" FORCE_INCLUDE += -include /data/emu/mame-nes-theklap/src/src/osd/sdl/sdlprefix.h 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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)/src/osd/asio.o \ $(OBJDIR)/src/osd/modules/file/posixdir.o \ $(OBJDIR)/src/osd/modules/file/posixfile.o \ $(OBJDIR)/src/osd/modules/file/posixptty.o \ $(OBJDIR)/src/osd/modules/file/posixsocket.o \ $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ $(OBJDIR)/src/osd/modules/osdmodule.o \ $(OBJDIR)/src/osd/osdcore.o \ $(OBJDIR)/src/osd/osdsync.o \ $(OBJDIR)/src/osd/strconv.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release) OBJDIR = obj/Release/ocore_sdl TARGETDIR = ../../../../../scripts/src/osd override TARGET = $(TARGETDIR)/libocore_sdl.a DEFINES += -DNDEBUG -DCRLF=2 -DLSB_FIRST -DFLAC__NO_DLL -DPUGIXML_HEADER_ONLY -DASMJIT_STATIC -DUSE_NETWORK -DOSD_NET_USE_TAPTUN -DSDLMAME_X11 -DUSE_XINPUT=1 -DUSE_XINPUT_DEBUG=0 -DUSE_XINPUT_WII_LIGHTGUN_HACK=0 -DSDLMAME_SDL2=1 -DOSD_SDL -DSDLMAME_UNIX INCLUDES += -I"../../../../../../../../../usr/X11/include" -I"../../../../../../../../../usr/X11R6/include" -I"../../../../../../../../../usr/openwin/include" -I"../../../../../src/emu" -I"../../../../../src/osd" -I"../../../../../src/lib" -I"../../../../../src/lib/util" -I"../../../../../src/osd/sdl" -I"../../../../../3rdparty/asio/include" FORCE_INCLUDE += -include /data/emu/mame-nes-theklap/src/src/osd/sdl/sdlprefix.h 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -std=c++20 -Woverloaded-virtual -Wvla -Wimplicit-fallthrough -Wno-xor-used-as-pow 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 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 -I/usr/include/SDL2 -D_REENTRANT -I/usr/include/freetype2 -I/usr/include/libpng16 -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)/src/osd/asio.o \ $(OBJDIR)/src/osd/modules/file/posixdir.o \ $(OBJDIR)/src/osd/modules/file/posixfile.o \ $(OBJDIR)/src/osd/modules/file/posixptty.o \ $(OBJDIR)/src/osd/modules/file/posixsocket.o \ $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o \ $(OBJDIR)/src/osd/modules/osdmodule.o \ $(OBJDIR)/src/osd/osdcore.o \ $(OBJDIR)/src/osd/osdsync.o \ $(OBJDIR)/src/osd/strconv.o \ define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif OBJDIRS := \ $(OBJDIR) \ $(OBJDIR)/src/osd \ $(OBJDIR)/src/osd/modules \ $(OBJDIR)/src/osd/modules/file \ $(OBJDIR)/src/osd/modules/lib \ 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)/src/osd/asio.o: ../../../../../src/osd/asio.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/modules/file/posixdir.o: ../../../../../src/osd/modules/file/posixdir.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/modules/file/posixfile.o: ../../../../../src/osd/modules/file/posixfile.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/modules/file/posixptty.o: ../../../../../src/osd/modules/file/posixptty.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/modules/file/posixsocket.o: ../../../../../src/osd/modules/file/posixsocket.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/file @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/modules/lib/osdlib_unix.o: ../../../../../src/osd/modules/lib/osdlib_unix.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules/lib @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/modules/osdmodule.o: ../../../../../src/osd/modules/osdmodule.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd/modules @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/osdcore.o: ../../../../../src/osd/osdcore.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/osdsync.o: ../../../../../src/osd/osdsync.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd @echo Compiling $(subst ../,,$<)... $(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -c "$<" $(OBJDIR)/src/osd/strconv.o: ../../../../../src/osd/strconv.cpp $(GCH) $(MAKEFILE) | $(OBJDIR)/src/osd @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