[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Annotation of src/Makefile, Revision 1.106

1.106   ! aidan       1: #      $NetBSD: Makefile,v 1.105 2000/02/01 01:22:05 assar Exp $
1.95      cjs         2:
                      3: # This is the top-level makefile for building NetBSD. For an outline of
                      4: # how to build a snapshot or release, as well as other release engineering
                      5: # information, see http://www.netbsd.org/developers/releng/index.html
                      6: #
                      7: # Not everything you can set or do is documented in this makefile. In
                      8: # particular, you should review the files in /usr/share/mk (especially
                      9: # bsd.README) for general information on building programs and writing
                     10: # Makefiles within this structure, and see the comments in src/etc/Makefile
                     11: # for further information on installation and release set options.
                     12: #
                     13: # Variables listed below can be set on the make command line (highest
                     14: # priority), in /etc/mk.conf (middle priority), or in the environment
                     15: # (lowest priority).
                     16: #
                     17: # Variables:
1.101     sommerfe   18: #   DESTDIR is the target directory for installation of the compiled
                     19: #      software. It defaults to /. Note that programs are built against
                     20: #      libraries installed in DESTDIR.
1.95      cjs        21: #   MKMAN, if set to `no', will prevent building of manual pages.
1.101     sommerfe   22: #   MKOBJDIRS, if not set to `no', will build object directories at
                     23: #      an appropriate point in a build.
1.95      cjs        24: #   MKSHARE, if set to `no', will prevent building and installing
                     25: #      anything in /usr/share.
1.101     sommerfe   26: #   NBUILDJOBS is the number of jobs to start in parallel during a
                     27: #      'make build'. It defaults to 1.
1.95      cjs        28: #   UPDATE will avoid a `make cleandir' at the start of `make build',
                     29: #      as well as having the effects listed in /usr/share/mk/bsd.README.
                     30: #
                     31: # Targets:
                     32: #   build: builds a full release of netbsd in DESTDIR.
                     33: #   release: does a `make build,' and then tars up the DESTDIR files
                     34: #      into RELEASEDIR, in release(7) format. (See etc/Makefile for
                     35: #      more information on this.)
                     36: #   snapshot: a synonym for release.
1.32      cgd        37:
1.106   ! aidan      38: SRCTOP=.
        !            39: .include <bsd.crypto.mk>               # for configuration variables.
        !            40:
        !            41: .if defined(CRYPTOPATH)
        !            42: .sinclude "${CRYPTOPATH}/Makefile.frag"
        !            43: .endif
1.4       cgd        44:
1.100     sommerfe   45: MKOBJDIRS ?= no
1.58      tv         46: HAVE_GCC28!=   ${CXX} --version | egrep "^(2\.8|egcs)" ; echo
                     47:
1.76      bouyer     48: .if defined(NBUILDJOBS)
                     49: _J= -j${NBUILDJOBS}
                     50: .endif
                     51:
1.4       cgd        52: # NOTE THAT etc *DOES NOT* BELONG IN THE LIST BELOW
1.2       cgd        53:
1.52      mycroft    54: SUBDIR+= lib include bin libexec sbin usr.bin usr.sbin share sys
1.105     assar      55:
                     56: includes-lib: includes-include includes-sys
1.36      explorer   57:
                     58: .if exists(games)
                     59: SUBDIR+= games
                     60: .endif
                     61:
1.8       cgd        62: SUBDIR+= gnu
1.52      mycroft    63: # This is needed for libstdc++ and gen-params.
                     64: includes-gnu: includes-include includes-sys
1.21      cgd        65:
1.13      brezak     66: .if exists(regress)
1.9       cgd        67: .ifmake !(install)
                     68: SUBDIR+= regress
                     69: .endif
                     70:
1.10      cgd        71: regression-tests:
                     72:        @echo Running regression tests...
1.22      cgd        73:        @(cd ${.CURDIR}/regress && ${MAKE} regress)
1.13      brezak     74: .endif
1.20      cgd        75:
1.26      tls        76: beforeinstall:
1.45      perry      77: .ifmake build
                     78:        @echo -n "Build started at: "
                     79:        @date
                     80: .endif
1.26      tls        81: .ifndef DESTDIR
                     82:        (cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
1.31      tls        83: .else
                     84:        (cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
1.26      tls        85: .endif
1.15      cgd        86:
                     87: afterinstall:
1.86      lukem      88: .if ${MKMAN} != "no" && !defined(_BUILD)
1.81      scottr     89:        ${MAKE} whatis.db
                     90: .endif
                     91:
                     92: whatis.db:
1.22      cgd        93:        (cd ${.CURDIR}/share/man && ${MAKE} makedb)
1.15      cgd        94:
1.84      tv         95: # wrt info/dir below:  It's safe to move this over top of /usr/share/info/dir,
                     96: # as the build will automatically remove/replace the non-pkg entries there.
                     97:
1.43      thorpej    98: build: beforeinstall
1.96      scottr     99: .if defined(FORCE_DOMESTIC)
                    100:        @echo '*** CAPUTE!'
                    101:        @echo '    The FORCE_DOMESTIC flag is not compatible with "make build".'
                    102:        @echo '    Please correct the problem and try again.'
                    103:        @false
                    104: .endif
1.86      lukem     105: .if ${MKSHARE} != "no"
1.32      cgd       106:        (cd ${.CURDIR}/share/mk && ${MAKE} install)
1.68      lukem     107: .endif
1.39      christos  108: .if !defined(UPDATE)
1.17      cgd       109:        ${MAKE} cleandir
1.39      christos  110: .endif
1.103     simonb    111: .if ${MKOBJDIRS} != "no"
                    112:        ${MAKE} obj
1.104     simonb    113:        (cd ${.CURDIR}/distrib && ${MAKE} obj)
1.103     simonb    114: .endif
1.75      tv        115: .if empty(HAVE_GCC28)
1.71      mycroft   116: .if defined(DESTDIR)
                    117:        @echo "*** CAPUTE!"
1.84      tv        118:        @echo "    You attempted to compile the world without egcs.  You must"
1.71      mycroft   119:        @echo "    first install a native egcs compiler."
1.84      tv        120:        @false
1.71      mycroft   121: .else
                    122:        (cd ${.CURDIR}/gnu/usr.bin/egcs && \
1.99      perry     123:            ${MAKE} ${_J} dependall MKMAN=no && \
1.86      lukem     124:            ${MAKE} MKMAN=no install && ${MAKE} cleandir)
1.71      mycroft   125: .endif
                    126: .endif
1.93      scottr    127:        ${MAKE} includes
1.61      mycroft   128:        (cd ${.CURDIR}/lib/csu && \
1.99      perry     129:            ${MAKE} ${_J} dependall MKMAN=no && \
1.86      lukem     130:            ${MAKE} MKMAN=no install)
1.61      mycroft   131:        (cd ${.CURDIR}/lib && \
1.99      perry     132:            ${MAKE} ${_J} dependall MKMAN=no && \
1.86      lukem     133:            ${MAKE} MKMAN=no install)
1.61      mycroft   134:        (cd ${.CURDIR}/gnu/lib && \
1.99      perry     135:            ${MAKE} ${_J} dependall MKMAN=no MKINFO=no && \
1.89      mellon    136:            ${MAKE} MKMAN=no MKINFO=no install)
1.103     simonb    137: .if ${MKSHARE} != "no"
                    138:        (cd ${.CURDIR}/share/tmac && ${MAKE} && ${MAKE} install)
1.106   ! aidan     139: .endif
        !           140: .if target(cryptobuild)
        !           141:        ${MAKE} ${_J} cryptobuild
1.103     simonb    142: .endif
1.99      perry     143:        ${MAKE} ${_J} dependall && ${MAKE} _BUILD= install
1.97      christos  144: .if defined(DOMESTIC) && !defined(EXPORTABLE_SYSTEM)
                    145:        (cd ${.CURDIR}/${DOMESTIC} && ${MAKE} ${_J} _SLAVE_BUILD= build)
1.49      lukem     146: .endif
1.81      scottr    147:        ${MAKE} whatis.db
1.50      mellon    148:        @echo -n "Build finished at: "
                    149:        @date
1.87      cjs       150:
                    151: release snapshot: build
1.91      scottr    152:        (cd ${.CURDIR}/etc && ${MAKE} INSTALL_DONE=1 release)
1.1       cgd       153:
                    154: .include <bsd.subdir.mk>

CVSweb <webmaster@jp.NetBSD.org>