X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.mk;h=ecc5c833989b5fbb4d50aaa6f528acc0c3ff7395;hb=7d32471efffa825f52d24930b5ee617105f9c83e;hp=20e519fe6b8060a4dde6f95fbd35d3cd869b8d5a;hpb=b0ed3e289730e42195f3388ffcc437e6cb3b8377;p=st.git diff --git a/config.mk b/config.mk index 20e519f..ecc5c83 100644 --- a/config.mk +++ b/config.mk @@ -11,8 +11,12 @@ X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib # includes and libs -INCS = -I. -I/usr/include -I${X11INC} -I/usr/include/freetype2 -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft -lfontconfig +INCS = -I. -I/usr/include -I${X11INC} \ + $(shell pkg-config --cflags fontconfig) \ + $(shell pkg-config --cflags freetype2) +LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lutil -lXext -lXft \ + $(shell pkg-config --libs fontconfig) \ + $(shell pkg-config --libs freetype2) # flags CPPFLAGS = -DVERSION=\"${VERSION}\" @@ -21,3 +25,4 @@ LDFLAGS += -g ${LIBS} # compiler and linker CC ?= cc +