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

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