[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.110

1.110   ! miod        1: #      $OpenBSD: bsd.own.mk,v 1.109 2011/07/08 22:21:11 miod 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 `KERBEROS5' to `yes' to build with support for Kerberos5 authentication.
1.47      hin        16: KERBEROS5?=    yes
1.19      downsj     17: # Set `YP' to `yes' to build with support for NIS/YP.
1.15      millert    18: YP?=           yes
1.19      downsj     19: # Set `TCP_WRAPPERS' to `yes' to build certain networking daemons with
                     20: # integrated support for libwrap.
                     21: TCP_WRAPPERS?= yes
1.23      art        22: # Set `AFS` to `yes' to build with AFS support.
1.69      deraadt    23: AFS?=          yes
1.32      niklas     24: # Set `DEBUGLIBS' to `yes' to build libraries with debugging symbols
1.33      marc       25: DEBUGLIBS?=    no
1.61      pvalchev   26: # Set toolchain to be able to know differences.
1.82      mickey     27: .if ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m88k" || \
                     28:     ${MACHINE_ARCH} == "vax"
                     29: ELF_TOOLCHAIN?=        no
                     30: .else
1.50      drahn      31: ELF_TOOLCHAIN?=        yes
                     32: .endif
1.71      espie      33:
1.109     miod       34: GCC2_ARCH=m68k m88k vax
1.110   ! miod       35: #GCC3_ARCH=alpha sh
        !            36: GCC4_ARCH=amd64 arm hppa hppa64 i386 ia64 mips64 mips64el powerpc sparc sparc64
1.107     drahn      37: BINUTILS217_ARCH=ia64
1.106     drahn      38:
                     39: .for _arch in ${MACHINE_ARCH}
                     40: .if !empty(GCC2_ARCH:M${_arch})
1.92      mickey     41: USE_GCC3?=no
1.101     espie      42: COMPILER_VERSION?=gcc2
1.106     drahn      43: .elif !empty(GCC4_ARCH:M${_arch})
1.101     espie      44: COMPILER_VERSION?=gcc4
1.92      mickey     45: .else
1.72      mickey     46: USE_GCC3?=yes
1.101     espie      47: COMPILER_VERSION?=gcc3
1.107     drahn      48: .endif
                     49:
                     50: .if !empty(BINUTILS217_ARCH:M${_arch})
                     51: BINUTILS_VERSION=binutils-2.17
                     52: .else
                     53: BINUTILS_VERSION=binutils
1.72      mickey     54: .endif
1.106     drahn      55: .endfor
1.32      niklas     56:
1.1       deraadt    57: # where the system object and source trees are kept; can be configurable
                     58: # by the user in case they want them in ~/foosrc and ~/fooobj, for example
                     59: BSDSRCDIR?=    /usr/src
                     60: BSDOBJDIR?=    /usr/obj
                     61:
                     62: BINGRP?=       bin
1.9       deraadt    63: BINOWN?=       root
1.1       deraadt    64: BINMODE?=      555
                     65: NONBINMODE?=   444
1.28      espie      66: DIRMODE?=      755
1.1       deraadt    67:
1.18      tholo      68: SHAREDIR?=     /usr/share
                     69: SHAREGRP?=     bin
                     70: SHAREOWN?=     root
                     71: SHAREMODE?=    ${NONBINMODE}
1.1       deraadt    72:
1.105     schwarze   73: MANDIR?=       /usr/share/man/man
1.1       deraadt    74: MANGRP?=       bin
1.9       deraadt    75: MANOWN?=       root
1.1       deraadt    76: MANMODE?=      ${NONBINMODE}
1.38      deraadt    77:
                     78: PSDIR?=                /usr/share/man/ps
                     79: PSGRP?=                bin
                     80: PSOWN?=                root
                     81: PSMODE?=       ${NONBINMODE}
1.1       deraadt    82:
                     83: LIBDIR?=       /usr/lib
                     84: LINTLIBDIR?=   /usr/libdata/lint
                     85: LIBGRP?=       ${BINGRP}
                     86: LIBOWN?=       ${BINOWN}
                     87: LIBMODE?=      ${NONBINMODE}
                     88:
                     89: DOCDIR?=        /usr/share/doc
                     90: DOCGRP?=       bin
1.9       deraadt    91: DOCOWN?=       root
1.1       deraadt    92: DOCMODE?=       ${NONBINMODE}
1.5       tholo      93:
                     94: LKMDIR?=       /usr/lkm
                     95: LKMGRP?=       ${BINGRP}
                     96: LKMOWN?=       ${BINOWN}
                     97: LKMMODE?=      ${NONBINMODE}
1.1       deraadt    98:
                     99: NLSDIR?=       /usr/share/nls
                    100: NLSGRP?=       bin
1.9       deraadt   101: NLSOWN?=       root
1.1       deraadt   102: NLSMODE?=      ${NONBINMODE}
1.93      espie     103:
                    104: LOCALEDIR?=    /usr/share/locale
                    105: LOCALEGRP?=    wheel
                    106: LOCALEOWN?=    root
                    107: LOCALEMODE?=   ${NONBINMODE}
1.56      espie     108:
1.57      espie     109: # Shared files for system gnu configure, not used yet
                    110: GNUSYSTEM_AUX_DIR?=${BSDSRCDIR}/share/gnu
1.1       deraadt   111:
1.17      millert   112: INSTALL_COPY?= -c
1.13      niklas    113: .ifndef DEBUG
1.17      millert   114: INSTALL_STRIP?=        -s
1.13      niklas    115: .endif
1.12      downsj    116:
                    117: # This may be changed for _single filesystem_ configurations (such as
                    118: # routers and other embedded systems); normal systems should leave it alone!
1.11      downsj    119: STATIC?=       -static
1.1       deraadt   120:
                    121: # Define SYS_INCLUDE to indicate whether you want symbolic links to the system
                    122: # source (``symlinks''), or a separate copy (``copies''); (latter useful
                    123: # in environments where it's not possible to keep /sys publicly readable)
                    124: #SYS_INCLUDE=  symlinks
                    125:
                    126: # don't try to generate PIC versions of libraries on machines
                    127: # which don't support PIC.
1.99      drahn     128: .if ${MACHINE_ARCH} == "m88k" || ${MACHINE_ARCH} == "vax"
1.1       deraadt   129: NOPIC=
1.58      drahn     130: .endif
                    131:
1.86      pvalchev  132: # pic relocation flags.
1.96      martin    133: .if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "sparc64")
1.100     deraadt   134: PICFLAG?=-fPIC
1.86      pvalchev  135: .else
1.100     deraadt   136: PICFLAG?=-fpic
1.86      pvalchev  137: . if ${MACHINE_ARCH} == "m68k"
                    138: # Function CSE makes gas -k not recognize external function calls as lazily
                    139: # resolvable symbols, thus sometimes making ld.so report undefined symbol
                    140: # errors on symbols found in shared library members that would never be
                    141: # called.  Ask niklas@openbsd.org for details.
                    142: PICFLAG+=-fno-function-cse
                    143: . endif
1.62      art       144: .endif
1.86      pvalchev  145:
1.95      brad      146: .if ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64"
1.58      drahn     147: ASPICFLAG=-KPIC
1.95      brad      148: .elif ${ELF_TOOLCHAIN:L} == "no"
1.58      drahn     149: ASPICFLAG=-k
1.14      rahnds    150: .endif
                    151:
                    152: # don't try to generate PROFILED versions of libraries on machines
                    153: # which don't support profiling.
1.87      miod      154: .if 0
1.14      rahnds    155: NOPROFILE=
1.1       deraadt   156: .endif
1.31      espie     157:
                    158: BSD_OWN_MK=Done
1.41      espie     159:
                    160: .PHONY: spell clean cleandir obj manpages print all \
1.98      espie     161:        depend beforedepend afterdepend cleandepend subdirdepend \
1.41      espie     162:        all lint cleanman nlsinstall cleannls includes \
                    163:        beforeinstall realinstall maninstall afterinstall install