xref: /openbsd/usr.sbin/installboot/Makefile (revision a6445c1d)
1#	$OpenBSD: Makefile,v 1.13 2014/03/18 22:36:37 miod Exp $
2
3PROG=		installboot
4SRCS=		installboot.c util.c
5MAN=		installboot.8
6
7CPPFLAGS=	-I${.CURDIR}
8LDADD=		-lutil
9DPADD=		${LIBUTIL}
10
11LDSTATIC=	${STATIC}
12
13.if ${MACHINE} == "alpha"
14SRCS += stubs.c
15.endif
16
17.if ${MACHINE} == "amd64"
18CFLAGS += -DSOFTRAID
19SRCS += i386_installboot.c
20SRCS += i386_nlist.c
21SRCS += i386_softraid.c
22.endif
23
24.if ${MACHINE} == "armish"
25SRCS += stubs.c
26.endif
27
28.if ${MACHINE} == "armv7"
29SRCS += stubs.c
30.endif
31
32.if ${MACHINE} == "aviion"
33SRCS += stubs.c
34.endif
35
36.if ${MACHINE} == "hppa"
37CFLAGS += -DBOOTSTRAP
38SRCS += hppa_installboot.c
39.endif
40
41.if ${MACHINE} == "hppa64"
42CFLAGS += -DBOOTSTRAP
43SRCS += hppa64_installboot.c
44.endif
45
46.if ${MACHINE} == "i386"
47CFLAGS += -DSOFTRAID
48SRCS += i386_installboot.c
49SRCS += i386_nlist.c
50SRCS += i386_softraid.c
51.endif
52
53.if ${MACHINE} == "landisk"
54CFLAGS += -DBOOTSTRAP
55SRCS += landisk_installboot.c
56.endif
57
58.if ${MACHINE} == "loongson"
59SRCS += stubs.c
60.endif
61
62.if ${MACHINE} == "luna88k"
63SRCS += stubs.c
64.endif
65
66.if ${MACHINE} == "macppc"
67SRCS += stubs.c
68.endif
69
70.if ${MACHINE} == "octeon"
71SRCS += stubs.c
72.endif
73
74.if ${MACHINE} == "sgi"
75SRCS += stubs.c
76.endif
77
78.if ${MACHINE} == "socppc"
79SRCS += stubs.c
80.endif
81
82.if ${MACHINE} == "sparc"
83SRCS += stubs.c
84.endif
85
86.if ${MACHINE} == "sparc64"
87CFLAGS += -DSOFTRAID
88SRCS += sparc64_installboot.c
89SRCS += sparc64_softraid.c
90.endif
91
92.if ${MACHINE} == "vax"
93CFLAGS += -DBOOTSTRAP
94SRCS += vax_installboot.c
95.endif
96
97.if ${MACHINE} == "zaurus"
98SRCS += stubs.c
99.endif
100
101.if !empty(CFLAGS:M-DBOOTSTRAP)
102SRCS += bootstrap.c
103.endif
104
105.if !empty(CFLAGS:M-DSOFTRAID)
106SRCS += softraid.c
107.endif
108
109.include <bsd.prog.mk>
110