2022-04-08 03:30:22 +00:00
|
|
|
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
|
|
#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
|
|
|
|
|
2023-05-14 16:32:15 +00:00
|
|
|
ifeq ($(ARCH), x86_64)
|
|
|
|
|
2022-04-08 03:30:22 +00:00
|
|
|
PKGS += TOOL_PLINKO
|
|
|
|
|
|
|
|
TOOL_PLINKO_SRCS := $(wildcard tool/plinko/*.c)
|
|
|
|
|
|
|
|
TOOL_PLINKO_OBJS = \
|
|
|
|
$(TOOL_PLINKO_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
|
|
|
|
TOOL_PLINKO_COMS = \
|
|
|
|
$(TOOL_PLINKO_SRCS:%.c=o/$(MODE)/%.com)
|
|
|
|
|
|
|
|
TOOL_PLINKO_BINS = \
|
|
|
|
$(TOOL_PLINKO_COMS) \
|
|
|
|
$(TOOL_PLINKO_COMS:%=%.dbg)
|
|
|
|
|
|
|
|
TOOL_PLINKO_DIRECTDEPS = \
|
|
|
|
LIBC_INTRIN \
|
|
|
|
LIBC_LOG \
|
|
|
|
LIBC_MEM \
|
|
|
|
LIBC_CALLS \
|
|
|
|
LIBC_RUNTIME \
|
|
|
|
LIBC_SYSV \
|
|
|
|
LIBC_STDIO \
|
|
|
|
LIBC_X \
|
|
|
|
LIBC_NEXGEN32E \
|
|
|
|
LIBC_ZIPOS \
|
|
|
|
TOOL_PLINKO_LIB
|
|
|
|
|
|
|
|
TOOL_PLINKO_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(TOOL_PLINKO_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
o/$(MODE)/tool/plinko/plinko.pkg: \
|
|
|
|
$(TOOL_PLINKO_OBJS) \
|
|
|
|
$(foreach x,$(TOOL_PLINKO_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
|
|
|
o/$(MODE)/tool/plinko/%.com.dbg: \
|
|
|
|
$(TOOL_PLINKO_DEPS) \
|
|
|
|
o/$(MODE)/tool/plinko/%.o \
|
|
|
|
o/$(MODE)/tool/plinko/plinko.pkg \
|
|
|
|
o/$(MODE)/tool/plinko/lib/library.lisp.zip.o \
|
|
|
|
$(CRT) \
|
2022-05-25 18:31:08 +00:00
|
|
|
$(APE_NO_MODIFY_SELF)
|
2022-04-08 03:30:22 +00:00
|
|
|
@$(APELINK)
|
|
|
|
|
2022-08-21 07:17:20 +00:00
|
|
|
o/$(MODE)/tool/plinko/plinko.com: \
|
|
|
|
o/$(MODE)/tool/plinko/plinko.com.dbg \
|
|
|
|
o/$(MODE)/third_party/zip/zip.com \
|
|
|
|
o/$(MODE)/tool/build/symtab.com
|
|
|
|
@$(MAKE_OBJCOPY)
|
|
|
|
@$(MAKE_SYMTAB_CREATE)
|
|
|
|
@$(MAKE_SYMTAB_ZIP)
|
|
|
|
|
2022-08-11 01:00:45 +00:00
|
|
|
o/$(MODE)/tool/plinko/plinko.com.zip.o: \
|
|
|
|
o/$(MODE)/tool/plinko/plinko.com
|
2022-04-08 03:30:22 +00:00
|
|
|
|
2022-08-11 01:00:45 +00:00
|
|
|
o/$(MODE)/tool/plinko/plinko.com.zip.o \
|
2022-04-08 03:30:22 +00:00
|
|
|
o/$(MODE)/tool/plinko/lib/library.lisp.zip.o \
|
|
|
|
o/$(MODE)/tool/plinko/lib/binarytrees.lisp.zip.o \
|
|
|
|
o/$(MODE)/tool/plinko/lib/algebra.lisp.zip.o \
|
|
|
|
o/$(MODE)/tool/plinko/lib/infix.lisp.zip.o \
|
|
|
|
o/$(MODE)/tool/plinko/lib/ok.lisp.zip.o: \
|
|
|
|
ZIPOBJ_FLAGS += \
|
|
|
|
-B
|
|
|
|
|
2023-05-14 16:32:15 +00:00
|
|
|
endif
|
|
|
|
|
2022-04-08 03:30:22 +00:00
|
|
|
.PHONY: o/$(MODE)/tool/plinko
|
|
|
|
o/$(MODE)/tool/plinko: $(TOOL_PLINKO_BINS) $(TOOL_PLINKO_CHECKS)
|