Makefile.conf.base 931 B

123456789101112131415161718
  1. #
  2. # Makefile.conf.base
  3. #
  4. CFLAGS += -g3 -O3 -fPIC -std=c++11
  5. CFLAGS += -Wall -Wextra -Wstrict-aliasing -fmax-errors=5 -Werror -Wunreachable-code -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Woverloaded-virtual -Wsign-promo -Wstrict-null-sentinel -Wswitch-default -Wno-unused -Wno-variadic-macros -Wno-parentheses -fdiagnostics-show-option
  6. # CFLAGS += -Wold-style-cast -pedantic -Wcast-qual -Wundef -Wshadow -Wctor-dtor-privacy -Wredundant-decls -Wstrict-overflow=5 -Wcast-align
  7. LFLAGS += -lpthread -lm -lboost_system -lboost_thread -lboost_program_options -lboost_date_time -lssl -lcrypto -lcurl -lz -ldl -lbluetooth
  8. CFLAGS += -fpermissive
  9. CFLAGS += -I$(ROOTPATH) -I$(ROOTPATH)/Libraries/JSON
  10. CFLAGS += -ffunction-sections -fdata-sections
  11. LFLAGS += -Wl,--gc-sections
  12. SFLAGS := -s -R .comment -R .gnu.version --strip-unneeded
  13. DEBUGDIR := .debug
  14. DATETIME := `date +'%y%m%d-%H%M'`