q to close

This commit is contained in:
Venelin
2024-06-05 11:30:50 +03:00
parent 06186f51a2
commit 501db705d3
3 changed files with 11 additions and 5 deletions
+9 -3
View File
@@ -1,13 +1,16 @@
#!/bin/sh
set -e
# Install location
PREFIX=/usr/local
# Compilation options
language='
-std=c++17
-fno-rtti
-fno-exceptions
-fno-non-call-exceptions
-fno-common'
# force each global variable to be only defined once
-fno-common' # force each global variable to be only defined once
optimizations='
-Ofast
@@ -27,9 +30,12 @@ warnings='
other='-fno-fat-lto-objects'
# Compile
cd src
g++ -o tft $language $optimizations $warnings $other -DNDEBUG -pipe -s *.cpp -lncursesw
#-static -lncursesw -ltinfo
# Install
chmod 775 tft
mv tft /usr/local/bin
mkdir -p ${PREFIX}/bin
mv tft ${PREFIX}/bin