xref: /freebsd-12.1/gnu/lib/Makefile (revision 6592a716)
19b7a44a6SPeter Wemm# $FreeBSD$
2984de365SRodney W. Grimes
3c6063d0dSWarner Losh.include <src.opts.mk>
4e1fe3dbaSRuslan Ermilov
5*6592a716SAndrew TurnerSUBDIR=
6b31f8596SEd MasteSUBDIR.${MK_DIALOG}+=	libdialog
7bdc0c74bSDimitry AndricSUBDIR.${MK_GCC}+=	libgcov
8bdc0c74bSDimitry Andric.if ${MK_GCC} != "no" && ${MK_OPENMP} == "no"
9bdc0c74bSDimitry AndricSUBDIR+=		libgomp
10bdc0c74bSDimitry Andric.endif
11016e7731SEd MasteSUBDIR.${MK_SSP}+=	libssp
12016e7731SEd MasteSUBDIR.${MK_TESTS}+=	tests
1340f51e75SBaptiste Daroussin
14*6592a716SAndrew Turner.if ${MK_BSD_CRTBEGIN} == "no"
15*6592a716SAndrew TurnerSUBDIR+=		csu
16*6592a716SAndrew Turner.endif
17*6592a716SAndrew Turner
18af8612c1SBaptiste Daroussin.if ${MK_GNU_GREP} != "no" || ${MK_GNU_GREP_COMPAT} != "no" || \
19af8612c1SBaptiste Daroussin    ${MK_GDB} != "no"
20d1a69033SEd MasteSUBDIR+=		libregex
21d1a69033SEd Maste.endif
22d1a69033SEd Maste
23c7fbd772SEd Maste.if ${MK_LLVM_LIBUNWIND} == "no"
24c7fbd772SEd MasteSUBDIR+=		libgcc
25c7fbd772SEd Maste.endif
26c7fbd772SEd Maste
27b5ad6294SPeter Wemm# libsupc++ uses libstdc++ headers, although 'make includes' should
28b5ad6294SPeter Wemm# have taken care of that already.
299e88096eSWarner Losh.if ${MK_GNUCXX} != "no"
30b5ad6294SPeter WemmSUBDIR+= libstdc++ libsupc++
31aa92269eSBryan DrewerySUBDIR_DEPENDS_libsupc++:= libstdc++
3283f56d9aSRuslan Ermilov.endif
33690d1b00SDavid E. O'Brien
34aa92269eSBryan DrewerySUBDIR_PARALLEL=
35aa92269eSBryan Drewery
36984de365SRodney W. Grimes.include <bsd.subdir.mk>
37