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

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