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