2023-11-12 13:41:30 +00:00
|
|
|
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
2023-12-17 04:07:10 +00:00
|
|
|
#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘
|
2023-11-12 13:41:30 +00:00
|
|
|
|
|
|
|
PKGS += TEST_POSIX
|
|
|
|
|
|
|
|
TEST_POSIX_SRCS := \
|
|
|
|
$(wildcard test/posix/*.c)
|
|
|
|
|
|
|
|
TEST_POSIX_SRCS_TEST = \
|
|
|
|
$(filter %_test.c,$(TEST_POSIX_SRCS))
|
|
|
|
|
|
|
|
TEST_POSIX_OBJS = \
|
|
|
|
$(TEST_POSIX_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
|
|
|
|
TEST_POSIX_COMS = \
|
2024-03-03 00:57:56 +00:00
|
|
|
$(TEST_POSIX_SRCS_TEST:%.c=o/$(MODE)/%)
|
2023-11-12 13:41:30 +00:00
|
|
|
|
|
|
|
TEST_POSIX_BINS = \
|
|
|
|
$(TEST_POSIX_COMS) \
|
|
|
|
$(TEST_POSIX_COMS:%=%.dbg)
|
|
|
|
|
|
|
|
TEST_POSIX_TESTS = \
|
2024-03-03 00:57:56 +00:00
|
|
|
$(TEST_POSIX_SRCS_TEST:%.c=o/$(MODE)/%.ok)
|
2023-11-12 13:41:30 +00:00
|
|
|
|
|
|
|
TEST_POSIX_CHECKS = \
|
2024-03-03 00:57:56 +00:00
|
|
|
$(TEST_POSIX_SRCS_TEST:%.c=o/$(MODE)/%.runs)
|
2023-11-12 13:41:30 +00:00
|
|
|
|
|
|
|
TEST_POSIX_DIRECTDEPS = \
|
|
|
|
LIBC_CALLS \
|
|
|
|
LIBC_FMT \
|
|
|
|
LIBC_INTRIN \
|
|
|
|
LIBC_MEM \
|
|
|
|
LIBC_PROC \
|
|
|
|
LIBC_RUNTIME \
|
|
|
|
LIBC_STDIO \
|
2024-05-07 10:06:12 +00:00
|
|
|
LIBC_STR \
|
2023-11-12 13:41:30 +00:00
|
|
|
LIBC_SYSV \
|
|
|
|
LIBC_THREAD
|
|
|
|
|
|
|
|
TEST_POSIX_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(TEST_POSIX_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
o/$(MODE)/test/posix/posix.pkg: \
|
|
|
|
$(TEST_POSIX_OBJS) \
|
|
|
|
$(foreach x,$(TEST_POSIX_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
2024-03-03 00:57:56 +00:00
|
|
|
o/$(MODE)/test/posix/%.dbg: \
|
2023-11-12 13:41:30 +00:00
|
|
|
$(TEST_POSIX_DEPS) \
|
|
|
|
o/$(MODE)/test/posix/%.o \
|
|
|
|
o/$(MODE)/test/posix/posix.pkg \
|
|
|
|
$(CRT) \
|
|
|
|
$(APE_NO_MODIFY_SELF)
|
|
|
|
@$(APELINK)
|
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/test/posix
|
|
|
|
o/$(MODE)/test/posix: \
|
|
|
|
$(TEST_POSIX_BINS) \
|
|
|
|
$(TEST_POSIX_CHECKS)
|