version 1.113, 2005/09/16 12:28:34 |
version 1.117, 2011/09/17 16:59:53 |
|
|
# 4) If you are reasonably sure that things will compile OK, use the |
# 4) If you are reasonably sure that things will compile OK, use the |
# "make build" target supplied here. Good luck. |
# "make build" target supplied here. Good luck. |
# |
# |
# 5) If you want to setup a cross-build environment, there is a "cross-tools" |
# 5) If you want to setup a cross-build environment, there is a "cross-gcc" |
# target available which upon completion of "make TARGET=<target> cross-tools" |
# target available which upon completion of: |
|
# make -f Makefile.cross TARGET=<target> cross-gcc" |
# (where <target> is one of the names in the /sys/arch directory) will produce |
# (where <target> is one of the names in the /sys/arch directory) will produce |
# a set of compilation tools along with the includes in the /usr/cross/<target> |
# a set of compilation tools along with the includes in the /usr/cross/<target> |
# directory. The "cross-distrib" target will build cross-tools as well as |
# directory. The "cross-distrib" target will build cross-tools as well as |
|
|
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games |
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share games |
SUBDIR+= gnu |
SUBDIR+= gnu |
|
|
SUBDIR+= sys lkm |
SUBDIR+= sys |
|
|
.if (${KERBEROS5:L} == "yes") |
.if (${KERBEROS5:L} == "yes") |
SUBDIR+= kerberosV |
SUBDIR+= kerberosV |
|
|
|
|
beforeinstall: |
beforeinstall: |
cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs |
cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} distrib-dirs |
|
cd ${.CURDIR}/etc && exec ${MAKE} DESTDIR=${DESTDIR} install-mtree |
cd ${.CURDIR}/include && exec ${MAKE} includes |
cd ${.CURDIR}/include && exec ${MAKE} includes |
|
|
afterinstall: |
afterinstall: |
|
|
cd ${.CURDIR}/share/man && exec ${MAKE} makedb |
cd ${.CURDIR}/share/man && exec ${MAKE} makedb |
.endif |
.endif |
|
|
|
.ifdef DESTDIR |
build: |
build: |
|
@echo cannot build with DESTDIR set |
|
@false |
|
.else |
|
build: |
.ifdef GLOBAL_AUTOCONF_CACHE |
.ifdef GLOBAL_AUTOCONF_CACHE |
cp /dev/null ${GLOBAL_AUTOCONF_CACHE} |
cp /dev/null ${GLOBAL_AUTOCONF_CACHE} |
.endif |
.endif |
|
|
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \ |
cd ${.CURDIR}/gnu/lib && ${MAKE} depend && ${MAKE} && \ |
NOMAN=1 exec ${SUDO} ${MAKE} install |
NOMAN=1 exec ${SUDO} ${MAKE} install |
${MAKE} depend && ${MAKE} && exec ${SUDO} ${MAKE} install |
${MAKE} depend && ${MAKE} && exec ${SUDO} ${MAKE} install |
|
.endif |
|
|
CROSS_TARGETS=cross-env cross-dirs cross-obj cross-includes cross-binutils \ |
CROSS_TARGETS=cross-env cross-dirs cross-obj cross-includes cross-binutils \ |
cross-gcc cross-tools cross-lib cross-bin cross-etc-root-var \ |
cross-gcc cross-tools cross-lib cross-bin cross-etc-root-var \ |