2 # Copyright (c) 2005 Martin Decky
3 # Copyright (c) 2007 Jakub Jermar
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions
10 # - Redistributions of source code must retain the above copyright
11 # notice, this list of conditions and the following disclaimer.
12 # - Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 # - The name of the author may not be used to endorse or promote products
16 # derived from this software without specific prior written permission.
18 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 ROOT_PATH
= $(USPACE_PREFIX
)/..
33 CONFIG_MAKEFILE
= $(ROOT_PATH
)/Makefile.config
38 -include $(CONFIG_MAKEFILE
)
39 -include arch
/$(UARCH
)/Makefile.inc
54 generic
/device
/hw_res.c \
55 generic
/device
/hw_res_parsed.c \
56 generic
/device
/pio_window.c \
57 generic
/device
/clock_dev.c \
58 generic
/device
/led_dev.c \
64 generic
/elf
/elf_load.c \
65 generic
/elf
/elf_mod.c \
74 generic
/l18n
/langs.c \
76 generic
/fibril_synch.c \
79 generic
/smp_memory_barrier.c \
86 generic
/inet
/endpoint.c \
88 generic
/inet
/hostname.c \
89 generic
/inet
/hostport.c \
95 generic
/io
/asprintf.c \
98 generic
/io
/chardev.c \
99 generic
/io
/chardev_srv.c \
100 generic
/io
/chargrid.c \
101 generic
/io
/output.c \
102 generic
/io
/printf.c \
104 generic
/io
/logctl.c \
107 generic
/io
/serial.c \
108 generic
/io
/snprintf.c \
109 generic
/io
/vprintf.c \
110 generic
/io
/vsnprintf.c \
111 generic
/io
/printf_core.c \
112 generic
/io
/con_srv.c \
113 generic
/io
/console.c \
115 generic
/io
/visualizer.c \
116 generic
/io
/window.c \
118 generic
/iplink_srv.c \
121 generic
/ieee_double.c \
122 generic
/power_of_ten.c \
123 generic
/double_to_str.c \
131 generic
/adt
/checksum.c \
132 generic
/adt
/circ_buf.c \
134 generic
/adt
/hash_table.c \
135 generic
/adt
/odict.c \
136 generic
/adt
/prodcons.c \
141 generic
/vfs
/canonify.c \
142 generic
/vfs
/inbox.c \
148 generic
/stacktrace.c \
149 generic
/arg_parse.c \
152 generic
/pio_trace.c \
158 ifeq ($(CONFIG_RTLD
),y
)
160 generic
/rtld
/rtld.c \
161 generic
/rtld
/dynamic.c \
162 generic
/rtld
/module.c \
163 generic
/rtld
/symbol.c
166 ARCH_SOURCES
+= $(ARCH_AUTOCHECK_HEADERS
:%.h
=%.
check.c
)
173 test/adt
/circ_buf.c \
174 test/fibril
/timer.c \
182 include $(USPACE_PREFIX
)/Makefile.common
184 AUTOCHECK
= $(realpath
$(ROOT_PATH
)/tools
/autocheck.awk
)
186 %.
check.c
: %.h
$(AUTOCHECK
)
187 cd
$(<D
) && $(AUTOCHECK
) $(<F
) > $(@F
)