2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2014-11-21 22:51:33 +00:00
|
|
|
|
2018-11-24 04:29:30 +00:00
|
|
|
head-y := arch/sandbox/cpu/start.o arch/sandbox/cpu/os.o
|
|
|
|
head-$(CONFIG_SANDBOX_SDL) += arch/sandbox/cpu/sdl.o
|
2014-11-21 22:51:33 +00:00
|
|
|
libs-y += arch/sandbox/cpu/
|
|
|
|
libs-y += arch/sandbox/lib/
|
2022-01-28 09:08:32 +00:00
|
|
|
|
|
|
|
# sdl.c fails to compile with -fshort-wchar using musl.
|
|
|
|
cmd_cc_sdl.o = $(CC) $(filter-out -nostdinc -fshort-wchar, \
|
|
|
|
$(patsubst -I%,-idirafter%,$(c_flags))) -fno-lto -c -o $@ $<
|
|
|
|
|
|
|
|
$(obj)/sdl.o: $(src)/sdl.c FORCE
|
|
|
|
$(call if_changed_dep,cc_sdl.o)
|