blob: 9e12891cbfb5ea87b30659e0348f6fd5ed5f39cd (
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
|
#!/bin/bash
compiler='gcc'
builddir='build'
target='crrn'
srcdir='src'
release_cflags='
-O2
-DSTBI_NO_SIMD
'
debug_cflags='
-g
-Wall
-Wextra
-DSTBI_NO_SIMD
-std=gnu11
'
include="
-Ilib
-Ilib/prge
-Ilib/prb
"
lflags=''
libs='
-lm
-lSDL3
-lGL
-lGLEW
'
mkdir -p $builddir
cp -r -p data $builddir
set -x
time $compiler -o $builddir/$target $debug_cflags $include $lflags $srcdir/linux.c $libs
|