From 2fbdf974338bde8576efdae40a819a76b2391033 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 5 Nov 2023 11:22:55 +0000 Subject: Initial import of the open source release --- builder | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 builder (limited to 'builder') diff --git a/builder b/builder new file mode 100755 index 0000000..7e3db11 --- /dev/null +++ b/builder @@ -0,0 +1,27 @@ +#!/bin/bash + +PARALLEL=8 + +set -e + +export PATH=`readlink -f ./tools`:$PATH + +# required when starting from scratch +mkdir -p generated build + +echo "BUILDING (parallel=$PARALLEL)..." + +# requirements +make -C tools -j $PARALLEL +make -C lib -j $PARALLEL + +# data first so we build the dependencies +make -C data -j $PARALLEL +cd src +rm -f Makefile.deps && touch Makefile.deps +find . -name "*.c" | xargs -n1 sdcc -I../generated -I../lib -MM | sed -r 's/([^:]+):/..\/build\/\1:/' >> Makefile.deps +cd - + +# the actual build +make -C src -j $PARALLEL $@ + -- cgit v1.2.3