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