head	1.2;
access;
symbols
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.8
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.6
	perseant-exfatfs-base:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.4
	netbsd-10-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.2
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.1.0.4
	cjep_staticlib_x-base:1.1
	phil-wifi-20200421:1.1
	phil-wifi-20200411:1.1
	is-mlppp:1.1.0.2
	is-mlppp-base:1.1
	phil-wifi-20200406:1.1
	phil-wifi-20191119:1.1;
locks; strict;
comment	@# @;


1.2
date	2021.05.30.01.56.48;	author joerg;	state Exp;
branches;
next	1.1;
commitid	3Zpdqzdbkf2q47VC;

1.1
date	2019.11.11.22.45.00;	author joerg;	state Exp;
branches
	1.1.4.1;
next	;
commitid	IMynySmLyNzibuKB;

1.1.4.1
date	2021.05.31.22.06.59;	author cjep;	state Exp;
branches;
next	;
commitid	eWz9SBW0XqKjJlVC;


desc
@@


1.2
log
@Update LLVM build system for 249b40b558955afe5ac2b549edcf2d7f859c8cc9

This enables the use of modules for a significant build performance gain
when building with clang as host compiler or when using HAVE_LLVM=yes.
Switch libc++ to using the copy from the mono-repo.
@
text
@#	$NetBSD: Makefile,v 1.1 2019/11/11 22:45:00 joerg Exp $

PROG_CXX=	llvm-objdump
NOMAN=		yes

.include <bsd.init.mk>

.PATH: ${LLVM_SRCDIR}/tools/llvm-objdump

SRCS=	llvm-objdump.cpp \
	COFFDump.cpp \
	ELFDump.cpp \
	MachODump.cpp \
	SourcePrinter.cpp \
	WasmDump.cpp \
	XCOFFDump.cpp

TABLEGEN_SRC=	ObjdumpOpts.td OtoolOpts.td

TABLEGEN_OUTPUT.ObjdumpOpts.td= \
	ObjdumpOpts.inc|-gen-opt-parser-defs

TABLEGEN_OUTPUT.OtoolOpts.td= \
	OtoolOpts.inc|-gen-opt-parser-defs

.include "${.PARSEDIR}/../../tablegen.mk"

LLVM_LIBS+= \
	AArch64Disassembler \
	AArch64AsmParser \
	AArch64MCTargetDesc \
	AArch64TargetInfo \
	AArch64Utils \
	AMDGPUDisassembler \
	AMDGPUTargetInfo \
	AMDGPUMCTargetDesc \
	AMDGPUAsmParser \
	AMDGPUUtils \
	ARMDisassembler \
	ARMAsmParser \
	ARMMCTargetDesc \
	ARMTargetInfo \
	ARMUtils \
	MipsDisassembler \
	MipsAsmParser \
	MipsMCTargetDesc \
	MipsTargetInfo \
	PowerPCDisassembler \
	PowerPCAsmParser \
	PowerPCMCTargetDesc \
	PowerPCTargetInfo \
	SparcDisassembler \
	SparcAsmParser \
	SparcMCTargetDesc \
	SparcTargetInfo \
	X86Disassembler \
	X86AsmParser \
	X86CodeGen \
	X86MCTargetDesc \
	X86TargetInfo \
	CodeGen \
	MCDisassembler \
	DebugInfoDWARF \
	DebugInfoSymbolize \
	DebugInfoPDB \
	Object \
	TextAPI \
	BitReader \
	BitstreamReader \
	MCParser \
	MC \
	IR \
	Remarks \
	BinaryFormat \
	Option \
	Support \
	Demangle

LDADD+=	-lz
DPADD+=	${LIBZ}

.include "${.PARSEDIR}/../../link.mk"

.include <bsd.prog.mk>
@


1.1
log
@Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2018/07/17 18:55:26 joerg Exp $
d14 13
a26 1
	WasmDump.cpp
a60 1
	X86Utils \
a65 1
	DebugInfoPDBNative \
d67 1
d73 1
d75 1
@


1.1.4.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2021/05/30 01:56:48 joerg Exp $
d14 1
a14 13
	SourcePrinter.cpp \
	WasmDump.cpp \
	XCOFFDump.cpp

TABLEGEN_SRC=	ObjdumpOpts.td OtoolOpts.td

TABLEGEN_OUTPUT.ObjdumpOpts.td= \
	ObjdumpOpts.inc|-gen-opt-parser-defs

TABLEGEN_OUTPUT.OtoolOpts.td= \
	OtoolOpts.inc|-gen-opt-parser-defs

.include "${.PARSEDIR}/../../tablegen.mk"
d49 1
d55 1
a56 1
	TextAPI \
a61 1
	Remarks \
a62 1
	Option \
@


