diff options
author | Olaf Hering <olaf@aepfle.de> | 2015-10-02 05:50:45 -0400 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2015-10-09 23:32:31 -0400 |
commit | 809b6ecb53e35654d988f8f8f263a51ac6d10003 (patch) | |
tree | 4e99d7bec2660e261b55339f5082b479467294c7 /tools/thermal/tmon/Makefile | |
parent | e866a2e3950fe2f708d5cc67d641b1725ef7a708 (diff) |
tools/thermal: tmon: use pkg-config also for CFLAGS
The header <panel.h> might be in /usr/include/ncursesw, which is not
part of the standard include path. This fixes compile on openSUSE.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'tools/thermal/tmon/Makefile')
-rw-r--r-- | tools/thermal/tmon/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index 2e83dd3655a2..3a961e998281 100644 --- a/tools/thermal/tmon/Makefile +++ b/tools/thermal/tmon/Makefile | |||
@@ -22,6 +22,9 @@ TMON_LIBS += $(shell pkg-config --libs $(STATIC) panelw ncursesw 2> /dev/null || | |||
22 | pkg-config --libs $(STATIC) panel ncurses 2> /dev/null || \ | 22 | pkg-config --libs $(STATIC) panel ncurses 2> /dev/null || \ |
23 | echo -lpanel -lncurses) | 23 | echo -lpanel -lncurses) |
24 | 24 | ||
25 | CFLAGS += $(shell pkg-config --cflags $(STATIC) panelw ncursesw 2> /dev/null || \ | ||
26 | pkg-config --cflags $(STATIC) panel ncurses 2> /dev/null) | ||
27 | |||
25 | OBJS = tmon.o tui.o sysfs.o pid.o | 28 | OBJS = tmon.o tui.o sysfs.o pid.o |
26 | OBJS += | 29 | OBJS += |
27 | 30 | ||