xref: /freebsd/usr.bin/clang/lldb/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1.include "${SRCTOP}/lib/clang/lldb.pre.mk"
2
3PACKAGE=	lldb
4PROG_CXX=	lldb
5
6CFLAGS+=	-I${LLDB_SRCS}/include
7CFLAGS+=	-I${.OBJDIR}
8
9SRCDIR=		lldb/tools/driver
10SRCS+=		Driver.cpp
11
12.include "${SRCTOP}/lib/clang/clang.build.mk"
13
14LIBDEPS+=	lldb
15LIBDEPS+=	clang
16LIBDEPS+=	llvm
17
18.for lib in ${LIBDEPS}
19DPADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
20LDADD+=		${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
21.endfor
22
23INCFILE=	Options.inc
24TDFILE=		${LLVM_BASE}/${SRCDIR}/Options.td
25GENOPT=		-gen-opt-parser-defs
26${INCFILE}: ${TDFILE}
27	${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
28	    -o ${.TARGET} ${TDFILE}
29TGHDRS+=	${INCFILE}
30
31DEPENDFILES+=	${TGHDRS:C/$/.d/}
32DPSRCS+=	${TGHDRS}
33CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
34
35LIBADD=		tinfow
36LIBADD+=	edit
37LIBADD+=	execinfo
38LIBADD+=	kvm
39LIBADD+=	lua
40LIBADD+=	lzma
41LIBADD+=	ncursesw
42LIBADD+=	panelw
43LIBADD+=	pthread
44LIBADD+=	z
45LIBADD+=	zstd
46
47.include <bsd.prog.mk>
48