1998-10-18 20:41:39 +00:00
|
|
|
# $NetBSD: Makefile,v 1.72 1998/10/18 20:41:39 thorpej Exp $
|
1996-04-13 06:36:15 +00:00
|
|
|
|
|
|
|
.include <bsd.own.mk> # for configuration variables.
|
1993-03-22 08:43:59 +00:00
|
|
|
|
1998-07-24 16:48:47 +00:00
|
|
|
HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo
|
|
|
|
|
1993-03-22 08:43:59 +00:00
|
|
|
# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
|
1993-03-21 18:04:42 +00:00
|
|
|
|
1998-05-10 10:37:59 +00:00
|
|
|
SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
|
1996-08-10 23:29:00 +00:00
|
|
|
|
|
|
|
.if exists(games)
|
|
|
|
SUBDIR+= games
|
|
|
|
.endif
|
|
|
|
|
1993-04-29 12:42:00 +00:00
|
|
|
SUBDIR+= gnu
|
1998-05-10 10:37:59 +00:00
|
|
|
# This is needed for libstdc++ and gen-params.
|
|
|
|
includes-gnu: includes-include includes-sys
|
1993-07-04 14:02:11 +00:00
|
|
|
|
1995-02-19 12:20:06 +00:00
|
|
|
.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
|
|
|
|
SUBDIR+= domestic
|
|
|
|
.endif
|
|
|
|
|
1993-07-07 12:55:48 +00:00
|
|
|
.if exists(regress)
|
1993-05-22 07:10:28 +00:00
|
|
|
.ifmake !(install)
|
|
|
|
SUBDIR+= regress
|
|
|
|
.endif
|
|
|
|
|
1993-05-22 07:15:13 +00:00
|
|
|
regression-tests:
|
|
|
|
@echo Running regression tests...
|
1995-02-26 01:10:19 +00:00
|
|
|
@(cd ${.CURDIR}/regress && ${MAKE} regress)
|
1993-07-07 12:55:48 +00:00
|
|
|
.endif
|
1993-05-22 07:10:28 +00:00
|
|
|
|
1995-12-09 22:39:46 +00:00
|
|
|
beforeinstall:
|
1998-02-06 23:11:57 +00:00
|
|
|
.ifmake build
|
|
|
|
@echo -n "Build started at: "
|
|
|
|
@date
|
|
|
|
.endif
|
1995-12-09 22:39:46 +00:00
|
|
|
.ifndef DESTDIR
|
|
|
|
(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
|
1996-03-18 09:55:25 +00:00
|
|
|
.else
|
|
|
|
(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
|
1995-12-09 22:39:46 +00:00
|
|
|
.endif
|
1995-10-06 12:05:36 +00:00
|
|
|
|
1994-02-07 05:08:57 +00:00
|
|
|
afterinstall:
|
1998-09-29 06:59:53 +00:00
|
|
|
.if !defined(NOMAN) && !defined(NOSHARE)
|
1995-02-26 01:10:19 +00:00
|
|
|
(cd ${.CURDIR}/share/man && ${MAKE} makedb)
|
1994-06-14 04:40:29 +00:00
|
|
|
.endif
|
1994-02-07 05:08:57 +00:00
|
|
|
|
1997-10-27 18:06:39 +00:00
|
|
|
build: beforeinstall
|
1998-09-29 06:59:53 +00:00
|
|
|
.if !defined(NOSHARE)
|
1996-04-13 06:36:15 +00:00
|
|
|
(cd ${.CURDIR}/share/mk && ${MAKE} install)
|
1998-02-15 00:33:03 +00:00
|
|
|
(cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
|
1998-09-29 06:59:53 +00:00
|
|
|
.endif
|
1997-03-24 22:22:15 +00:00
|
|
|
.if !defined(UPDATE)
|
1994-02-10 01:47:47 +00:00
|
|
|
${MAKE} cleandir
|
1998-10-16 05:05:09 +00:00
|
|
|
.endif
|
|
|
|
.if defined(USE_EGCS) && empty(HAVE_GCC28)
|
|
|
|
.if defined(DESTDIR)
|
|
|
|
@echo "*** CAPUTE!"
|
|
|
|
@echo " You attempted to compile the world with egcs. You must"
|
|
|
|
@echo " first install a native egcs compiler."
|
|
|
|
false
|
|
|
|
.else
|
|
|
|
(cd ${.CURDIR}/gnu/usr.bin/egcs && \
|
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install && \
|
|
|
|
${MAKE} cleandir)
|
|
|
|
.endif
|
1997-03-24 22:22:15 +00:00
|
|
|
.endif
|
1998-04-15 13:44:55 +00:00
|
|
|
${MAKE} includes
|
1998-07-26 17:28:58 +00:00
|
|
|
(cd ${.CURDIR}/lib/csu && \
|
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
|
|
|
(cd ${.CURDIR}/lib && \
|
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
|
|
|
(cd ${.CURDIR}/gnu/lib && \
|
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
1998-10-16 05:05:09 +00:00
|
|
|
.if !defined(USE_EGCS)
|
1998-10-07 02:35:38 +00:00
|
|
|
.if (${MACHINE_ARCH} != "alpha") && \
|
|
|
|
(${MACHINE_ARCH} != "powerpc")
|
1998-07-25 10:35:53 +00:00
|
|
|
(cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && \
|
1998-07-26 17:28:58 +00:00
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
1998-07-25 10:35:53 +00:00
|
|
|
.endif
|
1998-07-28 18:55:41 +00:00
|
|
|
.endif
|
1996-04-13 06:36:15 +00:00
|
|
|
.if exists(domestic) && !defined(EXPORTABLE_SYSTEM)
|
1998-02-10 04:38:13 +00:00
|
|
|
# libtelnet depends on libdes and libkrb. libkrb depends on
|
|
|
|
# libcom_err.
|
1998-02-16 10:07:31 +00:00
|
|
|
.if exists(domestic/lib/libdes)
|
1998-02-10 04:38:13 +00:00
|
|
|
(cd ${.CURDIR}/domestic/lib/libdes && \
|
1998-07-26 17:28:58 +00:00
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
1998-02-16 10:07:31 +00:00
|
|
|
.endif
|
|
|
|
.if exists(domestic/lib/libcom_err)
|
1998-02-10 04:38:13 +00:00
|
|
|
(cd ${.CURDIR}/domestic/lib/libcom_err && \
|
1998-07-26 17:28:58 +00:00
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
1998-02-16 10:07:31 +00:00
|
|
|
.endif
|
|
|
|
.if exists(domestic/lib/libkrb)
|
1998-01-30 07:10:31 +00:00
|
|
|
(cd ${.CURDIR}/domestic/lib/libkrb && \
|
1998-07-26 17:28:58 +00:00
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
1998-02-16 10:07:31 +00:00
|
|
|
.endif
|
1998-07-25 10:35:53 +00:00
|
|
|
(cd ${.CURDIR}/domestic/lib && \
|
1998-07-26 17:28:58 +00:00
|
|
|
${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install)
|
1998-10-15 02:50:00 +00:00
|
|
|
.endif
|
|
|
|
.if !defined(DESTDIR)
|
1998-10-18 20:41:39 +00:00
|
|
|
if [ -f /sbin/ldconfig ]; then \
|
|
|
|
/sbin/ldconfig -m /usr/lib; \
|
|
|
|
fi
|
1995-02-19 12:20:06 +00:00
|
|
|
.endif
|
1994-02-10 01:47:47 +00:00
|
|
|
${MAKE} depend && ${MAKE} && ${MAKE} install
|
1998-02-20 01:39:38 +00:00
|
|
|
@echo -n "Build finished at: "
|
|
|
|
@date
|
1994-02-07 05:08:57 +00:00
|
|
|
|
1993-03-21 09:45:37 +00:00
|
|
|
.include <bsd.subdir.mk>
|