summaryrefslogtreecommitdiff
path: root/external/bsd/llvm/lib/liblldDriver/Makefile
blob: 9521203bb3881f95f2808e5c6a6dd2e0602c5270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#	$NetBSD: Makefile,v 1.7 2015/01/29 20:41:37 joerg Exp $

LIB=	lldDriver

.include <bsd.init.mk>

.PATH: ${LLD_SRCDIR}/lib/Driver

SRCS+=	CoreDriver.cpp \
	DarwinLdDriver.cpp \
	Driver.cpp \
	DarwinInputGraph.cpp \
	GnuLdDriver.cpp \
	GnuLdInputGraph.cpp \
	UniversalDriver.cpp \
	WinLinkDriver.cpp \
	WinLinkInputGraph.cpp \
	WinLinkModuleDef.cpp

TABLEGEN_SRC=	CoreOptions.td DarwinLdOptions.td GnuLdOptions.td \
	UniversalDriverOptions.td WinLinkOptions.td

TABLEGEN_OUTPUT.UniversalDriverOptions.td= \
	UniversalDriverOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.CoreOptions.td= \
	CoreOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.DarwinLdOptions.td= \
	DarwinLdOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.GnuLdOptions.td= \
	GnuLdOptions.inc|-gen-opt-parser-defs
TABLEGEN_OUTPUT.WinLinkOptions.td= \
	WinLinkOptions.inc|-gen-opt-parser-defs

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

.if defined(HOSTLIB)
.include <bsd.hostlib.mk>
.else
.include <bsd.lib.mk>
.endif