blob: ee2fd972f9060f6c472925b488ea7456add547d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/sh
builddir='build'
if [ "$1" = "clean" ] ; then
set -x
rm -rf $builddir
exit
fi
compiler='gcc'
target='crrn'
srcdir='src'
release_cflags='
-O2
-DSTBI_NO_SIMD
'
debug_cflags='
-g
-Wall
-Wextra
-DSTBI_NO_SIMD
-std=gnu11
'
include="
-Ilibs
-Ilibs/prge
-Ilibs/prb
"
lflags=''
libs='
-lm
-lSDL3
-lGL
-lGLEW
'
mkdir -p $builddir
cp -r -p data $builddir
set -x
$compiler -o $builddir/$target $debug_cflags $include $lflags $srcdir/linux.c $libs
|