Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / compat / compatsubdir.mk
blobb0470c31bc638be13afe777e5fe083ec74d50196
1 # $NetBSD: compatsubdir.mk,v 1.2 2009/12/15 04:12:43 mrg Exp $
3 # Build netbsd libraries.
5 .include <bsd.own.mk>
7 .if ${MKCOMPAT} != "no"
8 .if !make(includes)
10 # make sure we get an objdir built early enough
11 .include <bsd.prog.mk>
13 # XXX make this use MAKEOBJDIR
14 MAKEDIRTARGETENV= MAKEOBJDIRPREFIX=${.OBJDIR} MKOBJDIRS=yes MKSHARE=no BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE}
16 # XXX fix the "library" list to include all 'external' libs?
17 .if defined(BOOTSTRAP_SUBDIRS)
18 SUBDIR= ${BOOTSTRAP_SUBDIRS}
19 .else
20 SUBDIR= ../../../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
32 .if ${MKATF} != "no"
33 SUBDIR+= ../../../external/bsd/atf/lib
34 .endif
36 .if (${MKLDAP} != "no")
37 SUBDIR+= ../../../external/bsd/openldap/lib
38 .endif
40 .if (${MKBINUTILS} != "no")
41 SUBDIR+= ../../../external/gpl3/binutils/lib
42 .endif
44 .if (${MKISCSI} != "no")
45 SUBDIR+= ../../../external/bsd/iscsi/lib
46 .endif
48 .endif
50 .include <bsd.subdir.mk>
52 .endif
53 .endif