OSDN Git Service

tools/thermal: tmon: use pkg-config also for CFLAGS
[sagit-ice-cold/kernel_xiaomi_msm8998.git] / tools / thermal / tmon / Makefile
index 2e83dd3..3a961e9 100644 (file)
@@ -22,6 +22,9 @@ TMON_LIBS += $(shell pkg-config --libs $(STATIC) panelw ncursesw 2> /dev/null ||
                     pkg-config --libs $(STATIC) panel ncurses 2> /dev/null || \
                     echo -lpanel -lncurses)
 
+CFLAGS    += $(shell pkg-config --cflags $(STATIC) panelw ncursesw 2> /dev/null || \
+                    pkg-config --cflags $(STATIC) panel ncurses 2> /dev/null)
+
 OBJS = tmon.o tui.o sysfs.o pid.o
 OBJS +=