diff options
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 16 |
1 files changed, 9 insertions, 7 deletions
| @@ -1,8 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | set -e | 2 | # The build is defined in Makefile. This wrapper exists only so the old |
| 3 | cd "$(dirname "$0")" | 3 | # ./build.sh invocation (and the docs that mention it) keep working. |
| 4 | g++ -m32 -O2 -std=c++17 -Wall -Wextra -Werror -fPIC -shared -fvisibility=hidden -fno-omit-frame-pointer \ | 4 | # |
| 5 | -o libhl2hake.so \ | 5 | # ./build.sh -> make |
| 6 | src/hl2h.cpp src/modules.cpp src/cinput.cpp src/netvars.cpp src/menu.cpp src/gui.cpp src/esp.cpp src/server.cpp src/bones.cpp src/vischeck.cpp src/world.cpp src/studio.cpp \ | 6 | # DEBUG=1 ./build.sh -> make debug |
| 7 | -ldl -Wl,--no-undefined | 7 | if [ "${DEBUG:-0}" = "1" ]; then |
| 8 | file libhl2hake.so | 8 | exec make --no-print-directory debug "$@" |
| 9 | fi | ||
| 10 | exec make --no-print-directory "$@" | ||
