Makefile 450 B

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