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>
12 lines
268 B
Makefile
12 lines
268 B
Makefile
src = $(wildcard *.c)
|
|
obj = $(src:.c=.o)
|
|
|
|
override LIBS += $(shell pkg-config --libs glib-2.0)
|
|
override CFLAGS += -std=c99 -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
|
|
|
|
conmon: $(obj)
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(obj) conmon
|