summaryrefslogtreecommitdiffhomepage
path: root/compile
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-07-31 16:01:26 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-08-16 22:52:47 +0100
commit9f12b8d3a30fc9137d6707dcc513de30022ffe3e (patch)
tree3071a80c9d69298746ed74afc32823a72feeec4a /compile
parent3380c56176a050cdf13b7a4b2ee8b0ba8c63b62b (diff)
Import Monocypher 3.1.3 + monocypher-rng module
This is for somewhat later. I'd always planned to use it - it existed already in earlier private repos, in fact. I just didn't bother to import it here in case it wouldn't actually be needed, but with the way current plans are going, it's definitely going to be needed, so here it is.
Diffstat (limited to 'compile')
-rwxr-xr-xcompile8
1 files changed, 5 insertions, 3 deletions
diff --git a/compile b/compile
index 3160625..b2aa205 100755
--- a/compile
+++ b/compile
@@ -27,13 +27,14 @@ fi
objs=
cc() {
- objs="$objs .build/${1%%.c}.o"
- _mn=" -DMODULE_NAME=${1%%.c}"
+ _bn="`basename "$1"`"
+ objs="$objs .build/${_bn%%.c}.o"
+ _mn=" -DMODULE_NAME=${_bn%%.c}"
# ugly annoying special case
if [ "$_mn" = " -DMODULE_NAME=con_" ]; then _mn=" -DMODULE_NAME=con"
elif [ "$_mn" = "-DMODULE_NAME=sst" ]; then _mn=; fi
$CC -m32 -c -flto -fpic $cflags $warnings -I.build/include \
- -D_FILE_OFFSET_BITS=64$_mn -o ".build/${1%%.c}.o" "src/$1"
+ -D_FILE_OFFSET_BITS=64$_mn -o ".build/${_bn%%.c}.o" "src/$1"
}
ld() {
@@ -44,6 +45,7 @@ ld() {
src="\
ac.c
bind.c
+ crypto.c
alias.c
autojump.c
con_.c