uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
uname_rs := $(shell uname -rs)
cc_version := $(shell $(CC) --version | head -n 1)
-codename := heterogeneous vacuum
+codename := mutual diversity
GIT_VERSION := $(shell ./GIT-VERSION-GEN git-version.h)
LDFLAGS += -Wl,--gc-sections
CPPFLAGS += -Wstrict-prototypes
CPPFLAGS += -Wshadow
+ # causes warnings on *BSD for the feature test macros
+ CPPFLAGS += -Wunused-macros
endif
CPPFLAGS += -Os
CPPFLAGS += -Wuninitialized
CPPFLAGS += -DCC_VERSION='"$(cc_version)"'
CPPFLAGS += -Werror-implicit-function-declaration
CPPFLAGS += -Wmissing-noreturn
-CPPFLAGS += -Wunused-macros
CPPFLAGS += -Wbad-function-cast
CPPFLAGS += -fno-strict-aliasing
CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F)