sync with OpenBSD -current

This commit is contained in:
purplerain 2024-02-09 02:05:10 +00:00
parent 014747a69d
commit d68c02c8a8
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
16 changed files with 47 additions and 26 deletions

View file

@ -1,5 +1,5 @@
# $FreeBSD: src/gnu/usr.bin/cc/cc_tools/Makefile,v 1.88.8.1 2009/04/15 03:14:26 kensmith Exp $
# $OpenBSD: Makefile,v 1.18 2017/07/19 12:50:32 espie Exp $
# $OpenBSD: Makefile,v 1.19 2024/02/08 20:28:54 miod Exp $
.include <bsd.own.mk>
@ -390,11 +390,12 @@ gengtype-yacc+%DIKED.c: gengtype-yacc.c
${.ALLSRC} > ${.TARGET}
GENSRCS+= gengtype-lex.c gengtype-yacc.h gengtype-yacc+%DIKED.c
CLEANFILES+= gengtype-yacc.c
CLEANFILES+= gengtype-yacc.c gengtype-lex.d gengtype-yacc+%DIKED.d
gengtype: gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o errors.o \
${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
CLEANFILES+= gengtype.d
gtype-desc.h: gengtype
./gengtype
@ -411,17 +412,23 @@ CLEANFILES+= gt-*.h gtype-*.h
.for F in check checksum genrtl modes
gen$F: gen$F.o errors.o ${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
CLEANFILES+= gen$F.d
.endfor
CLEANFILES+= errors.d
.for F in attr attrtab automata codes conditions config constants emit \
extract flags opinit output peep preds recog
gen$F: gen$F.o rtl.o read-rtl.o ggc-none.o vec.o min-insn-modes.o \
gensupport.o print-rtl.o errors.o ${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} -lm
CLEANFILES+= gen$F.d
.endfor
CLEANFILES+= rtl.d read-rtl.d ggc-none.d vec.d min-insn-modes.d \
gensupport.d print-rtl.d
gencondmd: gencondmd.o
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
CLEANFILES+= gencondmd.d
#
# Generated .md files.

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2023/11/11 18:35:37 robert Exp $
# $OpenBSD: Makefile,v 1.9 2024/02/08 20:28:54 miod Exp $
LIB= LLVMExecutionEngine
NOPROFILE=
@ -143,6 +143,7 @@ ExecutionEngineELF.cpp:
.PATH: ${.CURDIR}/../../../llvm/llvm/lib/ExecutionEngine/RuntimeDyld
.PATH: ${.CURDIR}/../../../llvm/llvm/lib/ExecutionEngine/RuntimeDyld/Targets
CLEANFILES+= ExecutionEngineCore.cpp \
CLEANFILES+= ExecutionEngineCOFF.cpp \
ExecutionEngineCore.cpp \
ExecutionEngineMachO.cpp \
ExecutionEngineELF.cpp

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2023/11/11 18:35:37 robert Exp $
# $OpenBSD: Makefile,v 1.2 2024/02/08 20:28:54 miod Exp $
LIB= LLVMIRPrinter
NOPROFILE=
@ -9,3 +9,5 @@ IRPrinterIRPrintingPasses.cpp:
ln -s ${LLVM_SRCS}/lib/IRPrinter/IRPrintingPasses.cpp $@
.PATH: ${.CURDIR}/../../../llvm/llvm/lib/IRPrinter
CLEANFILES+= IRPrinterIRPrintingPasses.cpp

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.12 2023/11/11 18:35:37 robert Exp $
# $OpenBSD: Makefile,v 1.13 2024/02/08 20:28:54 miod Exp $
LIB= LLVMInstrumentation
NOPROFILE=
@ -31,3 +31,5 @@ InstrumentationSanitizerBinaryMetadata.cpp:
ln -s ${LLVM_SRCS}/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp $@
.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Transforms/Instrumentation
CLEANFILES+= InstrumentationSanitizerBinaryMetadata.cpp

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2023/11/11 18:35:37 robert Exp $
# $OpenBSD: Makefile,v 1.12 2024/02/08 20:28:54 miod Exp $
LIB= LLVMObject
NOPROFILE=
@ -53,4 +53,5 @@ ObjectMinidump.cpp:
.PATH: ${.CURDIR}/../../../llvm/llvm/lib/Object
CLEANFILES+= ObjectELF.cpp ObjectError.cpp ObjectMinidump.cpp
CLEANFILES+= ObjectDXContainer.cpp ObjectELF.cpp ObjectError.cpp \
ObjectMinidump.cpp

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2023/11/11 18:35:38 robert Exp $
# $OpenBSD: Makefile,v 1.11 2024/02/08 20:28:54 miod Exp $
LIB= clangAST
NOPIC=
@ -121,6 +121,8 @@ SRCS+= ByteCodeEmitter.cpp \
BUILDFIRST= AttrDocTable.inc \
Opcodes.inc
CLEANFILES+= AttrDocTable.inc \
Opcodes.inc
AttrDocTable.inc:
${TBLGEN} -I${CLANG_INC} -gen-clang-attr-doc-table ${CLANG_INC}/clang/Basic/Attr.td \

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.11 2023/11/11 18:35:38 robert Exp $
# $OpenBSD: Makefile,v 1.12 2024/02/08 20:28:54 miod Exp $
LIB= clangBasic
NOPIC=
@ -85,6 +85,7 @@ SRCS+= AArch64.cpp \
.PATH: ${.CURDIR}/../../../llvm/clang/lib/Basic/Targets
BUILDFIRST= VCSVersion.inc
CLEANFILES+= VCSVersion.inc
VCSVersion.inc:
touch $@

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.5 2023/11/11 18:35:39 robert Exp $
# $OpenBSD: Makefile,v 1.6 2024/02/08 20:28:54 miod Exp $
LIB= lldCommon
NOPROFILE=
@ -22,6 +22,7 @@ SRCS= Args.cpp \
.PATH: ${.CURDIR}/../../../llvm/lld/Common
BUILDFIRST= VCSVersion.inc
CLEANFILES+= VCSVersion.inc
VCSVersion.inc:
touch $@

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.10 2023/11/11 18:35:40 robert Exp $
# $OpenBSD: Makefile,v 1.11 2024/02/08 20:28:54 miod Exp $
.include <bsd.own.mk>
@ -74,6 +74,7 @@ LLVM_LIBDEPS= clangAST \
lldbUtility
BUILDFIRST= VCSVersion.inc LLGSOptions.inc
CLEANFILES+= VCSVersion.inc LLGSOptions.inc
VCSVersion.inc:
touch $@

View file

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2023/11/11 18:35:40 robert Exp $
# $OpenBSD: Makefile,v 1.16 2024/02/08 20:28:54 miod Exp $
.include <bsd.own.mk>
@ -82,6 +82,7 @@ Options.inc: Options.td
-o ${.TARGET} ${.ALLSRC}
BUILDFIRST= VCSVersion.inc
CLEANFILES+= Options.inc VCSVersion.inc
VCSVersion.inc:
touch $@