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

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

1.58    ! drahn       1: #      $OpenBSD: bsd.own.mk,v 1.57 2001/09/25 10:26:40 espie Exp $
1.7       deraadt     2: #      $NetBSD: bsd.own.mk,v 1.24 1996/04/13 02:08:09 thorpej Exp $
                      3:
1.15      millert     4: # Host-specific overrides
1.7       deraadt     5: .if defined(MAKECONF) && exists(${MAKECONF})
                      6: .include "${MAKECONF}"
                      7: .elif exists(/etc/mk.conf)
                      8: .include "/etc/mk.conf"
1.26      art         9: .endif
1.1       deraadt    10:
1.51      espie      11: # Set `WARNINGS' to `yes' to add appropriate warnings to each compilation
                     12: WARNINGS?=     no
1.15      millert    13: # Set `SKEY' to `yes' to build with support for S/key authentication.
                     14: SKEY?=         yes
                     15: # Set `KERBEROS' to `yes' to build with support for Kerberos authentication.
1.30      hin        16: KERBEROS?=     yes
1.15      millert    17: # Set `KERBEROS5' to `yes' to build with support for Kerberos5 authentication.
1.47      hin        18: KERBEROS5?=    yes
1.19      downsj     19: # Set `YP' to `yes' to build with support for NIS/YP.
1.15      millert    20: YP?=           yes
1.19      downsj     21: # Set `TCP_WRAPPERS' to `yes' to build certain networking daemons with
                     22: # integrated support for libwrap.
                     23: TCP_WRAPPERS?= yes
1.23      art        24: # Set `AFS` to `yes' to build with AFS support.
1.24      smurph     25: .if (${MACHINE_ARCH} == "m88k")
                     26: AFS?=          no
                     27: .else
1.23      art        28: AFS?=          yes
1.24      smurph     29: .endif
1.32      niklas     30: # Set `DEBUGLIBS' to `yes' to build libraries with debugging symbols
1.33      marc       31: DEBUGLIBS?=    no
1.50      drahn      32: # Set toolchain for libdl and other "differences"
1.52      art        33: .if (${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64")
1.50      drahn      34: ELF_TOOLCHAIN?=        yes
                     35: .else
                     36: ELF_TOOLCHAIN?=        no
                     37: .endif
1.32      niklas     38:
1.1       deraadt    39: # where the system object and source trees are kept; can be configurable
                     40: # by the user in case they want them in ~/foosrc and ~/fooobj, for example
                     41: BSDSRCDIR?=    /usr/src
                     42: BSDOBJDIR?=    /usr/obj
                     43:
                     44: BINGRP?=       bin
1.9       deraadt    45: BINOWN?=       root
1.1       deraadt    46: BINMODE?=      555
                     47: NONBINMODE?=   444
1.28      espie      48: DIRMODE?=      755
1.1       deraadt    49:
                     50: # Define MANZ to have the man pages compressed (gzip)
                     51: #MANZ=         1
1.18      tholo      52:
1.38      deraadt    53: # Define MANPS to have PostScript manual pages generated
                     54: #MANPS=                1
                     55:
1.18      tholo      56: SHAREDIR?=     /usr/share
                     57: SHAREGRP?=     bin
                     58: SHAREOWN?=     root
                     59: SHAREMODE?=    ${NONBINMODE}
1.1       deraadt    60:
                     61: MANDIR?=       /usr/share/man/cat
                     62: MANGRP?=       bin
1.9       deraadt    63: MANOWN?=       root
1.1       deraadt    64: MANMODE?=      ${NONBINMODE}
1.38      deraadt    65:
                     66: PSDIR?=                /usr/share/man/ps
                     67: PSGRP?=                bin
                     68: PSOWN?=                root
                     69: PSMODE?=       ${NONBINMODE}
1.1       deraadt    70:
                     71: LIBDIR?=       /usr/lib
                     72: LINTLIBDIR?=   /usr/libdata/lint
                     73: LIBGRP?=       ${BINGRP}
                     74: LIBOWN?=       ${BINOWN}
                     75: LIBMODE?=      ${NONBINMODE}
                     76:
                     77: DOCDIR?=        /usr/share/doc
                     78: DOCGRP?=       bin
1.9       deraadt    79: DOCOWN?=       root
1.1       deraadt    80: DOCMODE?=       ${NONBINMODE}
1.5       tholo      81:
                     82: LKMDIR?=       /usr/lkm
                     83: LKMGRP?=       ${BINGRP}
                     84: LKMOWN?=       ${BINOWN}
                     85: LKMMODE?=      ${NONBINMODE}
1.1       deraadt    86:
                     87: NLSDIR?=       /usr/share/nls
                     88: NLSGRP?=       bin
1.9       deraadt    89: NLSOWN?=       root
1.1       deraadt    90: NLSMODE?=      ${NONBINMODE}
1.56      espie      91:
1.57      espie      92: # Shared files for system gnu configure, not used yet
                     93: GNUSYSTEM_AUX_DIR?=${BSDSRCDIR}/share/gnu
1.1       deraadt    94:
1.17      millert    95: INSTALL_COPY?= -c
1.13      niklas     96: .ifndef DEBUG
1.17      millert    97: INSTALL_STRIP?=        -s
1.13      niklas     98: .endif
1.12      downsj     99:
                    100: # This may be changed for _single filesystem_ configurations (such as
                    101: # routers and other embedded systems); normal systems should leave it alone!
1.11      downsj    102: STATIC?=       -static
1.1       deraadt   103:
                    104: # Define SYS_INCLUDE to indicate whether you want symbolic links to the system
                    105: # source (``symlinks''), or a separate copy (``copies''); (latter useful
                    106: # in environments where it's not possible to keep /sys publicly readable)
                    107: #SYS_INCLUDE=  symlinks
                    108:
                    109: # don't try to generate PIC versions of libraries on machines
                    110: # which don't support PIC.
1.55      jason     111: .if (${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "sparc64") || \
1.34      rahnds    112:     (${MACHINE_ARCH} == "hppa") || (${MACHINE_ARCH} == "m88k")
1.1       deraadt   113: NOPIC=
1.58    ! drahn     114: .endif
        !           115:
        !           116: #pic relocation flags.
        !           117: .if (${MACHINE_ARCH} == "sparc64")
        !           118: PICFLAG=-fPIC
        !           119: ASPICFLAG=-KPIC
        !           120: .else
        !           121: ASPICFLAG=-k
1.14      rahnds    122: .endif
                    123:
                    124: # don't try to generate PROFILED versions of libraries on machines
                    125: # which don't support profiling.
1.21      rahnds    126: # to add this back use the following line
1.54      art       127: .if (${MACHINE_ARCH} == "m88k")
1.24      smurph    128: #.if 0
1.14      rahnds    129: NOPROFILE=
1.1       deraadt   130: .endif
                    131:
                    132: # No lint, for now.
                    133: NOLINT=
1.31      espie     134:
                    135: BSD_OWN_MK=Done
1.41      espie     136:
                    137: .PHONY: spell clean cleandir obj manpages print all \
                    138:        depend beforedepend afterdepend cleandepend \
                    139:        all lint cleanman nlsinstall cleannls includes \
                    140:        beforeinstall realinstall maninstall afterinstall install