Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (19 sloc) 0.632 kb
#!/bin/sh
# auto detection of compiler
if test ! $CC; then
if gcc --version > /dev/null 2>&1; then
CC=gcc
elif clang --version > /dev/null 2>&1; then
CC=clang
fi
if test ! $CC; then
echo No compiler found. Specify compiler by setting the CC environment variable.
echo Example: CC=gcc ./$0
exit
fi
fi
# the actual compile
echo compiling using $CC...
$CC -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_cl.lua > src/internal_base.h
$CC -Wall -ansi -pedantic src/*.c src/lua/*.c -o bam -I src/lua -lm -lpthread -ldl -O2 -rdynamic $*
Jump to Line
Something went wrong with that request. Please try again.