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