Cross Reference: Makefile
xref: /src/sys/arch/vax/boot/xxboot_ustarfs/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/arch/vax/boot/xxboot_ustarfs/
Makefile revision 1.5
1#	$NetBSD: Makefile,v 1.5 2003/12/08 07:32:19 matt Exp $
2
3S=	${.CURDIR}/../../../..
4
5.PATH:	${.CURDIR}/../xxboot
6
7PROG=	xxboot_ustarfs
8WARNS?=	1
9
10SRCS=	start.S bootxx.c romread.S str.S
11
12STRIPFLAG=
13CPPFLAGS+=-D_STANDALONE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS \
14	-DLIBSA_NO_TWIDDLE -DLIBSA_SINGLE_DEVICE=rom \
15	-DLIBSA_NO_COMPAT_UFS \
16	-DLIBSA_NO_FS_SYMLINK -DLIBSA_NO_FS_CLOSE \
17	-DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK \
18	-DNEED_USTARFS
19BINDIR=	/usr/mdec
20NOMAN=	# defined
21
22CFLAGS=	-Os
23LIBC=
24
25SA_AS=	library
26.include "${S}/lib/libsa/Makefile.inc"
27LIBSA=	${SALIB}
28
29KERN_AS=library
30.include "${S}/lib/libkern/Makefile.inc"
31LIBKERN=${KERNLIB}
32
33.if ${MACHINE} == "vax"
34.PHONY: machine-links
35beforedepend: machine-links
36machine-links:
37	@[ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine
38	@[ -h ${MACHINE_ARCH} ] || ln -s ${S}/arch/${MACHINE_ARCH}/include ${MACHINE_ARCH}
39.NOPATH: machine ${MACHINE_ARCH}
40CLEANFILES+= machine ${MACHINE_ARCH}
41.endif
42CLEANFILES+= ${PROG}.out
43
44${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
45${PROG}: ${OBJS} ${LIBSA} ${LIBKERN}
46	${LD} -N -Ttext 100000 -o ${PROG}.out ${OBJS} ${LIBSA} ${LIBKERN}
47	${SIZE} ${PROG}.out
48	${OBJCOPY} -O binary ${PROG}.out ${PROG}
49
50.include <bsd.prog.mk>
51

Indexes created Fri Dec 12 19:09:41 GMT 2025