1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

restore old script from git log (see parent commit)

This commit is contained in:
Rick V 2019-01-23 18:07:00 -06:00
parent 4ec1025ec2
commit 2dc7501823
No known key found for this signature in database
GPG key ID: C0EDC8723FDC3465
2 changed files with 2337 additions and 2 deletions

View file

@ -21,7 +21,7 @@ WINNT_LIBS ?=
# windows target only
.c.o:
$(CC) $(WINNT_INCLUDE) -Ofast -march=core2 -mfpmath=sse $< -c
$(CC) $(WINNT_INCLUDE) -Ofast -march=nocona -mfpmath=sse $< -c
zpipe: zpipe.c miniz.c
$(NATIVE_CC) $(INCLUDE) $(LIBS) $^ -s -static -o $@
@ -42,11 +42,22 @@ prepare: zpipe base64enc download
echo ';' >> out.bin
sed -i '50r out.bin' bootstrap.c
prepare-testnet: zpipe base64enc download
./zpipe < cacert.pem > data.enc
./base64enc < data.enc > out.bin
sed -ie "s/.\{76\}/&\n/g" out.bin
sed -i 's/.*/\"&\"/g' out.bin
sed -i '49,2135d' testnet.c
echo ';' >> out.bin
sed -i '48r out.bin' testnet.c
lokinet-bootstrap: bootstrap.o miniz.o
$(CC) $(WINNT_LIBS) -static -s $^ -o $@.exe -lmbedx509 -lmbedtls -lmbedcrypto -lws2_32
lokinet-bootstrap-testnet: testnet.o miniz.o
$(CC) $(WINNT_LIBS) -static -s $^ -o $@.exe -lmbedx509 -lmbedtls -lmbedcrypto -lws2_32
clean:
-@rm lokinet-bootstrap.exe
-@rm lokinet*.exe
-@rm base64enc
-@rm zpipe
-@rm cacert.pem

File diff suppressed because it is too large Load diff