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
73 if test $mes_libc = mes; then
74 libmes_SOURCES="$libmes_SOURCES
81 if test $mes_kernel = linux; then
82 libmes_SOURCES="$libmes_SOURCES
87 libmes_SOURCES="$libmes_SOURCES
93 lib/mes/__assert_fail.c
94 lib/mes/__buffered_read.c
125 if test $mes_kernel = linux; then
126 libc_SOURCES="$libc_SOURCES
130 lib/linux/clock_gettime.c
137 lib/linux/gettimeofday.c
144 lib/linux/$mes_cpu-mes-$compiler/syscall.c
158 lib/mes/search-path.c
177 lib/stdio/vsnprintf.c
187 lib/stdlib/strtoull.c
200 lib/stub/sigemptyset.c
202 lib/$mes_cpu-mes-$compiler/setjmp.c
205 if test $mes_kernel = linux; then
206 libc_tcc_SOURCES="$libc_tcc_SOURCES
221 lib/dirent/__getdirentries.c
222 lib/dirent/closedir.c
246 lib/stdlib/mbstowcs.c
254 lib/string/strerror.c
263 lib/stub/freadahead.c
278 lib/stub/sigsetmask.c
280 lib/stub/sys_siglist.c
288 if test $mes_kernel = linux; then
289 libc_gnu_SOURCES="$libc_gnu_SOURCES
299 lib/linux/getrusage.c
305 lib/linux/nanosleep.c
312 lib/linux/sigprogmask.c