Rename Makefile.osx to Makefile.macos, make it arch-neutral, add a macos-universal variant that explicitly does x86_64 + arm64 build
This commit is contained in:
27
README.md
27
README.md
@@ -272,16 +272,23 @@ The default target is "all".
|
||||
|
||||
### 4d. Building on macOS
|
||||
|
||||
A Makefile for macOS is provided as `Makefile.osx`.
|
||||
Two Makefiles for macOS are provided, as `Makefile.macos` and
|
||||
`Makefile.macos-universal`. `Makefile.macos` will build for your
|
||||
native machine architecture; `Makefile.macos-universal` will build a
|
||||
universal binary with both x86_64 and arm64 slices. The latter
|
||||
requires macOS 11+, although the resulting binaries should work with
|
||||
macOS 10.7 or newer if all the dependent libraries are also built
|
||||
appropriately. You will also need the Xcode command-line tools
|
||||
installed.
|
||||
|
||||
Adjust the Makefile according to your preference for compiler and
|
||||
platform SDK, FFT and resampler implementations. The default is to
|
||||
use the Accelerate framework and the Speex resampler. Then run
|
||||
e.g. `make -f Makefile.osx library` in a terminal window to build.
|
||||
You will need the Xcode command-line tools installed.
|
||||
Adjust your selected Makefile according to your preference for
|
||||
compiler and platform SDK, FFT and resampler implementations. The
|
||||
default is to use the Accelerate framework and the Speex resampler.
|
||||
Then run e.g. `make -f Makefile.macos library` in a terminal window to
|
||||
build.
|
||||
|
||||
(You probably don't want to use the configure script on macOS -- just
|
||||
use `Makefile.osx` directly.)
|
||||
use your preferred Makefile directly.)
|
||||
|
||||
The following Makefile targets are available:
|
||||
|
||||
@@ -311,9 +318,9 @@ commercial terms.
|
||||
|
||||
### 4e. Building for iOS
|
||||
|
||||
A Makefile for iOS is provided as `Makefile.ios`. It produces a
|
||||
single static library containing both simulator and device binaries,
|
||||
in both 32- and 64-bit architectures.
|
||||
A Makefile for iOS (compiling on macOS) is provided as `Makefile.ios`.
|
||||
It produces a single static library containing both simulator and
|
||||
device binaries, in both 32- and 64-bit architectures.
|
||||
|
||||
Run e.g. `make -f Makefile.ios` in a terminal window to build. You
|
||||
will need the Xcode command-line tools installed.
|
||||
|
||||
Reference in New Issue
Block a user