1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-make_detectplatform.mk,v 1.1 2012/12/03 12:54:15 ryoon Exp $
* Add amd64 support for NetBSD
* Add NetBSD support
--- make/detectplatform.mk.orig 2012-11-16 23:02:42.000000000 +0000
+++ make/detectplatform.mk
@@ -25,7 +25,9 @@ ifneq (${hw},x86)
ifneq (${hw},x86_64)
ifneq (${hw},i386)
ifneq (${hw},i686)
- $(error "ERROR: Unknown hardware architecture")
+ ifneq (${hw},amd64)
+ $(error "ERROR: Unknown hardware architecture")
+ endif
endif
endif
endif
@@ -46,6 +48,14 @@ ifeq (${platform},unknown)
endif
endif
+ # NetBSD
+ ifeq (${uname},netbsd)
+ platform := netbsd
+ ifeq (${hw},amd64)
+ platform := netbsd64
+ endif
+ endif
+
# Windows
ifeq (${uname},cygwin)
platform := windows
|