blob: 1303bb6c1c21bdb4d953a462b98ff5b87bd1cd53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
script_dir=$(dirname "$0")
cd "$script_dir"
CFLAGS="-O3 -s -flto -Wall -Wextra -DNDEBUG"
[ -z "$RELEASE" ] && CFLAGS="-O0 -g3 -Wall -Wextra";
CC=cc
if [ $(which musl-gcc 2> /dev/null) ]; then
CC="musl-gcc"
CFLAGS+=" -static"
fi
$CC src/main.c src/program.c src/alloc.c src/buffer.c src/fileutils.c src/transmission.c src/rss.c src/html.c src/rss_html_common.c src/download.c src/stringutils.c src/episode.c src/track_remove_parser.c src/fallback.c depends/cJSON.c -o automedia $CFLAGS
|