1# Copyright (c) 2004, Theodore A. Roth 2# Copyright (c) 2005, 2008, 2009 Anatoly Sokolov 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are met: 7# 8# * Redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer. 10# * Redistributions in binary form must reproduce the above copyright 11# notice, this list of conditions and the following disclaimer in 12# the documentation and/or other materials provided with the 13# distribution. 14# * Neither the name of the copyright holders nor the names of 15# contributors may be used to endorse or promote products derived 16# from this software without specific prior written permission. 17# 18# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28# POSSIBILITY OF SUCH DAMAGE. 29# 30 31SUBDIRS = atxmega128a3 atxmega128a3u atxmega128b1 atxmega128b3 atxmega128c3 atxmega128d3 atxmega128d4 atxmega192a3 atxmega192a3u atxmega192c3 atxmega192d3 atxmega256a3 atxmega256a3u atxmega256a3b atxmega256a3bu atxmega256c3 atxmega256d3 atxmega384c3 atxmega384d3 32 33AVR_TARGET = avrxmega6 34AVR_TARGET_DEFS = -D__COMPILING_AVR_LIBC__ 35AVR_TARGET_CFLAGS = -Os $(FNO_JUMP_TABLES) 36AVR_TARGET_ASFLAGS = 37AVR_INSTALL_DIR = avrxmega6 38 39VPATH = $(top_srcdir)/libc/stdlib:$(top_srcdir)/libc/pmstring:$(top_srcdir)/libc/string:$(top_srcdir)/libc/misc:$(top_srcdir)/libc/stdio:$(top_srcdir)/libm/fplib:$(top_srcdir)/libc/time 40 41if HAS_avrxmega6 42 43AVRLIB_DEVLIST = 44if HAS_atxmega128a3 45 AVRLIB_DEVLIST += atxmega128a3 46endif # atxmega128a3 47if HAS_atxmega128a3u 48 AVRLIB_DEVLIST += atxmega128a3u 49endif # atxmega128a3u 50if HAS_atxmega128b1 51 AVRLIB_DEVLIST += atxmega128b1 52endif # atxmega128b1 53if HAS_atxmega128b3 54 AVRLIB_DEVLIST += atxmega128b3 55endif # atxmega128b3 56if HAS_atxmega128c3 57 AVRLIB_DEVLIST += atxmega128c3 58endif # atxmega128c3 59if HAS_atxmega128d3 60 AVRLIB_DEVLIST += atxmega128d3 61endif # atxmega128d3 62if HAS_atxmega128d4 63 AVRLIB_DEVLIST += atxmega128d4 64endif # atxmega128d4 65if HAS_atxmega192a3 66 AVRLIB_DEVLIST += atxmega192a3 67endif # atxmega192a3 68if HAS_atxmega192a3u 69 AVRLIB_DEVLIST += atxmega192a3u 70endif # atxmega192a3u 71if HAS_atxmega192c3 72 AVRLIB_DEVLIST += atxmega192c3 73endif # atxmega192c3 74if HAS_atxmega192d3 75 AVRLIB_DEVLIST += atxmega192d3 76endif # atxmega192d3 77if HAS_atxmega256a3 78 AVRLIB_DEVLIST += atxmega256a3 79endif # atxmega256a3 80if HAS_atxmega256a3u 81 AVRLIB_DEVLIST += atxmega256a3u 82endif # atxmega256a3u 83if HAS_atxmega256a3b 84 AVRLIB_DEVLIST += atxmega256a3b 85endif # atxmega256a3b 86if HAS_atxmega256a3bu 87 AVRLIB_DEVLIST += atxmega256a3bu 88endif # atxmega256a3bu 89if HAS_atxmega256c3 90 AVRLIB_DEVLIST += atxmega256c3 91endif # atxmega256c3 92if HAS_atxmega256d3 93 AVRLIB_DEVLIST += atxmega256d3 94endif # atxmega256d3 95if HAS_atxmega384c3 96 AVRLIB_DEVLIST += atxmega384c3 97endif # atxmega384c3 98if HAS_atxmega384d3 99 AVRLIB_DEVLIST += atxmega384d3 100endif # atxmega384d3 101 102AM_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/include -I$(top_builddir)/include 103 104AVRLIB_CFLAGS = @CDEBUG@ -Wall -W -Wstrict-prototypes -mmcu=$(AVR_TARGET) $(AVR_TARGET_DEFS) $(AVR_TARGET_CFLAGS) 105 106AVRLIB_ASFLAGS = -x assembler-with-cpp @ASDEBUG@ -mmcu=$(AVR_TARGET) $(AVR_TARGET_DEFS) $(AVR_TARGET_ASFLAGS) 107 108AM_CFLAGS = $(AVRLIB_CFLAGS) 109AM_CCASFLAGS = $(AM_CPPFLAGS) $(AVRLIB_ASFLAGS) 110 111__install_dir = $(prefix)/avr/lib/$(AVR_INSTALL_DIR) 112 113avrdir = $(__install_dir) 114avrlibdir = $(__install_dir) 115 116avr_LIBRARIES = \ 117 libc.a \ 118 libprintf_min.a \ 119 libprintf_flt.a \ 120 libscanf_min.a \ 121 libscanf_flt.a \ 122 libm.a 123 124include $(top_srcdir)/libc/stdlib/Rules.am 125include $(top_srcdir)/libc/pmstring/Rules.am 126include $(top_srcdir)/libc/string/Rules.am 127include $(top_srcdir)/libc/misc/Rules.am 128include $(top_srcdir)/libc/stdio/Rules.am 129include $(top_srcdir)/libm/fplib/Rules.am 130include $(top_srcdir)/libc/time/Rules.am 131 132nodist_libc_a_SOURCES = \ 133 $(stdlib_a_c_sources) \ 134 $(stdlib_a_asm_sources) \ 135 $(pmstring_a_c_sources) \ 136 $(pmstring_a_asm_sources) \ 137 $(string_a_c_sources) \ 138 $(string_a_asm_sources) \ 139 $(misc_a_c_sources) \ 140 $(misc_a_asm_sources) \ 141 $(stdio_a_c_sources) \ 142 $(stdio_a_asm_sources) \ 143 $(libm_a_c_sources) \ 144 $(libm_a_asm_sources) \ 145 $(time_a_c_sources) \ 146 $(time_a_asm_sources) 147 148nodist_libm_a_SOURCES = \ 149 $(libm_a_c_sources) \ 150 $(libm_a_asm_sources) 151 152libc_a_LIBADD = \ 153 $(stdio_a_libadd) \ 154 $(misc_a_libadd) 155 156libc_a_DEPENDENCIES = \ 157 $(stdio_a_libadd) \ 158 $(misc_a_libadd) 159 160else 161 162echo all distdir install installdirs clean distclean uninstall check: 163 164endif 165