blob: e821528b4dde7f0c68c5fda3f602780f80628a09 (
plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# $OpenBSD: Makefile,v 1.11 2014/01/19 02:58:50 jsing Exp $
PROG= installboot
SRCS= installboot.c util.c
MAN= installboot.8
CPPFLAGS= -I${.CURDIR}
LDADD= -lutil
DPADD= ${LIBUTIL}
LDSTATIC= -static
.if ${MACHINE} == "alpha"
SRCS += stubs.c
.endif
.if ${MACHINE} == "amd64"
CFLAGS += -DSOFTRAID
SRCS += i386_installboot.c
SRCS += i386_nlist.c
SRCS += i386_softraid.c
.endif
.if ${MACHINE} == "armish"
SRCS += stubs.c
.endif
.if ${MACHINE} == "armv7"
SRCS += stubs.c
.endif
.if ${MACHINE} == "aviion"
SRCS += stubs.c
.endif
.if ${MACHINE} == "hp300"
CFLAGS += -DBOOTSTRAP
SRCS += hp300_installboot.c
.endif
.if ${MACHINE} == "hppa"
CFLAGS += -DBOOTSTRAP
SRCS += hppa_installboot.c
.endif
.if ${MACHINE} == "hppa64"
CFLAGS += -DBOOTSTRAP
SRCS += hppa64_installboot.c
.endif
.if ${MACHINE} == "i386"
CFLAGS += -DSOFTRAID
SRCS += i386_installboot.c
SRCS += i386_nlist.c
SRCS += i386_softraid.c
.endif
.if ${MACHINE} == "landisk"
CFLAGS += -DBOOTSTRAP
SRCS += landisk_installboot.c
.endif
.if ${MACHINE} == "loongson"
SRCS += stubs.c
.endif
.if ${MACHINE} == "luna88k"
SRCS += stubs.c
.endif
.if ${MACHINE} == "macppc"
SRCS += stubs.c
.endif
.if ${MACHINE} == "mvme68k"
SRCS += stubs.c
.endif
.if ${MACHINE} == "mvme88k"
SRCS += stubs.c
.endif
.if ${MACHINE} == "octeon"
SRCS += stubs.c
.endif
.if ${MACHINE} == "sgi"
SRCS += stubs.c
.endif
.if ${MACHINE} == "socppc"
SRCS += stubs.c
.endif
.if ${MACHINE} == "sparc"
SRCS += stubs.c
.endif
.if ${MACHINE} == "sparc64"
CFLAGS += -DSOFTRAID
SRCS += sparc64_installboot.c
SRCS += sparc64_softraid.c
.endif
.if ${MACHINE} == "vax"
CFLAGS += -DBOOTSTRAP
SRCS += vax_installboot.c
.endif
.if ${MACHINE} == "zaurus"
SRCS += stubs.c
.endif
.if !empty(CFLAGS:M-DBOOTSTRAP)
SRCS += bootstrap.c
.endif
.if !empty(CFLAGS:M-DSOFTRAID)
SRCS += softraid.c
.endif
.include <bsd.prog.mk>
|