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

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