1 1.70 mycroft # $NetBSD: Makefile,v 1.70 1998/10/15 02:50:00 mycroft 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.68 lukem .if !defined(NOMAN) && !defined(NOSHARE) 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.68 lukem .if !defined(NOSHARE) 51 1.32 cgd (cd ${.CURDIR}/share/mk && ${MAKE} install) 52 1.47 thorpej (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install) 53 1.68 lukem .endif 54 1.39 christos .if !defined(UPDATE) 55 1.17 cgd ${MAKE} cleandir 56 1.39 christos .endif 57 1.51 tv ${MAKE} includes 58 1.61 mycroft (cd ${.CURDIR}/lib/csu && \ 59 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 60 1.61 mycroft (cd ${.CURDIR}/lib && \ 61 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 62 1.61 mycroft (cd ${.CURDIR}/gnu/lib && \ 63 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 64 1.67 christos .if defined(USE_EGCS) && !empty(HAVE_GCC28) 65 1.64 tv (cd ${.CURDIR}/gnu/lib/libgcc && \ 66 1.64 tv ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 67 1.60 mycroft .else 68 1.69 tv .if (${MACHINE_ARCH} != "alpha") && \ 69 1.69 tv (${MACHINE_ARCH} != "powerpc") 70 1.60 mycroft (cd ${.CURDIR}/gnu/usr.bin/gcc/libgcc && \ 71 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 72 1.62 thorpej .endif 73 1.60 mycroft .endif 74 1.32 cgd .if exists(domestic) && !defined(EXPORTABLE_SYSTEM) 75 1.46 thorpej # libtelnet depends on libdes and libkrb. libkrb depends on 76 1.46 thorpej # libcom_err. 77 1.49 lukem .if exists(domestic/lib/libdes) 78 1.46 thorpej (cd ${.CURDIR}/domestic/lib/libdes && \ 79 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 80 1.49 lukem .endif 81 1.49 lukem .if exists(domestic/lib/libcom_err) 82 1.46 thorpej (cd ${.CURDIR}/domestic/lib/libcom_err && \ 83 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 84 1.49 lukem .endif 85 1.49 lukem .if exists(domestic/lib/libkrb) 86 1.44 mellon (cd ${.CURDIR}/domestic/lib/libkrb && \ 87 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 88 1.49 lukem .endif 89 1.60 mycroft (cd ${.CURDIR}/domestic/lib && \ 90 1.61 mycroft ${MAKE} depend && NOMAN= ${MAKE} && NOMAN= ${MAKE} install) 91 1.70 mycroft .endif 92 1.70 mycroft .if !defined(DESTDIR) 93 1.70 mycroft ldconfig -m /usr/lib 94 1.21 cgd .endif 95 1.17 cgd ${MAKE} depend && ${MAKE} && ${MAKE} install 96 1.64 tv .if defined(USE_EGCS) 97 1.64 tv .if defined(DESTDIR) && (${HAVE_GCC28} == "") 98 1.64 tv @echo '***** WARNING ***** Your system compiler is not GCC 2.8 or higher' 99 1.64 tv @echo 'and you have built a distribution with GCC 2.8 and DESTDIR set.' 100 1.64 tv @echo 'You will need to rebuild libgcc from gnu/usr.bin/egcs/libgcc' 101 1.64 tv @echo 'in order to have full C++ support in the binary set.' 102 1.64 tv .else 103 1.64 tv (cd ${.CURDIR}/gnu/lib/libgcc &&\ 104 1.64 tv ${MAKE} depend && ${MAKE} && ${MAKE} install) 105 1.64 tv .endif # DESTDIR && !HAVE_GCC28 106 1.64 tv .endif # USE_EGCS 107 1.50 mellon @echo -n "Build finished at: " 108 1.50 mellon @date 109 1.1 cgd 110 1.1 cgd .include <bsd.subdir.mk> 111