using C reaper with musl-gcc
[rrq/overlay-boot.git] / src / Makefile
1 all: reaper
2
3 # Pick compiler by preference
4 CCPREFS = /usr/bin/musl-gcc /usr/bin/gcc
5 CC = $(word 1,$(shell ls $(CCPREFS) 2>/dev/null))
6
7 CFLAGS = -Wall -static -O3 -flto
8
9 reaper: reaper.c
10         $(CC) $(CFLAGS) -o $@ $^
11         strip $@
12
13 clean:
14         rm -f reaper