Files
tft/install.sh
T
2023-02-21 09:38:09 +02:00

39 lines
631 B
Bash
Executable File

#!/bin/sh
set -e
# cp tft_create /usr/local/bin
cd src
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
-fallow-store-data-races
-fgcse-sm
-fgcse-las
-march=native'
warnings='
-Wall
-Wextra
-Wpedantic
-Wmultiple-inheritance
-Wvirtual-inheritance' #-fanalyzer
other='-fno-fat-lto-objects'
g++ -o tft $language $optimizations $warnings $other -DNDEBUG -pipe -s tft.cpp tree.cpp person.cpp utils.cpp -lncursesw
chmod 775 tft
exec mv tft /usr/local/bin
#-static -lncursesw -ltinfo