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.

20 lines
716 B

  1. --- a/mpy-cross/Makefile
  2. +++ b/mpy-cross/Makefile
  3. @@ -19,7 +19,7 @@ INC += -I$(TOP)
  4. # compiler settings
  5. CWARN = -Wall -Werror
  6. CWARN += -Wextra -Wno-unused-parameter -Wpointer-arith
  7. -CFLAGS = $(INC) $(CWARN) -std=gnu99 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
  8. +CFLAGS += $(INC) $(CWARN) -std=gnu99 $(CFLAGS_MOD) $(COPT) $(CFLAGS_EXTRA)
  9. CFLAGS += -fdata-sections -ffunction-sections -fno-asynchronous-unwind-tables
  10. # Debugging/Optimization
  11. @@ -42,7 +42,7 @@ else
  12. # Use gcc syntax for map file
  13. LDFLAGS_ARCH = -Wl,-Map=$@.map,--cref -Wl,--gc-sections
  14. endif
  15. -LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
  16. +LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
  17. # source files
  18. SRC_C = \