2021-07-08 04:44:27 +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 += NET_HTTPS
|
|
|
|
|
|
|
|
NET_HTTPS_ARTIFACTS += NET_HTTPS_A
|
|
|
|
NET_HTTPS = $(NET_HTTPS_A_DEPS) $(NET_HTTPS_A)
|
|
|
|
NET_HTTPS_A = o/$(MODE)/net/https/https.a
|
|
|
|
NET_HTTPS_A_FILES := $(wildcard net/https/*)
|
2023-07-07 17:00:49 +00:00
|
|
|
NET_HTTPS_A_CERTS := $(wildcard usr/share/ssl/root/*.pem)
|
2021-07-08 04:44:27 +00:00
|
|
|
NET_HTTPS_A_HDRS = $(filter %.h,$(NET_HTTPS_A_FILES))
|
|
|
|
NET_HTTPS_A_SRCS = $(filter %.c,$(NET_HTTPS_A_FILES))
|
|
|
|
|
|
|
|
NET_HTTPS_A_OBJS = \
|
2021-09-28 05:58:51 +00:00
|
|
|
o/$(MODE)/usr/share/ssl/root/.zip.o \
|
2021-07-08 04:44:27 +00:00
|
|
|
$(NET_HTTPS_A_SRCS:%.c=o/$(MODE)/%.o) \
|
|
|
|
$(NET_HTTPS_A_CERTS:%=o/$(MODE)/%.zip.o)
|
|
|
|
|
|
|
|
NET_HTTPS_A_CHECKS = \
|
|
|
|
$(NET_HTTPS_A).pkg \
|
|
|
|
$(NET_HTTPS_A_HDRS:%=o/$(MODE)/%.ok)
|
|
|
|
|
|
|
|
NET_HTTPS_A_DIRECTDEPS = \
|
2021-07-12 06:17:47 +00:00
|
|
|
LIBC_CALLS \
|
2021-07-08 04:44:27 +00:00
|
|
|
LIBC_FMT \
|
|
|
|
LIBC_INTRIN \
|
|
|
|
LIBC_LOG \
|
|
|
|
LIBC_MEM \
|
|
|
|
LIBC_NEXGEN32E \
|
|
|
|
LIBC_RUNTIME \
|
|
|
|
LIBC_STDIO \
|
|
|
|
LIBC_STR \
|
|
|
|
LIBC_SYSV \
|
2021-08-14 13:17:56 +00:00
|
|
|
LIBC_TIME \
|
2021-07-08 04:44:27 +00:00
|
|
|
LIBC_X \
|
2023-05-13 05:42:57 +00:00
|
|
|
THIRD_PARTY_COMPILER_RT \
|
2021-07-08 04:44:27 +00:00
|
|
|
THIRD_PARTY_MBEDTLS
|
|
|
|
|
|
|
|
NET_HTTPS_A_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(NET_HTTPS_A_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
$(NET_HTTPS_A): net/https/ \
|
|
|
|
$(NET_HTTPS_A).pkg \
|
|
|
|
$(NET_HTTPS_A_OBJS)
|
|
|
|
|
|
|
|
$(NET_HTTPS_A).pkg: \
|
|
|
|
$(NET_HTTPS_A_OBJS) \
|
|
|
|
$(foreach x,$(NET_HTTPS_A_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
2022-08-19 17:00:41 +00:00
|
|
|
o/$(MODE)/usr/share/ssl/root/.zip.o: \
|
|
|
|
usr/share/ssl/root
|
|
|
|
|
2021-07-08 04:44:27 +00:00
|
|
|
NET_HTTPS_LIBS = $(foreach x,$(NET_HTTPS_ARTIFACTS),$($(x)))
|
|
|
|
NET_HTTPS_SRCS = $(foreach x,$(NET_HTTPS_ARTIFACTS),$($(x)_SRCS))
|
|
|
|
NET_HTTPS_HDRS = $(foreach x,$(NET_HTTPS_ARTIFACTS),$($(x)_HDRS))
|
|
|
|
NET_HTTPS_OBJS = $(foreach x,$(NET_HTTPS_ARTIFACTS),$($(x)_OBJS))
|
|
|
|
NET_HTTPS_CHECKS = $(foreach x,$(NET_HTTPS_ARTIFACTS),$($(x)_CHECKS))
|
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/net/https
|
|
|
|
o/$(MODE)/net/https: $(NET_HTTPS_CHECKS)
|