Merge pull request #88 from alobbs/fix-87

Fixes Makefile so CFLAGS/LIBS are accepted as a make parameter
This commit is contained in:
Mrunal Patel 2016-10-01 12:40:29 -07:00 committed by GitHub
commit 37affbfd7a

View file

@ -1,8 +1,8 @@
src = $(wildcard *.c)
obj = $(src:.c=.o)
LIBS = $(shell pkg-config --libs glib-2.0)
CFLAGS = -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
override LIBS += $(shell pkg-config --libs glib-2.0)
override CFLAGS += -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
conmon: $(obj)
$(CC) -o $@ $^ $(LIBS)