-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
13 lines (10 loc) · 859 Bytes
/
Makefile
File metadata and controls
13 lines (10 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
PREFIX=/usr/local
all:
cd vendor/ && ${MAKE}
#gcc -g -O2 -pthread -Ivendor/lua/src -Ivendor/liburing/src/include -Wall -pedantic -o mcshredder mcshredder.c pcg-basic.c itoa_ljust.c $(LDFLAGS)
# sometimes helpful to add -fno-omit-frame-pointer for perf tracing
gcc -g -O2 -pthread -rdynamic -Ivendor/lua/src -Ivendor/liburing/src/include -Wall -pedantic -o mcshredder mcshredder.c itoa_ljust.c vendor/mcmc/mcmc.o vendor/lua/src/liblua.a vendor/liburing/src/liburing.a -lm $(LDFLAGS) -ldl
tls:
cd vendor/ && ${MAKE}
# sometimes helpful to add -fno-omit-frame-pointer for perf tracing
gcc -g -O2 -pthread -rdynamic -Ivendor/lua/src -Ivendor/liburing/src/include -Wall -pedantic -o mcshredder mcshredder.c tls.c itoa_ljust.c vendor/mcmc/mcmc.o vendor/lua/src/liblua.a vendor/liburing/src/liburing.a -lcrypto -lssl -lm $(LDFLAGS) -ldl -DUSE_TLS=1