Prepare v2023.10
[platform/kernel/u-boot.git] / arch / sandbox / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2
3 head-y := arch/sandbox/cpu/start.o arch/sandbox/cpu/os.o
4 head-$(CONFIG_SANDBOX_SDL) += arch/sandbox/cpu/sdl.o
5 libs-y += arch/sandbox/cpu/
6 libs-y += arch/sandbox/lib/
7
8 # sdl.c fails to compile with -fshort-wchar using musl.
9 cmd_cc_sdl.o = $(CC) $(filter-out -nostdinc -fshort-wchar, \
10         $(patsubst -I%,-idirafter%,$(c_flags))) -fno-lto -c -o $@ $<
11
12 $(obj)/sdl.o: $(src)/sdl.c FORCE
13         $(call if_changed_dep,cc_sdl.o)