2020-01-02 02:05:09 +01:00
|
|
|
## makefile - master user make-file for compiling exhale on Linux and MacOS platforms
|
2021-04-01 23:00:00 +02:00
|
|
|
# written by C. R. Helmrich, last modified in 2021 - see License.htm for legal notices
|
2021-04-24 11:00:00 +02:00
|
|
|
# Universal 2 support for macOS added by Christopher Snowhill on hydrogenaud.io in 2021
|
2020-01-02 02:05:09 +01:00
|
|
|
#
|
2020-10-23 10:00:00 +02:00
|
|
|
# The copyright in this software is being made available under the exhale Copyright License
|
2020-01-02 02:05:09 +01:00
|
|
|
# and comes with ABSOLUTELY NO WARRANTY. This software may be subject to other third-
|
|
|
|
# party rights, including patent rights. No such rights are granted under this License.
|
|
|
|
#
|
2021-04-01 23:00:00 +02:00
|
|
|
# Copyright (c) 2018-2021 Christian R. Helmrich, project ecodis. All rights reserved.
|
2020-01-02 02:05:09 +01:00
|
|
|
##
|
|
|
|
|
|
|
|
## BUILD32=1: compile for 32-bit platforms, BUILD32=0: compile for 64-bit platforms
|
|
|
|
BUILD32?=0
|
|
|
|
|
2021-04-01 23:00:00 +02:00
|
|
|
## UNIVERSAL2=1: compile for both x86_64 and arm64 on macOS, UNIVERSAL2=0: compile for native architecture on all platforms
|
|
|
|
UNIVERSAL2?=0
|
|
|
|
|
2020-01-02 02:05:09 +01:00
|
|
|
export BUILD32
|
2021-04-01 23:00:00 +02:00
|
|
|
export UNIVERSAL2
|
2020-01-02 02:05:09 +01:00
|
|
|
|
|
|
|
all:
|
2021-04-01 23:00:00 +02:00
|
|
|
$(MAKE) -C src/lib MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
|
|
|
$(MAKE) -C src/app MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
2020-01-02 02:05:09 +01:00
|
|
|
|
|
|
|
debug:
|
2021-04-01 23:00:00 +02:00
|
|
|
$(MAKE) -C src/lib debug MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
|
|
|
$(MAKE) -C src/app debug MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
2020-01-02 02:05:09 +01:00
|
|
|
|
|
|
|
release:
|
2021-04-01 23:00:00 +02:00
|
|
|
$(MAKE) -C src/lib release MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
|
|
|
$(MAKE) -C src/app release MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
2020-01-02 02:05:09 +01:00
|
|
|
|
|
|
|
clean:
|
2021-04-01 23:00:00 +02:00
|
|
|
$(MAKE) -C src/lib clean MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|
|
|
|
$(MAKE) -C src/app clean MM32=$(BUILD32) UNIVERSAL2=$(UNIVERSAL2)
|