summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/build.sh b/build.sh
index b12f67b..4d10a56 100755
--- a/build.sh
+++ b/build.sh
@@ -1,8 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2# The build is defined in Makefile. This wrapper exists only so the old
3cd "$(dirname "$0")" 3# ./build.sh invocation (and the docs that mention it) keep working.
4g++ -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 7if [ "${DEBUG:-0}" = "1" ]; then
8file libhl2hake.so 8 exec make --no-print-directory debug "$@"
9fi
10exec make --no-print-directory "$@"