summaryrefslogtreecommitdiff
path: root/example/build.sh
blob: de969e801abd08aad44d96c089dffaa08ccd5615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
compiler='gcc'
if [ $# -eq 1 ] ; then 
	if [ $1 = 'windows' ] ; then
		compiler='x86_64-w64-mingw32-gcc'
	fi
fi
cflags='-g -Wall'
include='-I..'
libs='-lm'
path=`dirname $0`
set -x
cd $path
$compiler $cflags $include -o example example.c $libs