16 lines
521 B
TOML
16 lines
521 B
TOML
|
[vars]
|
||
|
CC="!which gcc"
|
||
|
CFLAGS="-Wall -O2 -I/opt/homebrew/opt/openssl@3.2/include -L/opt/homebrew/opt/openssl@3.2/lib"
|
||
|
LDFLAGS="-lssl -lcrypto"
|
||
|
|
||
|
[targets.build]
|
||
|
wildcards=["!ls -1 *.c","!ls -1 *.c | sed -e 's/\\.c$//'"]
|
||
|
cmd="${CC} ${CFLAGS} ${LDFLAGS} @@ -o @@"
|
||
|
|
||
|
[targets.debug]
|
||
|
vars.CC="clang"
|
||
|
vars.CFLAGS="-Wall -O0 -g -fsanitize=address -g -I/opt/homebrew/opt/openssl@3.2/include -L/opt/homebrew/opt/openssl@3.2/lib"
|
||
|
wildcards=["!ls -1 *.c","!ls -1 *.c | sed -e 's/\\.c$//'"]
|
||
|
cmd="${CC} ${CFLAGS} ${LDFLAGS} @@ -o @@"
|
||
|
|