aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: fb79f4a0528052ce146d32734933186fd15b7bdc (plain)
1
2
3
4
5
#!/bin/sh

CFLAGS="-O3 -s -flto -Wall -Wextra -Werror"
[ -z "$RELEASE" ] && CFLAGS="-O0 -g3 -Wall -Wextra -Werror";
musl-gcc -static 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 depends/cJSON.c -o automedia $CFLAGS