[BACK]Return to bsd.own.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / mk

Annotation of src/share/mk/bsd.own.mk, Revision 1.66

1.66    ! thorpej     1: #      $NetBSD: bsd.own.mk,v 1.65 1998/05/04 04:37:33 thorpej Exp $
1.64      lukem       2:
                      3: .if !defined(_BSD_OWN_MK_)
                      4: _BSD_OWN_MK_=1
1.24      thorpej     5:
                      6: .if defined(MAKECONF) && exists(${MAKECONF})
                      7: .include "${MAKECONF}"
                      8: .elif exists(/etc/mk.conf)
                      9: .include "/etc/mk.conf"
                     10: .endif
1.13      mycroft    11:
                     12: # Defining `SKEY' causes support for S/key authentication to be compiled in.
                     13: SKEY=          yes
                     14: # Defining `KERBEROS' causes support for Kerberos authentication to be
                     15: # compiled in.
                     16: #KERBEROS=     yes
1.17      brezak     17: # Defining 'KERBEROS5' causes support for Kerberos5 authentication to be
                     18: # compiled in.
                     19: #KERBEROS5=    yes
1.7       cgd        20:
                     21: # where the system object and source trees are kept; can be configurable
                     22: # by the user in case they want them in ~/foosrc and ~/fooobj, for example
                     23: BSDSRCDIR?=    /usr/src
                     24: BSDOBJDIR?=    /usr/obj
1.1       cgd        25:
1.61      lukem      26: BINGRP?=       wheel
                     27: BINOWN?=       root
1.1       cgd        28: BINMODE?=      555
1.4       mycroft    29: NONBINMODE?=   444
1.17      brezak     30:
                     31: # Define MANZ to have the man pages compressed (gzip)
                     32: #MANZ=         1
1.1       cgd        33:
1.31      christos   34: MANDIR?=       /usr/share/man
1.61      lukem      35: MANGRP?=       wheel
                     36: MANOWN?=       root
1.4       mycroft    37: MANMODE?=      ${NONBINMODE}
1.52      mycroft    38: MANINSTALL?=   maninstall catinstall
1.4       mycroft    39:
                     40: LIBDIR?=       /usr/lib
                     41: LINTLIBDIR?=   /usr/libdata/lint
                     42: LIBGRP?=       ${BINGRP}
                     43: LIBOWN?=       ${BINOWN}
                     44: LIBMODE?=      ${NONBINMODE}
                     45:
                     46: DOCDIR?=        /usr/share/doc
1.61      lukem      47: DOCGRP?=       wheel
                     48: DOCOWN?=       root
1.4       mycroft    49: DOCMODE?=       ${NONBINMODE}
1.15      jtc        50:
                     51: NLSDIR?=       /usr/share/nls
1.61      lukem      52: NLSGRP?=       wheel
                     53: NLSOWN?=       root
1.15      jtc        54: NLSMODE?=      ${NONBINMODE}
1.25      explorer   55:
                     56: KMODDIR?=      /usr/lkm
1.61      lukem      57: KMODGRP?=      wheel
                     58: KMODOWN?=      root
1.25      explorer   59: KMODMODE?=     ${NONBINMODE}
1.1       cgd        60:
                     61: COPY?=         -c
1.33      thorpej    62: STRIPFLAG?=    -s
1.2       brezak     63:
                     64: # Define SYS_INCLUDE to indicate whether you want symbolic links to the system
                     65: # source (``symlinks''), or a separate copy (``copies''); (latter useful
                     66: # in environments where it's not possible to keep /sys publicly readable)
                     67: #SYS_INCLUDE=  symlinks
1.65      thorpej    68:
                     69: # XXX The next two are temporary until the transition to UVM is complete.
                     70:
                     71: # Systems on which UVM is the standard VM system.
1.66    ! thorpej    72: .if    (${MACHINE} == "alpha") || \
        !            73:        (${MACHINE} == "hp300") || \
        !            74:        (${MACHINE} == "mac68k") || \
        !            75:        (${MACHINE} == "mvme68k")
1.65      thorpej    76: UVM?=          yes
                     77: .endif
                     78:
                     79: # Systems that use UVM's new pmap interface.
                     80: .if    (${MACHINE} == "alpha")
                     81: PMAP_NEW?=     yes
                     82: .endif
1.6       cgd        83:
                     84: # don't try to generate PIC versions of libraries on machines
                     85: # which don't support PIC.
1.28      jonathan   86: .if  (${MACHINE_ARCH} == "vax") || \
1.29      cgd        87:     ((${MACHINE_ARCH} == "mips") && defined(STATIC_TOOLCHAIN)) || \
1.32      thorpej    88:     (${MACHINE_ARCH} == "powerpc")
1.6       cgd        89: NOPIC=
                     90: .endif
1.18      cgd        91:
1.59      jonathan   92: # Data-driven table using make variables to control how
                     93: # toolchain-dependent targets and shared libraries are built
                     94: # for different platforms and object formats.
                     95: # OBJECT_FMT:          currently either "ELF" or "a.out".
                     96: # SHLIB_TYPE:          "ELF" or "a.out" or "" to force static libraries.
                     97: #
                     98: .if (${MACHINE_ARCH} == "alpha") || \
                     99:     (${MACHINE_ARCH} == "mips") || \
                    100:     (${MACHINE_ARCH} == "powerpc")
                    101: OBJECT_FMT?=ELF
                    102: .else
                    103: OBJECT_FMT?=a.out
                    104: .endif
                    105:
                    106:
1.18      cgd       107: # No lint, for now.
1.60      perry     108:
                    109: # all machines on which we are okay should be added here until we can
                    110: # get rid of the whole "NOLINT by default" thing.
                    111: .if (${MACHINE} == "i386")
                    112: NONOLINT=1
                    113: .endif
                    114:
1.57      cgd       115: .if !defined(NONOLINT)
1.18      cgd       116: NOLINT=
1.57      cgd       117: .endif
1.32      thorpej   118:
1.59      jonathan  119: # Profiling and shared libraries don't work on PowerPC yet.
1.32      thorpej   120: .if (${MACHINE_ARCH} == "powerpc")
                    121: NOPROFILE=
1.59      jonathan  122: NOSHLIB=
1.32      thorpej   123: .endif
1.34      mycroft   124:
1.53      mycroft   125: TARGETS+=      all clean cleandir depend includes install lint obj regress \
                    126:                tags
                    127: .PHONY:                all clean cleandir depend includes install lint obj regress \
                    128:                tags beforedepend afterdepend beforeinstall afterinstall \
1.40      mycroft   129:                realinstall
1.36      mycroft   130:
1.63      agc       131: # set NEED_OWN_INSTALL_TARGET, if it's not already set, to yes
1.58      agc       132: # this is used by bsd.port.mk to stop "install" being defined
                    133: NEED_OWN_INSTALL_TARGET?=      yes
                    134:
                    135: .if (${NEED_OWN_INSTALL_TARGET} == "yes")
1.56      drochner  136: .if !target(install)
                    137: install:       .NOTMAIN beforeinstall subdir-install realinstall afterinstall
1.55      drochner  138: beforeinstall: .NOTMAIN
1.56      drochner  139: subdir-install:        .NOTMAIN beforeinstall
                    140: realinstall:   .NOTMAIN beforeinstall
                    141: afterinstall:  .NOTMAIN subdir-install realinstall
1.58      agc       142: .endif
1.36      mycroft   143: .endif
1.64      lukem     144:
                    145: .endif         # _BSD_OWN_MK_

CVSweb <webmaster@jp.NetBSD.org>