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

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