mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 09:20:29 +00:00
Initial import
This commit is contained in:
commit
c91b3c5006
14915 changed files with 590219 additions and 0 deletions
58
libc/zipos/zipos.mk
Normal file
58
libc/zipos/zipos.mk
Normal file
|
@ -0,0 +1,58 @@
|
|||
#-*-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_ZIPOS
|
||||
|
||||
LIBC_ZIPOS_ARTIFACTS += LIBC_ZIPOS_A
|
||||
LIBC_ZIPOS = $(LIBC_ZIPOS_A_DEPS) $(LIBC_ZIPOS_A)
|
||||
LIBC_ZIPOS_A = o/$(MODE)/libc/zipos/zipos.a
|
||||
LIBC_ZIPOS_A_FILES := $(wildcard libc/zipos/*)
|
||||
LIBC_ZIPOS_A_HDRS = $(filter %.h,$(LIBC_ZIPOS_A_FILES))
|
||||
LIBC_ZIPOS_A_SRCS_S = $(filter %.S,$(LIBC_ZIPOS_A_FILES))
|
||||
LIBC_ZIPOS_A_SRCS_C = $(filter %.c,$(LIBC_ZIPOS_A_FILES))
|
||||
|
||||
LIBC_ZIPOS_A_SRCS = \
|
||||
$(LIBC_ZIPOS_A_SRCS_S) \
|
||||
$(LIBC_ZIPOS_A_SRCS_C)
|
||||
|
||||
LIBC_ZIPOS_A_OBJS = \
|
||||
$(LIBC_ZIPOS_A_SRCS:%=o/$(MODE)/%.zip.o) \
|
||||
$(LIBC_ZIPOS_A_SRCS_S:%.S=o/$(MODE)/%.o) \
|
||||
$(LIBC_ZIPOS_A_SRCS_C:%.c=o/$(MODE)/%.o)
|
||||
|
||||
LIBC_ZIPOS_A_CHECKS = \
|
||||
$(LIBC_ZIPOS_A).pkg \
|
||||
$(LIBC_ZIPOS_A_HDRS:%=o/$(MODE)/%.ok)
|
||||
|
||||
LIBC_ZIPOS_A_DIRECTDEPS = \
|
||||
LIBC_CALLS \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_SYSV \
|
||||
LIBC_STR \
|
||||
LIBC_STUBS \
|
||||
THIRD_PARTY_ZLIB
|
||||
|
||||
LIBC_ZIPOS_A_DEPS := \
|
||||
$(call uniq,$(foreach zipos,$(LIBC_ZIPOS_A_DIRECTDEPS),$($(zipos))))
|
||||
|
||||
$(LIBC_ZIPOS_A):libc/zipos/ \
|
||||
$(LIBC_ZIPOS_A).pkg \
|
||||
$(LIBC_ZIPOS_A_OBJS)
|
||||
|
||||
$(LIBC_ZIPOS_A).pkg: \
|
||||
$(LIBC_ZIPOS_A_OBJS) \
|
||||
$(foreach zipos,$(LIBC_ZIPOS_A_DIRECTDEPS),$($(zipos)_A).pkg)
|
||||
|
||||
LIBC_ZIPOS_LIBS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)))
|
||||
LIBC_ZIPOS_SRCS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)_SRCS))
|
||||
LIBC_ZIPOS_HDRS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)_HDRS))
|
||||
LIBC_ZIPOS_BINS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)_BINS))
|
||||
LIBC_ZIPOS_CHECKS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)_CHECKS))
|
||||
LIBC_ZIPOS_OBJS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)_OBJS))
|
||||
LIBC_ZIPOS_TESTS = $(foreach zipos,$(LIBC_ZIPOS_ARTIFACTS),$($(zipos)_TESTS))
|
||||
$(LIBC_ZIPOS_OBJS): $(BUILD_FILES) libc/zipos/zipos.mk
|
||||
|
||||
.PHONY: o/$(MODE)/libc/zipos
|
||||
o/$(MODE)/libc/zipos: $(LIBC_ZIPOS_CHECKS)
|
Loading…
Add table
Add a link
Reference in a new issue