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

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