mirror of
https://github.com/jfdelnero/HxCFloppyEmulator.git
synced 2026-07-28 04:06:36 +00:00
wip : Fixing macos build ...
This commit is contained in:
@@ -90,7 +90,7 @@ endif
|
||||
|
||||
ifeq ($(TARGET), Darwin)
|
||||
MACOSX_ARCH ?= -arch arm64 -arch x86_64
|
||||
MACOSX_MIN_VER ?= 12
|
||||
MACOSX_MIN_VER ?= 10.9
|
||||
CFLAGS += -DOSX ${MACOSX_ARCH} -mmacosx-version-min=${MACOSX_MIN_VER}
|
||||
LDFLAGS += -lc -lm -ldl -lpthread -framework Cocoa -framework AudioToolBox -framework UniformTypeIdentifiers ${MACOSX_ARCH} -mmacosx-version-min=${MACOSX_MIN_VER}
|
||||
LIBHXCFE = libhxcfe.dylib
|
||||
@@ -132,14 +132,14 @@ ifneq (,$(findstring arm64,$(MACOSX_ARCH)))
|
||||
cd ../sources/thirdpartylibs/fltk && \
|
||||
cp -a fltk-1.x.x fltk-1.x.x-arm64 && \
|
||||
cd fltk-1.x.x-arm64 && \
|
||||
export CFLAGS='-mmacosx-version-min=12 -arch arm64' && export CXXFLAGS='-mmacosx-version-min=12 -arch arm64' && export LDFLAGS='-mmacosx-version-min=12 -arch arm64' && ./configure --host=arm-apple-darwin --enable-localpng=yes --enable-localzlib=yes
|
||||
export CFLAGS='-mmacosx-version-min=11 -arch arm64' && export CXXFLAGS='-mmacosx-version-min=11 -arch arm64' && export LDFLAGS='-mmacosx-version-min=11 -arch arm64' && ./configure --host=arm-apple-darwin --enable-localpng=yes --enable-localzlib=yes
|
||||
$(MAKE) -C ../sources/thirdpartylibs/fltk/fltk-1.x.x-arm64/ DIRS=src
|
||||
endif
|
||||
ifneq (,$(findstring x86_64,$(MACOSX_ARCH)))
|
||||
cd ../sources/thirdpartylibs/fltk && \
|
||||
cp -a fltk-1.x.x fltk-1.x.x-x86_64 && \
|
||||
cd fltk-1.x.x-x86_64 && \
|
||||
export CFLAGS='-mmacosx-version-min=10.13 -arch x86_64' && export CXXFLAGS='-mmacosx-version-min=10.13 -arch x86_64' && export LDFLAGS='-mmacosx-version-min=10.13 -arch x86_64' && ./configure --host=x86_64-apple-darwin --enable-localpng=yes --enable-localzlib=yes
|
||||
export CFLAGS='-mmacosx-version-min=10.9 -arch x86_64' && export CXXFLAGS='-mmacosx-version-min=10.9 -arch x86_64' && export LDFLAGS='-mmacosx-version-min=10.9 -arch x86_64' && ./configure --host=x86_64-apple-darwin --enable-localpng=yes --enable-localzlib=yes
|
||||
$(MAKE) -C ../sources/thirdpartylibs/fltk/fltk-1.x.x-x86_64/ DIRS=src
|
||||
endif
|
||||
ifneq (,$(findstring x86_64,$(MACOSX_ARCH)))
|
||||
|
||||
Reference in New Issue
Block a user