xref: /netbsd/compat/compatsubdir.mk (revision 5f0379f3)
1#	$NetBSD: compatsubdir.mk,v 1.2 2009/12/15 04:12:43 mrg Exp $
2
3# Build netbsd libraries.
4
5.include <bsd.own.mk>
6
7.if ${MKCOMPAT} != "no"
8.if !make(includes)
9
10# make sure we get an objdir built early enough
11.include <bsd.prog.mk>
12
13# XXX make this use MAKEOBJDIR
14MAKEDIRTARGETENV=	MAKEOBJDIRPREFIX=${.OBJDIR} MKOBJDIRS=yes MKSHARE=no BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE}
15
16# XXX fix the "library" list to include all 'external' libs?
17.if defined(BOOTSTRAP_SUBDIRS)
18SUBDIR=	${BOOTSTRAP_SUBDIRS}
19.else
20SUBDIR= ../../../gnu/lib/crtstuff4 .WAIT \
21	../../../lib/csu .WAIT \
22	../../../gnu/lib/libgcc4 .WAIT \
23	../../../lib/libc .WAIT \
24	../../../lib/libutil .WAIT \
25	../../../lib .WAIT \
26	../../../gnu/lib \
27	../../../external/bsd/bind/lib \
28	../../../external/bsd/libevent/lib \
29	../../../external/bsd/file/lib \
30	../../../libexec/ld.elf_so
31
32.if ${MKATF} != "no"
33SUBDIR+= ../../../external/bsd/atf/lib
34.endif
35
36.if (${MKLDAP} != "no")
37SUBDIR+= ../../../external/bsd/openldap/lib
38.endif
39
40.if (${MKBINUTILS} != "no")
41SUBDIR+= ../../../external/gpl3/binutils/lib
42.endif
43
44.endif
45
46.include <bsd.subdir.mk>
47
48.endif
49.endif
50