diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8,10 +8,12 @@ PREFIX ?= /usr/local BINDIR ?= ${PREFIX}/bin MANDIR ?= ${PREFIX}/share/man +PKG_CONFIG ?= pkg-config + CFLAGS ?= -O2 CFLAGS += -MMD -Wall -Wextra -Wno-unused-parameter -CPPFLAGS += -D_GNU_SOURCE $(shell pkg-config --cflags ${LIBS}) -LDLIBS += $(shell pkg-config --libs ${LIBS}) +CPPFLAGS += -D_GNU_SOURCE $(shell ${PKG_CONFIG} --cflags ${LIBS}) +LDLIBS += $(shell ${PKG_CONFIG} --libs ${LIBS}) ${PROG}: ${OBJS} ${CC} -o $@ ${CFLAGS} ${OBJS} ${LDLIBS} |