This is a maintenance fork
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.0 KiB

2 years ago
2 years ago
  1. #-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
  2. #───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
  3. PKGS += DSP_TTY
  4. DSP_TTY_ARTIFACTS += DSP_TTY_A
  5. DSP_TTY = $(DSP_TTY_A_DEPS) $(DSP_TTY_A)
  6. DSP_TTY_A = o/$(MODE)/dsp/tty/tty.a
  7. DSP_TTY_A_FILES := $(wildcard dsp/tty/*)
  8. DSP_TTY_A_HDRS = $(filter %.h,$(DSP_TTY_A_FILES))
  9. DSP_TTY_A_SRCS_S = $(filter %.S,$(DSP_TTY_A_FILES))
  10. DSP_TTY_A_SRCS_C = $(filter %.c,$(DSP_TTY_A_FILES))
  11. DSP_TTY_A_SRCS = \
  12. $(DSP_TTY_A_SRCS_S) \
  13. $(DSP_TTY_A_SRCS_C)
  14. DSP_TTY_A_OBJS = \
  15. $(DSP_TTY_A_SRCS:%=o/$(MODE)/%.zip.o) \
  16. $(DSP_TTY_A_SRCS_S:%.S=o/$(MODE)/%.o) \
  17. $(DSP_TTY_A_SRCS_C:%.c=o/$(MODE)/%.o)
  18. DSP_TTY_A_CHECKS = \
  19. $(DSP_TTY_A).pkg \
  20. $(DSP_TTY_A_HDRS:%=o/$(MODE)/%.ok)
  21. DSP_TTY_A_DIRECTDEPS = \
  22. DSP_CORE \
  23. LIBC_ALG \
  24. LIBC_CALLS \
  25. LIBC_FMT \
  26. LIBC_LOG \
  27. LIBC_RUNTIME \
  28. LIBC_MEM \
  29. LIBC_NEXGEN32E \
  30. LIBC_NT_KERNELBASE \
  31. LIBC_STR \
  32. LIBC_STDIO \
  33. LIBC_STUBS \
  34. LIBC_SOCK \
  35. LIBC_SYSV \
  36. LIBC_TINYMATH \
  37. LIBC_TIME \
  38. LIBC_X \
  39. LIBC_UNICODE
  40. DSP_TTY_A_DEPS := \
  41. $(call uniq,$(foreach x,$(DSP_TTY_A_DIRECTDEPS),$($(x))))
  42. $(DSP_TTY_A): dsp/tty/ \
  43. $(DSP_TTY_A).pkg \
  44. $(DSP_TTY_A_OBJS)
  45. $(DSP_TTY_A).pkg: \
  46. $(DSP_TTY_A_OBJS) \
  47. $(foreach x,$(DSP_TTY_A_DIRECTDEPS),$($(x)_A).pkg)
  48. o/$(MODE)/dsp/tty/ttyraster.o: \
  49. OVERRIDE_CFLAGS += \
  50. $(MATHEMATICAL)
  51. # ifeq (,$(MODE))
  52. # $(DSP_TTY_OBJS): \
  53. # OVERRIDE_CFLAGS += \
  54. # -fsanitize=address
  55. # endif
  56. DSP_TTY_LIBS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)))
  57. DSP_TTY_SRCS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)_SRCS))
  58. DSP_TTY_HDRS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)_HDRS))
  59. DSP_TTY_CHECKS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)_CHECKS))
  60. DSP_TTY_OBJS = $(foreach x,$(DSP_TTY_ARTIFACTS),$($(x)_OBJS))
  61. $(DSP_TTY_OBJS): $(BUILD_FILES) dsp/tty/tty.mk
  62. .PHONY: o/$(MODE)/dsp/tty
  63. o/$(MODE)/dsp/tty: $(DSP_TTY_CHECKS)