X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=src%2FMakefile;h=1776491e09b6c4ecf32b358a4b693efefb635e2c;hb=da8a16b95c0fa34abfaa1a7dfbbfddec6b959a57;hp=5c8c75744c433dfc733ce6b76d1923ca91da7c14;hpb=107009a27770dc0c617bfe80442336d54aee445b;p=rrq%2Foverlay-boot.git diff --git a/src/Makefile b/src/Makefile index 5c8c757..1776491 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,10 +1,16 @@ all: reaper -CC = musl-gcc +# Pick compiler by preference +#CC = /usr/bin/gcc +CC = /usr/bin/musl-gcc + +$(warning CC=$(CC)) + CFLAGS = -Wall -static -O3 -flto reaper: reaper.c $(CC) $(CFLAGS) -o $@ $^ + strip $@ clean: rm -f reaper