2022-03-17 21:12:41 +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 ────────────────────┘
|
2022-03-17 21:12:41 +00:00
|
|
|
|
|
|
|
PKGS += TOOL_LAMBDA
|
|
|
|
|
|
|
|
TOOL_LAMBDA_SRCS := $(wildcard tool/lambda/*.c)
|
|
|
|
|
|
|
|
TOOL_LAMBDA_OBJS = \
|
|
|
|
$(TOOL_LAMBDA_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
|
|
|
|
TOOL_LAMBDA_COMS := \
|
2024-03-03 00:57:56 +00:00
|
|
|
$(TOOL_LAMBDA_SRCS:%.c=o/$(MODE)/%)
|
2022-03-17 21:12:41 +00:00
|
|
|
|
|
|
|
TOOL_LAMBDA_BINS = \
|
|
|
|
$(TOOL_LAMBDA_COMS) \
|
|
|
|
$(TOOL_LAMBDA_COMS:%=%.dbg)
|
|
|
|
|
|
|
|
TOOL_LAMBDA_DIRECTDEPS = \
|
2023-06-18 07:55:09 +00:00
|
|
|
LIBC_CALLS \
|
|
|
|
LIBC_FMT \
|
2022-03-17 21:12:41 +00:00
|
|
|
LIBC_INTRIN \
|
|
|
|
LIBC_LOG \
|
|
|
|
LIBC_MEM \
|
2023-06-18 07:55:09 +00:00
|
|
|
LIBC_NEXGEN32E \
|
2022-03-17 21:12:41 +00:00
|
|
|
LIBC_RUNTIME \
|
2023-06-18 07:55:09 +00:00
|
|
|
LIBC_STDIO \
|
2022-03-17 21:12:41 +00:00
|
|
|
LIBC_STR \
|
|
|
|
LIBC_SYSV \
|
|
|
|
LIBC_X \
|
2023-06-18 07:55:09 +00:00
|
|
|
THIRD_PARTY_GETOPT \
|
2024-07-30 16:14:57 +00:00
|
|
|
THIRD_PARTY_MUSL \
|
2023-06-18 07:55:09 +00:00
|
|
|
TOOL_LAMBDA_LIB
|
2022-03-17 21:12:41 +00:00
|
|
|
|
|
|
|
TOOL_LAMBDA_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(TOOL_LAMBDA_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
o/$(MODE)/tool/lambda/lambda.pkg: \
|
|
|
|
$(TOOL_LAMBDA_OBJS) \
|
|
|
|
$(foreach x,$(TOOL_LAMBDA_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
2024-03-03 00:57:56 +00:00
|
|
|
o/$(MODE)/tool/lambda/%.dbg: \
|
2022-03-17 21:12:41 +00:00
|
|
|
$(TOOL_LAMBDA_DEPS) \
|
|
|
|
o/$(MODE)/tool/lambda/%.o \
|
|
|
|
o/$(MODE)/tool/lambda/lambda.pkg \
|
|
|
|
$(CRT) \
|
2022-05-25 18:31:08 +00:00
|
|
|
$(APE_NO_MODIFY_SELF)
|
2022-03-17 21:12:41 +00:00
|
|
|
@$(APELINK)
|
|
|
|
|
2022-08-11 01:00:45 +00:00
|
|
|
o/$(MODE)/tool/lambda/tromp.o: private \
|
2023-06-06 06:35:31 +00:00
|
|
|
CFLAGS += \
|
2022-03-17 21:12:41 +00:00
|
|
|
-w
|
|
|
|
|
|
|
|
$(TOOL_LAMBDA_OBJS): \
|
|
|
|
$(BUILD_FILES) \
|
2023-11-28 19:21:08 +00:00
|
|
|
tool/lambda/BUILD.mk
|
2022-03-17 21:12:41 +00:00
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/tool/lambda
|
|
|
|
o/$(MODE)/tool/lambda: $(TOOL_LAMBDA_BINS) $(TOOL_LAMBDA_CHECKS)
|