From b204d24d68d66aadb18884d0a0d97ddc6fa2c75e Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 6 May 2016 14:56:16 -0400 Subject: 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. --- GNUmakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'GNUmakefile') 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 -- cgit v1.2.3