Makefile.rx65n 1023 B

123456789101112131415161718192021222324252627
  1. VPATH += :$(HALPATH)/rx65n
  2. EXTRAINCDIRS += $(HALPATH)/rx65n/include $(HALPATH)/rx65n
  3. TMPSRC += $(wildcard $(HALPATH)/rx65n/*.c)
  4. SRC += clkconf.c
  5. SRC += $(subst $(HALPATH)/rx65n/,,$(TMPSRC))
  6. #SRC += startup.c
  7. #$(info SRC is $(SRC))
  8. ifeq ($(CRYPTO_TARGET),HWAES)
  9. SRC += r_tsip_rx65n_little.lib
  10. endif
  11. ASRC += reset_program.S
  12. CC = rx-elf-gcc
  13. OBJCOPY = rx-elf-objcopy
  14. OBJDUMP = rx-elf-objdump
  15. SIZE = rx-elf-size
  16. AR = rx-elf-ar rcs
  17. NM = rx-elf-nm
  18. MCU_FLAGS = -mcpu=rx64m -misa=v2
  19. CFLAGS += -fdata-sections -fsigned-char -g2 -m64bit-doubles -mlittle-endian-data -std=gnu99 -DGRROSE -D__RX600__ -D__RTOS -DUSING_XUR -MMD -MP
  20. CPPFLAGS += -fdata-sections -fsigned-char -g2 -m64bit-doubles -mlittle-endian-data -std=gnu99 -DGRROSE -D__RX600__ -D__RTOS -DUSING_XUR -MMD -MP
  21. ASFLAGS += -fdata-sections -fsigned-char -g2 -m64bit-doubles -mlittle-endian-data -std=gnu99 -DGRROSE -D__RX600__ -D__RTOS -DUSING_XUR -MMD -MP -nostartfiles
  22. LDFLAGS += --specs=nosys.specs -T $(HALPATH)/rx65n/linker_script.ld -nostartfiles
  23. FORMAT=binary