summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/stand/boot/Makefile.compressed
blob: cfbb4b9eba12d45e3a7bc862d52a2a35213ee79f (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
#	$NetBSD: Makefile,v 1.2 1995/09/30 21:43:38 pk Exp $

S=	${.CURDIR}/../../../..
R=	..
.PATH:	${.CURDIR}/${R}
PROG=	boot
SRCS=	srt0.S boot.c promdev.c dvma.c bootnet.c netif_sun.c conf.c version.c
INSTALL_STRIP=
NOMAN=	1
BINDIR=	/usr/mdec

# include "library" defines and make rules
KERN_AS=	library
KERNDST=	${.CURDIR}/${__objdir}
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

Z_AS=		library
ZDST=		${.CURDIR}/${__objdir}
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

SA_AS=		library
SADST=		${.CURDIR}/${__objdir}
SAREL=
SA_ZLIB=	yes
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LIBS=	${LIBSA} ${LIBKERN} ${LIBZ}

# ${PROG} overloads the normal rule in bsd.prog.mk

${PROG}:	${OBJS} ${LIBS}
	${LD} -N -T ${RELOC} -e start ${OBJS} \
		-nostdlib -L ${.CURDIR}/${__objdir} -lsa -lkern -lz
	# convert to Sun magic
	@size a.out
	(echo -n 01 | tr 01 '\01\03'; tail +3c a.out) > ${.TARGET}
	@rm a.out

.include <bsd.prog.mk>