3
Makefile
3
Makefile
@@ -11,6 +11,9 @@ CFLAGS ?= -std=c11 -O2 -Wall -fstack-protector-strong
|
|||||||
FLAGS := $(CFLAGS) $(LDFLAGS) $(CPPFLAGS)
|
FLAGS := $(CFLAGS) $(LDFLAGS) $(CPPFLAGS)
|
||||||
FLAGS += -DPACKAGE_NAME=\"$(NAME)\" -DPACKAGE_VERSION=\"$(VERSION)\"
|
FLAGS += -DPACKAGE_NAME=\"$(NAME)\" -DPACKAGE_VERSION=\"$(VERSION)\"
|
||||||
|
|
||||||
|
FLAGS += -Ilibsodium-stable/src/libsodium/include
|
||||||
|
FLAGS += -Llibsodium-stable/src/libsodium/.libs
|
||||||
|
|
||||||
SRC := argz/argz.c mud/mud.c $(wildcard src/*.c)
|
SRC := argz/argz.c mud/mud.c $(wildcard src/*.c)
|
||||||
|
|
||||||
.PHONY: $(NAME)
|
.PHONY: $(NAME)
|
||||||
|
|||||||
18
sodium.sh
Executable file
18
sodium.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
file=LATEST.tar.gz
|
||||||
|
url=https://download.libsodium.org/libsodium/releases
|
||||||
|
|
||||||
|
[ -f "$file" ] || wget -q "$url/$file" -O "$file"
|
||||||
|
[ -f "$file" ] || curl -SsfLO "$url/$file"
|
||||||
|
[ -f "$file" ] || {
|
||||||
|
echo "Couldn't download $url/$file"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
rm -rf libsodium-stable
|
||||||
|
tar zxf "$file"
|
||||||
|
cd libsodium-stable || exit 1
|
||||||
|
|
||||||
|
./configure --enable-minimal --disable-dependency-tracking --enable-static --disable-shared
|
||||||
|
make -j
|
||||||
Reference in New Issue
Block a user