| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: OpenBSD.bsd.own.mk.in,v 1.3 2008/11/15 13:06:42 schwarz Exp $ | | 1 | # $NetBSD: OpenBSD.bsd.own.mk.in,v 1.4 2014/05/10 23:01:26 ryoon Exp $ |
2 | | | 2 | |
3 | .if !defined(_BSD_OWN_MK_) | | 3 | .if !defined(_BSD_OWN_MK_) |
4 | _BSD_OWN_MK_=1 | | 4 | _BSD_OWN_MK_=1 |
5 | | | 5 | |
6 | # XXX On systems with a Berkeley-style make, perhaps we ought to check | | 6 | # XXX On systems with a Berkeley-style make, perhaps we ought to check |
7 | # XXX for and source a file other than /etc/mk.conf | | 7 | # XXX for and source a file other than /etc/mk.conf |
8 | | | 8 | |
9 | .if defined(MAKECONF) && exists(${MAKECONF}) | | 9 | .if defined(MAKECONF) && exists(${MAKECONF}) |
10 | .include "${MAKECONF}" | | 10 | .include "${MAKECONF}" |
11 | .elif exists(@SYSCONFDIR@/mk.conf) | | 11 | .elif exists(@SYSCONFDIR@/mk.conf) |
12 | .include "@SYSCONFDIR@/mk.conf" | | 12 | .include "@SYSCONFDIR@/mk.conf" |
13 | .elif exists(/etc/mk.conf) | | 13 | .elif exists(/etc/mk.conf) |
14 | .include "/etc/mk.conf" | | 14 | .include "/etc/mk.conf" |
| @@ -96,26 +96,27 @@ NOLINT=1 | | | @@ -96,26 +96,27 @@ NOLINT=1 |
96 | NOPROFILE=1 | | 96 | NOPROFILE=1 |
97 | NOPIC?=1 | | 97 | NOPIC?=1 |
98 | .endif | | 98 | .endif |
99 | | | 99 | |
100 | # Data-driven table using make variables to control how | | 100 | # Data-driven table using make variables to control how |
101 | # toolchain-dependent targets and shared libraries are built | | 101 | # toolchain-dependent targets and shared libraries are built |
102 | # for different platforms and object formats. | | 102 | # for different platforms and object formats. |
103 | # OBJECT_FMT: currently either "ELF" or "a.out". | | 103 | # OBJECT_FMT: currently either "ELF" or "a.out". |
104 | # SHLIB_TYPE: "ELF" or "a.out" or "" to force static libraries. | | 104 | # SHLIB_TYPE: "ELF" or "a.out" or "" to force static libraries. |
105 | # | | 105 | # |
106 | .if ${MACHINE_ARCH} == "alpha" || \ | | 106 | .if ${MACHINE_ARCH} == "alpha" || \ |
107 | ${MACHINE_ARCH} == "powerpc" || \ | | 107 | ${MACHINE_ARCH} == "powerpc" || \ |
108 | ${MACHINE_ARCH} == "sparc" || \ | | 108 | ${MACHINE_ARCH} == "sparc" || \ |
| | | 109 | ${OS_VERSION} >= 5.4 || \ |
109 | ( ${MACHINE_ARCH} == "i386" && ${OS_VERSION} >= 3.4 ) | | 110 | ( ${MACHINE_ARCH} == "i386" && ${OS_VERSION} >= 3.4 ) |
110 | OBJECT_FMT?=ELF | | 111 | OBJECT_FMT?=ELF |
111 | .else | | 112 | .else |
112 | OBJECT_FMT?=a.out | | 113 | OBJECT_FMT?=a.out |
113 | .endif | | 114 | .endif |
114 | | | 115 | |
115 | # Location of the file that contains the major and minor numbers of the | | 116 | # Location of the file that contains the major and minor numbers of the |
116 | # version of a shared library. If this file exists a shared library | | 117 | # version of a shared library. If this file exists a shared library |
117 | # will be built by <bsd.lib.mk>. | | 118 | # will be built by <bsd.lib.mk>. |
118 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version | | 119 | SHLIB_VERSION_FILE?= ${.CURDIR}/shlib_version |
119 | | | 120 | |
120 | # GNU sources and packages sometimes see architecture names differently. | | 121 | # GNU sources and packages sometimes see architecture names differently. |
121 | # This table maps an architecture name to its GNU counterpart. | | 122 | # This table maps an architecture name to its GNU counterpart. |