2016-08-26 21:29:12 +00:00
|
|
|
src = $(wildcard *.c)
|
|
|
|
obj = $(src:.c=.o)
|
|
|
|
|
2017-05-12 20:30:30 +00:00
|
|
|
override LIBS += $(shell pkg-config --libs glib-2.0 json-glib-1.0)
|
|
|
|
override CFLAGS += -std=c99 -Wall -Wextra $(shell pkg-config --cflags glib-2.0 json-glib-1.0)
|
2016-08-26 21:29:12 +00:00
|
|
|
|
|
|
|
conmon: $(obj)
|
2016-10-02 09:11:16 +00:00
|
|
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
2016-08-26 21:29:12 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(obj) conmon
|