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
|
2020-08-25 11:23:25 +00:00
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_HDRS = $(filter %.h,$(LIBC_FILES))
|
2021-02-02 11:45:31 +00:00
|
|
|
LIBC_INCS = $(filter %.inc,$(LIBC_FILES))
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_CHECKS = $(LIBC_HDRS:%=o/$(MODE)/%.ok)
|
|
|
|
|
2023-07-10 11:29:46 +00:00
|
|
|
ifneq ($(MODE), llvm)
|
|
|
|
LIBC_FILES := $(wildcard libc/*) $(wildcard libc/isystem/*)
|
|
|
|
else
|
|
|
|
LIBC_FILES := $(wildcard libc/*)
|
|
|
|
endif
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
.PHONY: o/$(MODE)/libc
|
2022-08-13 15:32:34 +00:00
|
|
|
o/$(MODE)/libc: o/$(MODE)/libc/calls \
|
2020-06-15 14:18:57 +00:00
|
|
|
o/$(MODE)/libc/crt \
|
|
|
|
o/$(MODE)/libc/dns \
|
|
|
|
o/$(MODE)/libc/elf \
|
|
|
|
o/$(MODE)/libc/fmt \
|
|
|
|
o/$(MODE)/libc/intrin \
|
|
|
|
o/$(MODE)/libc/log \
|
|
|
|
o/$(MODE)/libc/mem \
|
|
|
|
o/$(MODE)/libc/nexgen32e \
|
2020-08-25 11:23:25 +00:00
|
|
|
o/$(MODE)/libc/nt \
|
2020-06-15 14:18:57 +00:00
|
|
|
o/$(MODE)/libc/runtime \
|
|
|
|
o/$(MODE)/libc/sock \
|
|
|
|
o/$(MODE)/libc/stdio \
|
|
|
|
o/$(MODE)/libc/str \
|
2020-08-25 11:23:25 +00:00
|
|
|
o/$(MODE)/libc/sysv \
|
2020-06-15 14:18:57 +00:00
|
|
|
o/$(MODE)/libc/testlib \
|
2021-10-13 18:26:05 +00:00
|
|
|
o/$(MODE)/libc/thread \
|
2020-06-15 14:18:57 +00:00
|
|
|
o/$(MODE)/libc/time \
|
|
|
|
o/$(MODE)/libc/tinymath \
|
2022-09-07 01:41:08 +00:00
|
|
|
o/$(MODE)/libc/vga \
|
2020-06-15 14:18:57 +00:00
|
|
|
o/$(MODE)/libc/x \
|
|
|
|
o/$(MODE)/libc/zipos \
|
|
|
|
$(LIBC_CHECKS)
|