diff options
-rw-r--r-- | tools/thermal/tmon/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile index 3a961e998281..5777bc78173f 100644 --- a/tools/thermal/tmon/Makefile +++ b/tools/thermal/tmon/Makefile | |||
@@ -1,8 +1,13 @@ | |||
1 | # We need this for the "cc-option" macro. | ||
2 | include ../../../scripts/Kbuild.include | ||
3 | |||
1 | VERSION = 1.0 | 4 | VERSION = 1.0 |
2 | 5 | ||
3 | BINDIR=usr/bin | 6 | BINDIR=usr/bin |
4 | WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int | 7 | WARNFLAGS=-Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int |
5 | CFLAGS+= -O1 ${WARNFLAGS} -fstack-protector | 8 | CFLAGS+= -O1 ${WARNFLAGS} |
9 | # Add "-fstack-protector" only if toolchain supports it. | ||
10 | CFLAGS+= $(call cc-option,-fstack-protector) | ||
6 | CC=$(CROSS_COMPILE)gcc | 11 | CC=$(CROSS_COMPILE)gcc |
7 | 12 | ||
8 | CFLAGS+=-D VERSION=\"$(VERSION)\" | 13 | CFLAGS+=-D VERSION=\"$(VERSION)\" |