3 # GNU Mes --- Maxwell Equations of Software
4 # Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
6 # This file is part of GNU Mes.
8 # GNU Mes is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at
11 # your option) any later version.
13 # GNU Mes is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
32 libc_mini_shared_SOURCES="
37 if test $mes_libc = mes; then
38 libc_mini_shared_SOURCES="$libc_mini_shared_SOURCES
39 lib/$mes_kernel/$mes_cpu-mes-$compiler/mini.c
46 libc_mini_SOURCES="$libc_mini_shared_SOURCES"
48 if test $mes_libc = mes; then
49 libc_mini_SOURCES="$libc_mini_SOURCES
55 $libc_mini_shared_SOURCES
74 if test $mes_libc = mes; then
75 libmes_SOURCES="$libmes_SOURCES
82 if test $mes_kernel = linux; then
83 libmes_SOURCES="$libmes_SOURCES
88 libmes_SOURCES="$libmes_SOURCES
94 lib/mes/__assert_fail.c
95 lib/mes/__buffered_read.c
126 if test $mes_kernel = linux; then
127 libc_SOURCES="$libc_SOURCES
131 lib/linux/clock_gettime.c
138 lib/linux/gettimeofday.c
145 lib/linux/$mes_cpu-mes-$compiler/syscall.c
159 lib/mes/search-path.c
178 lib/stdio/vsnprintf.c
188 lib/stdlib/strtoull.c
201 lib/stub/sigemptyset.c
203 lib/$mes_cpu-mes-$compiler/setjmp.c
206 if test $mes_kernel = linux; then
207 libc_tcc_SOURCES="$libc_tcc_SOURCES
222 lib/dirent/__getdirentries.c
223 lib/dirent/closedir.c
247 lib/stdlib/mbstowcs.c
255 lib/string/strerror.c
264 lib/stub/freadahead.c
281 lib/stub/sigsetmask.c
283 lib/stub/sys_siglist.c
291 if test $mes_kernel = linux; then
292 libc_gnu_SOURCES="$libc_gnu_SOURCES
302 lib/linux/getrusage.c
308 lib/linux/nanosleep.c
315 lib/linux/sigprogmask.c