Makefile revision 1.64
1# $NetBSD: Makefile,v 1.64 1998/08/22 22:05:00 tv Exp $ 2 3.include <bsd.own.mk> # for configuration variables. 4 5HAVE_GCC28!= ${CXX} --version | egrep "^(2\.8|egcs)" ; echo 6 7# NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW 8 9SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys 10 11.if exists(games) 12SUBDIR+= games 13.endif 14 15SUBDIR+= gnu 16# This is needed for libstdc++ and gen-params. 17includes-gnu: includes-include includes-sys 18 19.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 20SUBDIR+= domestic 21.endif 22 23.if exists(regress) 24.ifmake !(install) 25SUBDIR+= regress 26.endif 27 28regression-tests: 29 @echo Running regression tests... 30 @(cd ${.CURDIR}/regress && ${MAKE} regress) 31.endif 32 33beforeinstall: 34.ifmake build 35 @echo -n "Build started at: " 36 @date 37.endif 38.ifndef DESTDIR 39 (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs) 40.else 41 (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs) 42.endif 43 44afterinstall: 45.ifndef NOMAN 46 (cd ${.CURDIR}/share/man && ${MAKE} makedb) 47.endif 48 49build: beforeinstall 50 (cd ${.CURDIR}/share/mk && ${MAKE} install) 51 (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) 52.if !defined(UPDATE) 53 ${MAKE} cleandir 54.endif 55 ${MAKE} includes 56 (cd ${.CURDIR}/lib/csu && \ 57 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 58 (cd ${.CURDIR}/lib && \ 59 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 60 (cd ${.CURDIR}/gnu/lib && \ 61 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 62.if defined(USE_EGCS) 63 (cd ${.CURDIR}/gnu/lib/libgcc && \ 64 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 65.else 66.if (${MACHINE_ARCH} != "alpha") && \ 67 (${MACHINE_ARCH} != "powerpc") 68 (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && \ 69 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 70.endif 71.endif 72.if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 73# libtelnet depends on libdes and libkrb. libkrb depends on 74# libcom_err. 75.if exists(domestic/lib/libdes) 76 (cd ${.CURDIR}/domestic/lib/libdes && \ 77 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 78.endif 79.if exists(domestic/lib/libcom_err) 80 (cd ${.CURDIR}/domestic/lib/libcom_err && \ 81 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 82.endif 83.if exists(domestic/lib/libkrb) 84 (cd ${.CURDIR}/domestic/lib/libkrb && \ 85 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 86.endif 87 (cd ${.CURDIR}/domestic/lib && \ 88 ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 89.endif 90 ${MAKE} depend && ${MAKE} && ${MAKE} install 91.if defined(USE_EGCS) 92.if defined(DESTDIR) && (${HAVE_GCC28} == "") 93 @echo '***** WARNING ***** Your system compiler is not GCC 2.8 or higher' 94 @echo 'and you have built a distribution with GCC 2.8 and DESTDIR set.' 95 @echo 'You will need to rebuild libgcc from gnu/usr.bin/egcs/libgcc' 96 @echo 'in order to have full C++ support in the binary set.' 97.else 98 (cd ${.CURDIR}/gnu/lib/libgcc &&\ 99 ${MAKE} depend && ${MAKE} && ${MAKE} install) 100.endif # DESTDIR && !HAVE_GCC28 101.endif # USE_EGCS 102 @echo -n "Build finished at: " 103 @date 104 105.include <bsd.subdir.mk> 106