summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 073d3da)
raw | patch | inline | side by side (parent: 073d3da)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 28 Jul 2019 20:58:37 +0000 (23:58 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sun, 28 Jul 2019 20:58:37 +0000 (23:58 +0300) |
make-all.sh | patch | blob | history | |
make-bootstrap.sh | patch | blob | history | |
make.sh | patch | blob | history |
diff --git a/make-all.sh b/make-all.sh
index 54294677e5deee81390cc17ba4a7e5dec5d049f5..71fc18e56e96a3f5f5c50468e851a5395a20fff7 100755 (executable)
--- a/make-all.sh
+++ b/make-all.sh
_host_target=
_host_system=
+export CPCFLAGS="$CPCFLAGS"
+export CPLFLAGS="$CPLFLAGS"
+
###^^^^^^^^^^^###
### Functions ###
###___________###
echo "Environment variables:"
echo " CC C compiler binary"
echo " CFLAGS C compiler options"
+ echo " CPCFLAGS CPC compiler options"
+ echo " CPLFLAGS CPL linker options"
exit 2
}
diff --git a/make-bootstrap.sh b/make-bootstrap.sh
index 5cc1c61db38bc3a719be6ee607315a6a81cc71cc..7a5fe31640216c5cfa895a85baba7ec9dd31c17f 100755 (executable)
--- a/make-bootstrap.sh
+++ b/make-bootstrap.sh
_version="v0.3"
_sign=false
+export CPCFLAGS="-no-use-time $CPCFLAGS"
+export CPLFLAGS="$CPLFLAGS"
+
###^^^^^^^^^^^###
### Functions ###
###___________###
echo "Options:"
echo " -v version Set build version"
echo " -S Sign build"
+ echo "Environment variables:"
+ echo " CC C compiler binary"
+ echo " CFLAGS C compiler options"
+ echo " CPCFLAGS CPC compiler options"
+ echo " CPLFLAGS CPL linker options"
exit 2
}
index af287d95d50bba19ba9f130fcf00ad95ee7fd416..2c0c53b4d632b0fb31c5737c08976cfa47a9fae7 100755 (executable)
--- a/make.sh
+++ b/make.sh
_useposix=false
+export CPCFLAGS="$CPCFLAGS"
+export CPLFLAGS="$CPLFLAGS"
+
###^^^^^^^^^^^###
### Functions ###
###___________###
echo "Environment variables:"
echo " CC C compiler binary"
echo " CFLAGS C compiler options"
+ echo " CPCFLAGS CPC compiler options"
+ echo " CPLFLAGS CPL linker options"
exit 2
}
}
native_compile() {
- "$_compiler" -legacy "$@"
+ "$_compiler" $CPCFLAGS -legacy "$@"
}
native_link() {
_outsystem="win32"
fi
shift
- "$_linker" -os "$_outsystem" -kernel Kernel -main Kernel -legacycodedir . -o "$_outexe" "$@"
+ "$_linker" $CPLFALGS -os "$_outsystem" -kernel Kernel -main Kernel -legacycodedir . -o "$_outexe" "$@"
fi
}
}
cpfront_compile() {
- "$_compiler" -outcode CodeC -outsym SymC "$@"
+ "$_compiler" $CPCFLAGS -outcode CodeC -outsym SymC "$@"
}
cpfront_link() {
local _main="$1"
if $_docompile; then
cpfront_main_module "$@" > "${_main}.cp"
- "$_compiler" -outcode CodeC -outsym SymC -main "${_main}.cp"
+ "$_compiler" $CPCFLAGS -outcode CodeC -outsym SymC -main "${_main}.cp"
fi
shift
if $_dolink; then