summaryrefslogtreecommitdiff
path: root/distrib/utils/x_disklabel/Makefile
blob: 5727c2922f32b7e618e0bcb2594bea44e121e2ff (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
# $NetBSD: Makefile,v 1.2 2018/01/24 09:04:41 skrll Exp $
# Build a small disklabel (for tiny boot media)

SRCDIR=	${.CURDIR}/../../../sbin/disklabel

PROG=	disklabel
SRCS=	main.c dkcksum.c printlabel.c
#SRCS+=	interact.c
NOMAN=	# defined

CPPFLAGS+=	-DNO_INTERACT
CPPFLAGS+=	-DNATIVELABEL_ONLY

DPADD+= ${LIBUTIL}
LDADD+= -lutil

# these have additional requirements on the alignment of a partition
.if (${MACHINE} == "sparc") || (${MACHINE} == "sparc64") \
	|| (${MACHINE} == "sun3")
CPPFLAGS+= -DSTRICT_CYLINDER_ALIGNMENT
.endif

.if ${MACHINE} == "acorn32"
# Support FileCore boot block
CPPFLAGS+= -DUSE_ACORN
.endif

.if (${MACHINE_ARCH} == "alpha")
# alpha requires boot block checksum
CPPFLAGS+= -DALPHA_BOOTBLOCK_CKSUM
.endif

.if (${MACHINE_ARCH} == "vax")
# vax requires labels in alternative sectors on SMD disk
CPPFLAGS+= -DVAX_ALTLABELS
.endif

.include <bsd.prog.mk>

.PATH:	${SRCDIR}