standalone

main
sandyx 11 months ago
parent 9f7e3f15f7
commit 4eea7771c6

@ -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

Loading…
Cancel
Save