summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newt/GNUmakefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/newt/GNUmakefile b/src/newt/GNUmakefile
index ac12d00..4bad3ca 100644
--- a/src/newt/GNUmakefile
+++ b/src/newt/GNUmakefile
@@ -2,14 +2,19 @@ TOPDIR = ../..
SUBDIRS =
-INCLUDE_CPPFLAGS =
+INCLUDE_CPPFLAGS = \
+ $(shell pkg-config --cflags-only-other libnewt)
INCLUDE_LDFLAGS = \
+ $(shell pkg-config --libs-only-L libnewt) \
+ $(shell pkg-config --libs-only-other libnewt)
INCLUDE_DIRS = \
- -I.
+ -I. \
+ $(shell pkg-config --cflags-only-I libnewt)
INCLUDE_LIBS = \
+ $(shell pkg-config --libs-only-l libnewt)
CPP_BINS = \