-# 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