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:
parent
4ec1025ec2
commit
2dc7501823
|
@ -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
|
||||
|
|
2324
contrib/lokinet-bootstrap-winnt/testnet.c
Normal file
2324
contrib/lokinet-bootstrap-winnt/testnet.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue