2018-02-22 19:04:12 +00:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
2016-08-26 21:29:12 +00:00
|
|
|
src = $(wildcard *.c)
|
|
|
|
obj = $(src:.c=.o)
|
|
|
|
|
2017-06-02 14:18:27 +00:00
|
|
|
override LIBS += $(shell pkg-config --libs glib-2.0)
|
2018-02-22 19:04:12 +00:00
|
|
|
|
|
|
|
VERSION = $(shell sed -n -e 's/^const Version = "\([^"]*\)"/\1/p' ../version/version.go)
|
|
|
|
|
|
|
|
override CFLAGS += -std=c99 -Os -Wall -Wextra $(shell pkg-config --cflags glib-2.0) -DVERSION=\"$(VERSION)\" -DGIT_COMMIT=\"$(GIT_COMMIT)\"
|
2016-08-26 21:29:12 +00:00
|
|
|
|
|
|
|
conmon: $(obj)
|
2017-10-30 10:59:17 +00:00
|
|
|
$(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS)
|
2016-08-26 21:29:12 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-10-30 10:59:17 +00:00
|
|
|
rm -f $(obj) ../bin/conmon
|