Files
tft/install.sh
T
2023-03-10 19:04:21 +02:00

34 lines
496 B
Bash
Executable File

#!/bin/sh
set -e
language='
-std=c++17
-fno-rtti
-fno-exceptions
-fno-non-call-exceptions
-fno-common'
# force each global variable to be only defined once
optimizations='
-Ofast
-flto
-fipa-pta
-fgcse-sm
-fgcse-las
-march=native'
warnings='
-Wall
-Wextra'
# -Wpedantic' #-fanalyzer
other='-fno-fat-lto-objects'
cd src
g++ -o tft $language $optimizations $warnings $other -DNDEBUG -pipe -s *.cpp -lncursesw
#-static -lncursesw -ltinfo
chmod 775 tft
exec mv tft /usr/local/bin