aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
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