mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-01 23:40:28 +00:00
Import GNU Make 4.4.1
Landlock Make hasn't been working well on AARCH64 systems. Let's do this over the right way, using our new build tools.
This commit is contained in:
parent
9315ebbfd9
commit
14bf57180f
88 changed files with 13931 additions and 16191 deletions
85
third_party/make/BUILD.mk
vendored
85
third_party/make/BUILD.mk
vendored
|
@ -14,67 +14,42 @@ THIRD_PARTY_MAKE_A = \
|
|||
o/$(MODE)/third_party/make/make.a
|
||||
|
||||
THIRD_PARTY_MAKE_HDRS = \
|
||||
third_party/make/filename.h \
|
||||
third_party/make/dirname.h \
|
||||
third_party/make/stddef.h \
|
||||
third_party/make/error.h \
|
||||
third_party/make/gnumake.h \
|
||||
third_party/make/gettext.h \
|
||||
third_party/make/stdlib.h \
|
||||
third_party/make/xalloc.h \
|
||||
third_party/make/xalloc-oversized.h \
|
||||
third_party/make/os.h \
|
||||
third_party/make/stdint.h \
|
||||
third_party/make/fd-hook.h \
|
||||
third_party/make/job.h \
|
||||
third_party/make/unistd.h \
|
||||
third_party/make/getprogname.h \
|
||||
third_party/make/config.h \
|
||||
third_party/make/concat-filename.h \
|
||||
third_party/make/findprog.h \
|
||||
third_party/make/intprops.h \
|
||||
third_party/make/exitfail.h \
|
||||
third_party/make/alloca.h \
|
||||
third_party/make/hash.h \
|
||||
third_party/make/rule.h \
|
||||
third_party/make/filedef.h \
|
||||
third_party/make/fcntl.h \
|
||||
third_party/make/stdio.h \
|
||||
third_party/make/variable.h \
|
||||
third_party/make/commands.h \
|
||||
third_party/make/glob.h \
|
||||
third_party/make/config.h \
|
||||
third_party/make/debug.h \
|
||||
third_party/make/output.h \
|
||||
third_party/make/getopt.h \
|
||||
third_party/make/dep.h \
|
||||
third_party/make/commands.h
|
||||
|
||||
third_party/make/findprog.h \
|
||||
third_party/make/filedef.h \
|
||||
third_party/make/filename.h \
|
||||
third_party/make/getopt.h \
|
||||
third_party/make/gettext.h \
|
||||
third_party/make/gnumake.h \
|
||||
third_party/make/hash.h \
|
||||
third_party/make/job.h \
|
||||
third_party/make/makeint.h \
|
||||
third_party/make/mkconfig.h \
|
||||
third_party/make/mkcustom.h \
|
||||
third_party/make/os.h \
|
||||
third_party/make/output.h \
|
||||
third_party/make/rule.h \
|
||||
third_party/make/shuffle.h \
|
||||
third_party/make/variable.h
|
||||
|
||||
THIRD_PARTY_MAKE_INCS = \
|
||||
third_party/make/makeint.inc
|
||||
third_party/make/makeint.h
|
||||
|
||||
THIRD_PARTY_MAKE_CHECKS = \
|
||||
$(THIRD_PARTY_MAKE_A).pkg
|
||||
|
||||
# libgnu.a recipe
|
||||
THIRD_PARTY_MAKE_SRCS_LIB = \
|
||||
third_party/make/basename-lgpl.c \
|
||||
third_party/make/concat-filename.c \
|
||||
third_party/make/dirname-lgpl.c \
|
||||
third_party/make/error.c \
|
||||
third_party/make/exitfail.c \
|
||||
third_party/make/fcntl.c \
|
||||
third_party/make/fd-hook.c \
|
||||
third_party/make/findprog-in.c \
|
||||
third_party/make/getprogname.c \
|
||||
third_party/make/stripslash.c \
|
||||
third_party/make/unistd.c \
|
||||
third_party/make/xalloc-die.c \
|
||||
third_party/make/xconcat-filename.c \
|
||||
third_party/make/xmalloc.c
|
||||
|
||||
THIRD_PARTY_MAKE_SRCS_BASE = \
|
||||
THIRD_PARTY_MAKE_SRCS = \
|
||||
third_party/make/glob.c \
|
||||
third_party/make/commands.c \
|
||||
third_party/make/default.c \
|
||||
third_party/make/dir.c \
|
||||
third_party/make/concat-filename.c \
|
||||
third_party/make/findprog-in.c \
|
||||
third_party/make/expand.c \
|
||||
third_party/make/file.c \
|
||||
third_party/make/function.c \
|
||||
|
@ -97,12 +72,9 @@ THIRD_PARTY_MAKE_SRCS_BASE = \
|
|||
third_party/make/strcache.c \
|
||||
third_party/make/variable.c \
|
||||
third_party/make/version.c \
|
||||
third_party/make/shuffle.c \
|
||||
third_party/make/vpath.c
|
||||
|
||||
THIRD_PARTY_MAKE_SRCS = \
|
||||
$(THIRD_PARTY_MAKE_SRCS_BASE) \
|
||||
$(THIRD_PARTY_MAKE_SRCS_LIB)
|
||||
|
||||
THIRD_PARTY_MAKE_OBJS = \
|
||||
$(THIRD_PARTY_MAKE_SRCS:%.c=o/$(MODE)/%.o)
|
||||
|
||||
|
@ -170,12 +142,9 @@ o/$(MODE)/third_party/make/hash.o: private \
|
|||
|
||||
$(THIRD_PARTY_MAKE_OBJS): private \
|
||||
CFLAGS += \
|
||||
-fportcosmo \
|
||||
-DNO_ARCHIVES \
|
||||
-DHAVE_CONFIG_H \
|
||||
-DSTACK_FRAME_UNLIMITED \
|
||||
-DINCLUDEDIR=\".\" \
|
||||
-DLIBDIR=\".\" \
|
||||
-DLOCALEDIR=\".\"
|
||||
-DHAVE_CONFIG_H
|
||||
|
||||
.PHONY: o/$(MODE)/third_party/make
|
||||
o/$(MODE)/third_party/make: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue