2024-01-09 17:51:59 +00:00
|
|
|
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
|
|
#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘
|
|
|
|
|
|
|
|
PKGS += TEST_LIBCXX
|
|
|
|
|
|
|
|
TEST_LIBCXX_FILES := $(wildcard test/libcxx/*)
|
|
|
|
TEST_LIBCXX_SRCS = $(filter %.cc,$(TEST_LIBCXX_FILES))
|
|
|
|
TEST_LIBCXX_OBJS = $(TEST_LIBCXX_SRCS:%.cc=o/$(MODE)/%.o)
|
2024-03-03 00:57:56 +00:00
|
|
|
TEST_LIBCXX_COMS = $(TEST_LIBCXX_OBJS:%.o=%)
|
2024-01-09 17:51:59 +00:00
|
|
|
TEST_LIBCXX_BINS = $(TEST_LIBCXX_COMS) $(TEST_LIBCXX_COMS:%=%.dbg)
|
|
|
|
TEST_LIBCXX_CHECKS = $(TEST_LIBCXX_COMS:%=%.runs)
|
|
|
|
TEST_LIBCXX_TESTS = $(TEST_LIBCXX_COMS:%=%.ok)
|
|
|
|
|
|
|
|
TEST_LIBCXX_DIRECTDEPS = \
|
2024-01-29 05:57:40 +00:00
|
|
|
LIBC_CALLS \
|
2024-01-09 17:51:59 +00:00
|
|
|
LIBC_INTRIN \
|
2024-02-01 11:39:46 +00:00
|
|
|
LIBC_LOG \
|
2024-06-02 02:57:32 +00:00
|
|
|
LIBC_MEM \
|
2024-01-09 17:51:59 +00:00
|
|
|
LIBC_NEXGEN32E \
|
|
|
|
LIBC_RUNTIME \
|
2024-01-29 05:57:40 +00:00
|
|
|
LIBC_STDIO \
|
2024-02-01 11:39:46 +00:00
|
|
|
LIBC_SYSV \
|
|
|
|
LIBC_THREAD \
|
|
|
|
LIBC_TINYMATH \
|
2024-01-29 05:57:40 +00:00
|
|
|
THIRD_PARTY_LIBCXX \
|
2024-06-02 02:57:32 +00:00
|
|
|
THIRD_PARTY_LIBCXXABI \
|
|
|
|
THIRD_PARTY_LIBUNWIND \
|
2024-01-29 05:57:40 +00:00
|
|
|
THIRD_PARTY_OPENMP
|
2024-01-09 17:51:59 +00:00
|
|
|
|
|
|
|
TEST_LIBCXX_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(TEST_LIBCXX_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
o/$(MODE)/test/libcxx/libcxx.pkg: \
|
|
|
|
$(TEST_LIBCXX_OBJS) \
|
|
|
|
$(foreach x,$(TEST_LIBCXX_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
2024-03-03 00:57:56 +00:00
|
|
|
o/$(MODE)/test/libcxx/%.dbg: \
|
2024-01-09 17:51:59 +00:00
|
|
|
$(TEST_LIBCXX_DEPS) \
|
|
|
|
o/$(MODE)/test/libcxx/%.o \
|
|
|
|
o/$(MODE)/test/libcxx/libcxx.pkg \
|
|
|
|
$(CRT) \
|
|
|
|
$(APE_NO_MODIFY_SELF)
|
|
|
|
@$(APELINK)
|
|
|
|
|
2024-06-02 02:57:32 +00:00
|
|
|
$(TEST_LIBCXX_OBJS): private OVERRIDE_CXXFLAGS += -fexceptions -frtti
|
2024-01-09 17:51:59 +00:00
|
|
|
|
2024-07-24 19:26:52 +00:00
|
|
|
o/$(MODE)/test/libcxx/openmp_test.o: private CXXFLAGS += -fopenmp -O3
|
2024-03-03 00:57:56 +00:00
|
|
|
o/$(MODE)/test/libcxx/openmp_test.runs: private QUOTA += -C100
|
2024-01-29 05:57:40 +00:00
|
|
|
|
2024-01-09 17:51:59 +00:00
|
|
|
.PHONY: o/$(MODE)/test/libcxx
|
|
|
|
o/$(MODE)/test/libcxx: \
|
|
|
|
$(TEST_LIBCXX_BINS) \
|
|
|
|
$(TEST_LIBCXX_CHECKS)
|