Fixes Makefile so CFLAGS/LIBS are accepted as a make parameter
It should be possible to run make with compilation CFLAGS / LIBS paramaters. For instance, 'make CFLAGS="-g3 -O0"'. Fixes #87 Signed-off-by: Alvaro Lopez Ortega <alvaro@gnu.org>
This commit is contained in:
parent
e8405a4eec
commit
54b862f86f
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
src = $(wildcard *.c)
|
src = $(wildcard *.c)
|
||||||
obj = $(src:.c=.o)
|
obj = $(src:.c=.o)
|
||||||
|
|
||||||
LIBS = $(shell pkg-config --libs glib-2.0)
|
override LIBS += $(shell pkg-config --libs glib-2.0)
|
||||||
CFLAGS = -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
|
override CFLAGS += -Wall -Wextra $(shell pkg-config --cflags glib-2.0)
|
||||||
|
|
||||||
conmon: $(obj)
|
conmon: $(obj)
|
||||||
$(CC) -o $@ $^ $(LIBS)
|
$(CC) -o $@ $^ $(LIBS)
|
||||||
|
|
Loading…
Reference in a new issue