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

1.92    ! mickey      1: #      $OpenBSD: bsd.own.mk,v 1.91 2004/12/30 21:51:05 pvalchev 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.90      brad       34: # gcc3
1.92    ! mickey     35: .if ${MACHINE_ARCH} == "alpha" || \
        !            36:     ${MACHINE_ARCH} == "m68k" || ${MACHINE_ARCH} == "m88k" || \
        !            37:     ${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "vax"
        !            38: USE_GCC3?=no
        !            39: .else
1.72      mickey     40: USE_GCC3?=yes
                     41: .endif
1.32      niklas     42:
1.1       deraadt    43: # where the system object and source trees are kept; can be configurable
                     44: # by the user in case they want them in ~/foosrc and ~/fooobj, for example
                     45: BSDSRCDIR?=    /usr/src
                     46: BSDOBJDIR?=    /usr/obj
                     47:
                     48: BINGRP?=       bin
1.9       deraadt    49: BINOWN?=       root
1.1       deraadt    50: BINMODE?=      555
                     51: NONBINMODE?=   444
1.28      espie      52: DIRMODE?=      755
1.1       deraadt    53:
                     54: # Define MANZ to have the man pages compressed (gzip)
                     55: #MANZ=         1
1.18      tholo      56:
1.38      deraadt    57: # Define MANPS to have PostScript manual pages generated
                     58: #MANPS=                1
                     59:
1.18      tholo      60: SHAREDIR?=     /usr/share
                     61: SHAREGRP?=     bin
                     62: SHAREOWN?=     root
                     63: SHAREMODE?=    ${NONBINMODE}
1.1       deraadt    64:
                     65: MANDIR?=       /usr/share/man/cat
                     66: MANGRP?=       bin
1.9       deraadt    67: MANOWN?=       root
1.1       deraadt    68: MANMODE?=      ${NONBINMODE}
1.38      deraadt    69:
                     70: PSDIR?=                /usr/share/man/ps
                     71: PSGRP?=                bin
                     72: PSOWN?=                root
                     73: PSMODE?=       ${NONBINMODE}
1.1       deraadt    74:
                     75: LIBDIR?=       /usr/lib
                     76: LINTLIBDIR?=   /usr/libdata/lint
                     77: LIBGRP?=       ${BINGRP}
                     78: LIBOWN?=       ${BINOWN}
                     79: LIBMODE?=      ${NONBINMODE}
                     80:
                     81: DOCDIR?=        /usr/share/doc
                     82: DOCGRP?=       bin
1.9       deraadt    83: DOCOWN?=       root
1.1       deraadt    84: DOCMODE?=       ${NONBINMODE}
1.5       tholo      85:
                     86: LKMDIR?=       /usr/lkm
                     87: LKMGRP?=       ${BINGRP}
                     88: LKMOWN?=       ${BINOWN}
                     89: LKMMODE?=      ${NONBINMODE}
1.1       deraadt    90:
                     91: NLSDIR?=       /usr/share/nls
                     92: NLSGRP?=       bin
1.9       deraadt    93: NLSOWN?=       root
1.1       deraadt    94: NLSMODE?=      ${NONBINMODE}
1.56      espie      95:
1.57      espie      96: # Shared files for system gnu configure, not used yet
                     97: GNUSYSTEM_AUX_DIR?=${BSDSRCDIR}/share/gnu
1.1       deraadt    98:
1.17      millert    99: INSTALL_COPY?= -c
1.13      niklas    100: .ifndef DEBUG
1.17      millert   101: INSTALL_STRIP?=        -s
1.13      niklas    102: .endif
1.12      downsj    103:
                    104: # This may be changed for _single filesystem_ configurations (such as
                    105: # routers and other embedded systems); normal systems should leave it alone!
1.11      downsj    106: STATIC?=       -static
1.1       deraadt   107:
                    108: # Define SYS_INCLUDE to indicate whether you want symbolic links to the system
                    109: # source (``symlinks''), or a separate copy (``copies''); (latter useful
                    110: # in environments where it's not possible to keep /sys publicly readable)
                    111: #SYS_INCLUDE=  symlinks
                    112:
                    113: # don't try to generate PIC versions of libraries on machines
                    114: # which don't support PIC.
1.83      mickey    115: .if (${MACHINE_ARCH} == "vax") || (${MACHINE_ARCH} == "m88k")
1.1       deraadt   116: NOPIC=
1.58      drahn     117: .endif
                    118:
1.86      pvalchev  119: # pic relocation flags.
1.58      drahn     120: .if (${MACHINE_ARCH} == "sparc64")
                    121: PICFLAG=-fPIC
1.86      pvalchev  122: .else
                    123: PICFLAG=-fpic
                    124: . if ${MACHINE_ARCH} == "m68k"
                    125: # Function CSE makes gas -k not recognize external function calls as lazily
                    126: # resolvable symbols, thus sometimes making ld.so report undefined symbol
                    127: # errors on symbols found in shared library members that would never be
                    128: # called.  Ask niklas@openbsd.org for details.
                    129: PICFLAG+=-fno-function-cse
                    130: . endif
1.62      art       131: .endif
1.86      pvalchev  132:
1.62      art       133: .if (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "sparc")
1.58      drahn     134: ASPICFLAG=-KPIC
1.68      brad      135: .elif (${ELF_TOOLCHAIN:L} == "no")
1.58      drahn     136: ASPICFLAG=-k
1.14      rahnds    137: .endif
                    138:
                    139: # don't try to generate PROFILED versions of libraries on machines
                    140: # which don't support profiling.
1.87      miod      141: .if 0
1.14      rahnds    142: NOPROFILE=
1.1       deraadt   143: .endif
                    144:
                    145: # No lint, for now.
                    146: NOLINT=
1.31      espie     147:
                    148: BSD_OWN_MK=Done
1.41      espie     149:
                    150: .PHONY: spell clean cleandir obj manpages print all \
                    151:        depend beforedepend afterdepend cleandepend \
                    152:        all lint cleanman nlsinstall cleannls includes \
                    153:        beforeinstall realinstall maninstall afterinstall install