blob: 8b7908e66ff58bed557e666eb73160d7ec4fbd83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/bash
source build.env
[[ "$1" == "debug" ]] && cflags+=" ${debug_cflags[@]}"
[[ "$1" == "relsym" ]] && cflags+=" -g"
src=$(find . -name '*.c')
echo "cc: $cc"
echo "cflags: ${cflags[@]}"
echo "ldflags: ${ldflags[@]}"
echo "out: $out"
set -x
# If the compilation time gets so long that incremental compilation is a
# necessity, the project is undeserving of the name "microengine". Hence why
# this project does not use Make or CMake.
$cc -o $out ${src[@]} ${cflags[@]} ${ldflags[@]}
|