53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# Copyright © 2019-2023 Dynare Team
|
|
#
|
|
# This file is part of Dynare.
|
|
#
|
|
# Dynare is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Dynare is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
.PHONY: all clean-all clean-pkg clean-mex-matlab\
|
|
deps-arm64 deps-x86_64 \
|
|
clean-arm64-deps clean-x86_64-deps \
|
|
build-arm64 build-x86_64
|
|
|
|
NTHREADS=$(shell sysctl -n hw.physicalcpu)
|
|
|
|
all: build-arm64 build-x86_64
|
|
|
|
deps-arm64:
|
|
make -C deps -j$(NTHREADS) build-arm64
|
|
|
|
deps-x86_64:
|
|
make -C deps -j$(NTHREADS) build-x86_64
|
|
|
|
clean-arm64-deps:
|
|
make -C deps clean-arm64-all
|
|
|
|
clean-x86_64-deps:
|
|
make -C deps clean-x86_64-all
|
|
|
|
clean-pkg:
|
|
rm -rf pkg
|
|
|
|
clean-mex-matlab:
|
|
# make sure there are no symbolic links left to possibly missing mexmaca64 or mexmaci64 files
|
|
rm -rf ../mex/matlab
|
|
|
|
clean-all: clean-arm64-deps clean-x86_64-deps clean-pkg clean-mex-matlab
|
|
|
|
build-arm64: deps-arm64
|
|
./build.sh arm64
|
|
|
|
build-x86_64: deps-x86_64
|
|
./build.sh x86_64
|