You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
544 B

  1. SYSTEM_TYPE := $(shell gcc -dumpmachine)
  2. CC = gcc
  3. OBJCOPY =
  4. OBJDUMP =
  5. SIZE =
  6. AR =
  7. NM =
  8. HEX =
  9. EEP =
  10. BIN =
  11. COMPILEFLAGS += -funsigned-char
  12. COMPILEFLAGS += -funsigned-bitfields
  13. COMPILEFLAGS += -ffunction-sections
  14. COMPILEFLAGS += -fdata-sections
  15. COMPILEFLAGS += -fshort-enums
  16. ifneq ($(findstring mingw, ${SYSTEM_TYPE}),)
  17. COMPILEFLAGS += -mno-ms-bitfields
  18. endif
  19. CFLAGS += $(COMPILEFLAGS)
  20. CFLAGS += -fno-inline-small-functions
  21. CFLAGS += -fno-strict-aliasing
  22. CPPFLAGS += $(COMPILEFLAGS)
  23. CPPFLAGS += -fno-exceptions
  24. CPPFLAGS += -std=gnu++11