2020-06-15 14:18:57 +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───────────────────────┘
|
|
|
|
|
|
|
|
PKGS += LIBC_SOCK
|
|
|
|
|
|
|
|
LIBC_SOCK_ARTIFACTS += LIBC_SOCK_A
|
|
|
|
LIBC_SOCK = $(LIBC_SOCK_A_DEPS) $(LIBC_SOCK_A)
|
|
|
|
LIBC_SOCK_A = o/$(MODE)/libc/sock/sock.a
|
|
|
|
LIBC_SOCK_A_FILES := $(wildcard libc/sock/*)
|
|
|
|
LIBC_SOCK_A_HDRS = $(filter %.h,$(LIBC_SOCK_A_FILES))
|
2021-02-02 11:45:31 +00:00
|
|
|
LIBC_SOCK_A_INCS = $(filter %.inc,$(LIBC_SOCK_A_FILES))
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_SOCK_A_SRCS = $(filter %.c,$(LIBC_SOCK_A_FILES))
|
|
|
|
|
|
|
|
LIBC_SOCK_A_OBJS = \
|
|
|
|
$(LIBC_SOCK_A_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
|
|
|
|
LIBC_SOCK_A_CHECKS = \
|
|
|
|
$(LIBC_SOCK_A).pkg \
|
|
|
|
$(LIBC_SOCK_A_HDRS:%=o/$(MODE)/%.ok)
|
|
|
|
|
|
|
|
LIBC_SOCK_A_DIRECTDEPS = \
|
2020-11-28 20:01:51 +00:00
|
|
|
LIBC_BITS \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_CALLS \
|
|
|
|
LIBC_FMT \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_INTRIN \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_MEM \
|
2020-12-09 23:04:54 +00:00
|
|
|
LIBC_NEXGEN32E \
|
2021-04-02 02:32:39 +00:00
|
|
|
LIBC_NT_ADVAPI32 \
|
2021-06-24 19:31:26 +00:00
|
|
|
LIBC_NT_IPHLPAPI \
|
2020-12-28 21:47:19 +00:00
|
|
|
LIBC_NT_KERNEL32 \
|
2020-12-09 23:04:54 +00:00
|
|
|
LIBC_NT_MSWSOCK \
|
2020-11-28 20:01:51 +00:00
|
|
|
LIBC_NT_NTDLL \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_NT_WS2_32 \
|
2021-06-24 17:53:27 +00:00
|
|
|
LIBC_NT_IPHLPAPI \
|
2020-12-09 23:04:54 +00:00
|
|
|
LIBC_RUNTIME \
|
|
|
|
LIBC_STDIO \
|
2021-02-02 11:45:31 +00:00
|
|
|
LIBC_STR \
|
2021-06-24 19:31:26 +00:00
|
|
|
LIBC_STR \
|
2020-12-09 23:04:54 +00:00
|
|
|
LIBC_STUBS \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_SYSV_CALLS \
|
2021-06-24 19:31:26 +00:00
|
|
|
LIBC_TIME \
|
|
|
|
LIBC_UNICODE \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_SYSV
|
|
|
|
|
|
|
|
LIBC_SOCK_A_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(LIBC_SOCK_A_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
$(LIBC_SOCK_A): libc/sock/ \
|
|
|
|
$(LIBC_SOCK_A).pkg \
|
|
|
|
$(LIBC_SOCK_A_OBJS)
|
|
|
|
|
|
|
|
$(LIBC_SOCK_A).pkg: \
|
|
|
|
$(LIBC_SOCK_A_OBJS) \
|
|
|
|
$(foreach x,$(LIBC_SOCK_A_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
|
|
|
LIBC_SOCK_LIBS = $(foreach x,$(LIBC_SOCK_ARTIFACTS),$($(x)))
|
|
|
|
LIBC_SOCK_SRCS = $(foreach x,$(LIBC_SOCK_ARTIFACTS),$($(x)_SRCS))
|
|
|
|
LIBC_SOCK_HDRS = $(foreach x,$(LIBC_SOCK_ARTIFACTS),$($(x)_HDRS))
|
2021-02-02 11:45:31 +00:00
|
|
|
LIBC_SOCK_INCS = $(foreach x,$(LIBC_SOCK_ARTIFACTS),$($(x)_INCS))
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_SOCK_CHECKS = $(foreach x,$(LIBC_SOCK_ARTIFACTS),$($(x)_CHECKS))
|
|
|
|
LIBC_SOCK_OBJS = $(foreach x,$(LIBC_SOCK_ARTIFACTS),$($(x)_OBJS))
|
|
|
|
$(LIBC_SOCK_OBJS): $(BUILD_FILES) libc/sock/sock.mk
|
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/libc/sock
|
|
|
|
o/$(MODE)/libc/sock: $(LIBC_SOCK_CHECKS)
|