mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
0e2b1bfeed
- You can now use _gc(malloc()) in multithreaded programs - This change fixes a bug where fork() on NT disabled TLS - Fixed TLS code morphing on XNU/NT, for R8-R15 registers
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#-*-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───────────────────────┘
|
|
|
|
PKGS += TOOL_HASH
|
|
|
|
TOOL_HASH_SRCS := $(wildcard tool/hash/*.c)
|
|
|
|
TOOL_HASH_OBJS = \
|
|
$(TOOL_HASH_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
TOOL_HASH_COMS = \
|
|
$(TOOL_HASH_SRCS:%.c=o/$(MODE)/%.com)
|
|
|
|
TOOL_HASH_BINS = \
|
|
$(TOOL_HASH_COMS) \
|
|
$(TOOL_HASH_COMS:%=%.dbg)
|
|
|
|
TOOL_HASH_DIRECTDEPS = \
|
|
LIBC_FMT \
|
|
LIBC_INTRIN \
|
|
LIBC_NEXGEN32E \
|
|
LIBC_RUNTIME \
|
|
LIBC_STDIO \
|
|
LIBC_STR \
|
|
LIBC_MEM \
|
|
LIBC_STUBS
|
|
|
|
TOOL_HASH_DEPS := \
|
|
$(call uniq,$(foreach x,$(TOOL_HASH_DIRECTDEPS),$($(x))))
|
|
|
|
o/$(MODE)/tool/hash/hash.pkg: \
|
|
$(TOOL_HASH_OBJS) \
|
|
$(foreach x,$(TOOL_HASH_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
o/$(MODE)/tool/hash/%.com.dbg: \
|
|
$(TOOL_HASH_DEPS) \
|
|
o/$(MODE)/tool/hash/%.o \
|
|
o/$(MODE)/tool/hash/hash.pkg \
|
|
$(CRT) \
|
|
$(APE_NO_MODIFY_SELF)
|
|
@$(APELINK)
|
|
|
|
$(TOOL_HASH_OBJS): \
|
|
$(BUILD_FILES) \
|
|
tool/hash/hash.mk
|
|
|
|
.PHONY: o/$(MODE)/tool/hash
|
|
o/$(MODE)/tool/hash: $(TOOL_HASH_BINS) $(TOOL_HASH_CHECKS)
|