|
|
|
|
@ -14,7 +14,6 @@
|
|
|
|
|
$CC="gcc"
|
|
|
|
|
CFLAGS="-O1 -march=native -std=c11"
|
|
|
|
|
$EFLAGS = "" #extra flags
|
|
|
|
|
APPNAME="chess"
|
|
|
|
|
SRCDIR="src"
|
|
|
|
|
BUILDDIR="build"
|
|
|
|
|
INCLUDE=""
|
|
|
|
|
@ -23,7 +22,11 @@ EXT=".c" #extension of source file
|
|
|
|
|
#should maybe use environment variables for these
|
|
|
|
|
|
|
|
|
|
#standalone funcs
|
|
|
|
|
unless __FILE__ == $0
|
|
|
|
|
if __FILE__ == $0
|
|
|
|
|
ANSI_RED = "\e[31m"
|
|
|
|
|
ANSI_CLEAR = "\e[0m"
|
|
|
|
|
RUB = "#{ANSI_RED}RUB#{ANSI_CLEAR}"
|
|
|
|
|
|
|
|
|
|
def error(msg)
|
|
|
|
|
puts "#{RUB}: error: #{msg}"
|
|
|
|
|
exit 1
|
|
|
|
|
|