-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.mos
53 lines (45 loc) · 1.35 KB
/
Makefile.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# This script cross-compiles Boost for MorphOS PPC on linux
#
BOOST_VERSION=1.87.0
BUILD_DIR=/tmp/boost-build
INSTALL_DIR=boost-${BOOST_VERSION}-morphos-ppc
PREFIX=/tmp/${INSTALL_DIR}
USER_CONFIG=user-config.jam
all: package
#--- boostrap ---#
b2:
./bootstrap.sh
#--- cross compile boost for morphos ppc ---#
boost: b2
./b2 cxxflags="-std=c++17" cflags="-noixemul -D__morphos__" toolset=gcc-power link=static threading=single variant=release optimization=speed \
--user-config=${USER_CONFIG} \
--build-dir=${BUILD_DIR} \
--prefix=${PREFIX} \
--with-atomic \
--with-chrono \
--with-program_options \
--with-system \
--with-random \
--with-test \
--with-locale \
--with-filesystem \
--with-iostreams \
install
install: boost
cp README.md ${PREFIX}/
cp README_MORPHOS.md ${PREFIX}/
cp LICENSE_1_0.txt ${PREFIX}/
cp -r examples_mos ${PREFIX}/
package: install
cd ${PREFIX}/.. && zip -qr ${INSTALL_DIR}.zip ${INSTALL_DIR}
@echo "You can find the boost archive here: ${PREFIX}.zip"
#--- clean ---#
.PHONY: clean
clean:
rm -f project-config.*
rm -f b2
rm -f tools/build/src/engine/b2
rm -rf ${BUILD_DIR}
rm -rf ${PREFIX}
rm -f ${PREFIX}/../${INSTALL_DIR}.zip