Makedefs.avrext-icc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #
  2. # Copyright (C) 2001-2006 by egnite Software GmbH
  3. # Copyright (C) 2009 by egnite GmbH
  4. #
  5. # All rights reserved.
  6. #
  7. # Redistribution and use in source and binary forms, with or without
  8. # modification, are permitted provided that the following conditions
  9. # are met:
  10. #
  11. # 1. Redistributions of source code must retain the above copyright
  12. # notice, this list of conditions and the following disclaimer.
  13. # 2. Redistributions in binary form must reproduce the above copyright
  14. # notice, this list of conditions and the following disclaimer in the
  15. # documentation and/or other materials provided with the distribution.
  16. # 3. Neither the name of the copyright holders nor the names of
  17. # contributors may be used to endorse or promote products derived
  18. # from this software without specific prior written permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  23. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  24. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  25. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  26. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  27. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  28. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  29. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  30. # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31. # SUCH DAMAGE.
  32. #
  33. # For additional information see http://www.ethernut.de/
  34. #
  35. # $Id: Makedefs.avrext-icc 2599 2009-04-15 13:09:02Z haraldkipp $
  36. #
  37. include $(top_srcdir)/Makedefs.avrext-icc
  38. TARG = $(PROJ).hex
  39. ITARG = $(PROJ).bin
  40. ELFCOF = elfcoff
  41. BIN = $(TRGT)objcopy
  42. BINDIR = $(top_srcdir)/bin/$(MCU)
  43. # -v Verbose mode. Prints out each compiler pass as it is being executed.
  44. # -m Generates a map file.
  45. # -g Generates debug information. The debug file has the .DBG extension.
  46. # -L<dir> Specifies the library directory. Multiple directories may be
  47. # specified and they are searched in the reverse order
  48. # (i.e., last directory specified is searched first).
  49. # -u<crt> Use <crt> as the startup file. If the file is just a name without
  50. # path information, then it must be located in the library directory.
  51. # -dram_end:<address> Defines the end of the internal RAM area. This is used
  52. # by the Startup File to initialize the value of the hardware stack.
  53. # For the classic non-Mega devices, ram_end is the size of the SRAM
  54. # plus 96 bytes of IO and CPU registers minus one. For the Mega devices,
  55. # it is the size of the SRAM minus one. External SRAM does not affect
  56. # this value, since the hardware stack is always allocated in the
  57. # internal RAM for faster execution speed.
  58. # -bdata:<address ranges> Assigns the address ranges for the area or section
  59. # named data, which is the data memory on the AVR.
  60. # -bfunc_lit:<address ranges> Assigns the address ranges for the area named
  61. # func_lit. The format is <start address>[.<end address>], where
  62. # addresses are byte addresses. Any memory not used by this area will
  63. # be consumed by areas that follow it, so this effectively declares
  64. # the size of the FLASH memory.
  65. # -dhwstk_size:<size> Defines the size of the hardware stack. The hardware is
  66. # allocated at the top of SRAM, and then the software stack follows it.
  67. # -beeprom:<address ranges> Assigns the address ranges for the EEPROM. EEPROM
  68. # data is written to <output file>.eep as an Intel HEX file regardless
  69. # of the output file format.
  70. # -fihx_coff Output format is both COFF and Intel HEX.
  71. # -S2 Generates COFF format compatible with AVR Studio 4.06+.
  72. LDFLAGS = -L$(LIBDIR) -v -m -g -dFRAM:1 -xcall -u$(CRTNAME).o -dram_end:0x21ff -bdata:0x2200.0x7fff -bfunc_lit:0xcc.0x40000 -bappcode:0x20000.0x3FFFF -dhwstk_size:48 -beeprom:0.4096 -fihx_coff $(LIBS) -lcatm256 -S2