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