aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-06 14:56:16 -0400
committerRob Austein <sra@hactrn.net>2016-05-06 14:56:16 -0400
commitb204d24d68d66aadb18884d0a0d97ddc6fa2c75e (patch)
tree9a1defc449a35afd519245c8ee206d721e7dcfef /GNUmakefile
parent3108919d01d01ec408069fe05d0a1b10d8baa05e (diff)
Track API changes on sw/libhal rpc branch.
So far this is just dumb little things like changed names for old data types and functions. Changes to use new API features will come later.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index a74f06a..90440a7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -45,6 +45,14 @@ ifndef ENABLE_DEBUGGING
ENABLE_DEBUGGING := no
endif
+# Whether to disable #warning statements; generally these are present for
+# a reason, but they can get distracting when one is attempting to debug
+# something else.
+
+ifndef ENABLE_FOOTNOTE_WARNINGS
+ ENABLE_FOOTNOTE_WARNINGS := yes
+endif
+
LIBHAL_DIR = ../libhal
LIBTFM_DIR = ../thirdparty/libtfm
SQLITE3_DIR = ../thirdparty/sqlite3
@@ -53,6 +61,10 @@ CFLAGS := -g3 -fPIC -Wall -std=c99 -I${LIBHAL_DIR} -I${SQLITE3_DIR}
SOFLAGS := -Wl,-Bsymbolic-functions -Wl,-Bsymbolic -Wl,-z,noexecstack
LIBS := ${LIBHAL_DIR}/libhal.a ${LIBTFM_DIR}/libtfm.a ${SQLITE3_DIR}/libsqlite3.a
+ifeq "${ENABLE_FOOTNOTE_WARNINGS}" "no"
+ CFLAGS += -Wno-\#warnings
+endif
+
ifeq "${ENABLE_THREADS}" "yes"
CFLAGS += -pthread
else