# many warnings about trivial stuff
# CPPFLAGS += -Wconversion
-# uncomment this if your compiler supports it
-# LDFLAGS += -Wl,--gc-sections
-
+ifeq ($(uname_S),Linux)
+ CPPFLAGS += -fdata-sections -ffunction-sections
+ LDFLAGS += -Wl,--gc-sections
+ CPPFLAGS += -Wstrict-prototypes
+ CPPFLAGS += -Wshadow
+endif
CPPFLAGS += -Os
CPPFLAGS += -Wall
CPPFLAGS += -Wuninitialized
-CPPFLAGS += -Wstrict-prototypes
CPPFLAGS += -Wchar-subscripts
CPPFLAGS += -Wformat-security
CPPFLAGS += -DBINDIR='"$(BINDIR)"'
CPPFLAGS += -Werror-implicit-function-declaration
CPPFLAGS += -Wmissing-format-attribute
CPPFLAGS += -Wunused-macros
-CPPFLAGS += -Wshadow
CPPFLAGS += -Wbad-function-cast
-CPPFLAGS += -fdata-sections -ffunction-sections
CPPFLAGS += -DMAIN_INPUT_FILE_IS_$(*F)
CPPFLAGS += @SSL_CPPFLAGS@
CPPFLAGS += @ncurses_cppflags@