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