summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-03-23 19:52:10 +0000
committerTomasz Kramkowski <tk@the-tk.com>2017-03-23 19:52:10 +0000
commit1ec844ea39052ebe2d805a3c8a613373c527f68a (patch)
treeab3c48158392b11ea41515f1c78fb3f1fea52aca /Makefile
parentb5c347bba125d91a0c215f9d0edd33fefca2db51 (diff)
downloadfmk-1ec844ea39052ebe2d805a3c8a613373c527f68a.tar.gz
fmk-1ec844ea39052ebe2d805a3c8a613373c527f68a.tar.xz
fmk-1ec844ea39052ebe2d805a3c8a613373c527f68a.zip
Makefile: split CPPFLAGS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bb11f1f..187d516 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,8 @@ WARNINGS = -Wpointer-arith -Wcast-align -Wformat=2 \
-Wsuggest-attribute=format -Wall \
-Wextra -Wpedantic -Winit-self -Wshadow -Wcast-qual \
-Wstrict-prototypes -Wmissing-prototypes
-CFLAGS = -std=c11 $(WARNINGS) -O2 -flto -MMD -MP -ffreestanding -nostdlib -Ilib
+CPPFLAGS = -Ilib
+CFLAGS = -std=c11 $(WARNINGS) -O2 -flto -MMD -MP -ffreestanding -nostdlib
LDFLAGS = -T layout.ld -O2 -flto -ffreestanding -nostdlib
ASFLAGS = $(TARGET_ARCH)