Improve Makefile

This commit is contained in:
twinaphex 2022-03-18 17:17:42 +01:00
parent ad07fefd34
commit 3af49d8d5d
74 changed files with 49 additions and 17 deletions

0
desmume/src/GPU.cpp Executable file → Normal file
View File

0
desmume/src/GPU.h Executable file → Normal file
View File

0
desmume/src/NDSSystem.cpp Executable file → Normal file
View File

0
desmume/src/NDSSystem.h Executable file → Normal file
View File

0
desmume/src/OGLRender_3_2.cpp Executable file → Normal file
View File

0
desmume/src/driver.h Executable file → Normal file
View File

0
desmume/src/frontend/cocoa/AppIcon_DeSmuME.icns Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -15,20 +15,39 @@ ifneq ($(SANITIZER),)
endif
ifeq ($(platform),)
platform = unix
ifeq ($(shell uname -a),)
platform = win
else ifneq ($(findstring MINGW,$(shell uname -a)),)
platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
platform = osx
else ifneq ($(findstring win,$(shell uname -a)),)
platform = win
endif
else ifneq (,$(findstring armv,$(platform)))
ifeq (,$(findstring classic_,$(platform)))
override platform += unix
endif
platform = unix
ifeq ($(shell uname -a),)
platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
platform = osx
arch = intel
ifeq ($(shell uname -p),arm)
arch = arm
endif
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
platform = win
endif
endif
# system platform
system_platform = unix
ifeq ($(shell uname -a),)
EXE_EXT = .exe
system_platform = win
else ifneq ($(findstring Darwin,$(shell uname -a)),)
system_platform = osx
arch = intel
ifeq ($(shell uname -p),arm)
arch = ppc
endif
ifeq ($(shell uname -p),powerpc)
arch = ppc
endif
else ifneq ($(findstring MINGW,$(shell uname -a)),)
system_platform = win
endif
prefix := /usr
@ -136,17 +155,30 @@ else ifeq ($(platform), osx)
TARGET := $(TARGET_NAME)_libretro.dylib
fpic := -fPIC
SHARED := -dynamiclib -framework OpenGL
ifeq ($(UNIVERSAL),1)
ifeq ($(ARCHFLAGS),)
ARCHFLAGS = -arch i386 -arch x86_64
ifeq ($(archs),arm)
ARCHFLAGS = -arch arm64
endif
ifeq ($(archs),ppc)
ARCHFLAGS = -arch ppc -arch ppc64
endif
endif
endif
ifeq ($(CROSS_COMPILE),1)
ARCHFLAGS = -arch $(ARCH) -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
else
ifneq ($(shell uname -m),arm64)
ifeq ($(archs),arm)
DESMUME_JIT = 1
endif
endif
ifeq ($(OSX_LT_MAVERICKS),"YES")
fpic += -mmacosx-version-min=10.2
else
fpic += -mmacosx-version-min=10.7 -stdlib=libc++
fpic += -mmacosx-version-min=10.7 -stdlib=libc++
endif
CFLAGS += -DAPPLE_ATOMICS
CXXFLAGS += -DAPPLE_ATOMICS
@ -155,7 +187,7 @@ endif
CXXFLAGS += $(ARCHFLAGS)
LDFLAGS += $(ARCHFLAGS)
endif
DESMUME_OPENGL = 1
DESMUME_OPENGL = 1
# iOS
else ifneq (,$(findstring ios,$(platform)))

0
desmume/src/frontend/posix/gtk-glade/callbacks.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/callbacks.h Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/callbacks_IO.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/callbacks_IO.h Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

0
desmume/src/frontend/posix/gtk-glade/desmume.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/desmume.h Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/gdk_gl.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/gdk_gl.h Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/glade-xml.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/glade/DeSmuME.xpm Executable file → Normal file
View File

View File

View File

0
desmume/src/frontend/posix/gtk-glade/globals.h Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/keyval_names.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/keyval_names.h Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk-glade/main.cpp Executable file → Normal file
View File

0
desmume/src/frontend/posix/gtk/dylibbundler Executable file → Normal file
View File

0
desmume/src/frontend/windows/7z.dll Normal file → Executable file
View File

0
desmume/src/frontend/windows/7z.exe Normal file → Executable file
View File

0
desmume/src/frontend/windows/aviout.cpp Executable file → Normal file
View File

0
desmume/src/frontend/windows/aviout.h Executable file → Normal file
View File

0
desmume/src/frontend/windows/inputdx.cpp Executable file → Normal file
View File

0
desmume/src/frontend/windows/main.cpp Executable file → Normal file
View File

0
desmume/src/frontend/windows/ogl_display.cpp Executable file → Normal file
View File

0
desmume/src/frontend/windows/ogl_display.h Executable file → Normal file
View File

0
desmume/src/frontend/windows/resource.h Executable file → Normal file
View File

0
desmume/src/frontend/windows/resources.rc Executable file → Normal file
View File

0
desmume/src/frontend/windows/snddx.cpp Executable file → Normal file
View File

0
desmume/src/frontend/windows/snddx.h Executable file → Normal file
View File

0
desmume/src/frontend/windows/touch.exe Normal file → Executable file
View File

0
desmume/src/frontend/windows/winpcap.h Executable file → Normal file
View File

0
desmume/src/libretro-common/audio/dsp_filters/configure vendored Normal file → Executable file
View File

0
desmume/src/libretro-common/samples/utils/crc32.exe Normal file → Executable file
View File

0
desmume/src/libretro-common/samples/utils/djb2.exe Normal file → Executable file
View File

0
desmume/src/libretro-common/samples/utils/md5.exe Normal file → Executable file
View File

0
desmume/src/libretro-common/samples/utils/sha1.exe Normal file → Executable file
View File

0
desmume/src/metaspu/SoundTouch/build.sh Normal file → Executable file
View File

0
desmume/src/movie.cpp Executable file → Normal file
View File

0
desmume/src/movie.h Executable file → Normal file
View File

0
desmume/src/rasterize.cpp Executable file → Normal file
View File

0
desmume/src/render3D.cpp Executable file → Normal file
View File

0
desmume/src/types.h Executable file → Normal file
View File

View File

0
desmume/src/wifi.cpp Executable file → Normal file
View File

0
desmume/src/wifi.h Executable file → Normal file
View File

0
tools/IDA/nds.ldw Normal file → Executable file
View File