From 54b862f86f800b24b1025c7ae9154a296f88906f Mon Sep 17 00:00:00 2001 From: Alvaro Lopez Ortega Date: Fri, 30 Sep 2016 22:15:30 -0400 Subject: [PATCH] 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 --- conmon/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conmon/Makefile b/conmon/Makefile index 8726019e..1df60a69 100644 --- a/conmon/Makefile +++ b/conmon/Makefile @@ -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)