-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (20 loc) · 921 Bytes
/
Makefile
File metadata and controls
21 lines (20 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def:
#gcc -static-libgcc -static-libstdc++ --static -o bn bn.c -ltoxcore -lzmq -lpthread -lm -lc -lsodium -lrt -lgcc -lpgm
#osx build:
#gcc -o pbn pb.c -Bstatic /usr/local/lib/libtoxcore.a /usr/local/lib/libsodium.a -lpthread -Bdynamic -lc -lm
#linux buid:
#gcc -o bn bn.c -Bstatic /usr/local/lib/libtoxcore.a /usr/local/lib/libsodium.a -lpthread -lrt -lpgm -Bdynamic -lc -lm -lgcc
#idk this one
#gcc -o bn bn.c --static -ltoxcore -lzmq -lpthread -lm -lsodium -lrt -lgcc -lpgm -lc
#gcc -o pbn pbn.c -I tox/include -Bstatic -lpthread ./tox/lib/libtoxcore.a /usr/lib64/libsodium.a -lrt -lc -lm -lgcc
gcc -o pbn pbn.c -I tox/include -I deps/file2str -lpthread -Bstatic ./tox/lib/libtoxcore.a /usr/lib64/libsodium.a -lrt -Bdynamic -lc -lm -lgcc
strip pbn
#upx probably broke
#upx bn
#upx --ultra-brute bn
file pbn
du -hs pbn
#no static:
#gcc -o cli cli.c -ltoxcore -lpthread -lsodium
clean:
rm -v pbn