35a6403604
It's 2017, let's not stick with C89 (also for some reason the Travis environment has a different -std= default value than my local machine). Signed-off-by: Aleksa Sarai <asarai@suse.de>
13 lines
214 B
Makefile
13 lines
214 B
Makefile
src = $(wildcard *.c)
|
|
obj = $(src:.c=.o)
|
|
|
|
override LIBS +=
|
|
override CFLAGS += -std=c99 -Os -Wall -Wextra -static
|
|
|
|
pause: $(obj)
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
strip $@
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(obj) pause
|