Cross Reference: Makefile
xref: /src/sys/arch/sparc/stand/bootblk/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/sys/arch/sparc/stand/bootblk/
Makefile revision 1.14
1#	$NetBSD: Makefile,v 1.14 2013/08/21 06:41:52 matt Exp $
2
3CURDIR=	${.CURDIR}
4S=	${CURDIR}/../../../..
5
6#
7# Override normal settings
8#
9
10PROG=	bootblk
11SRCS=		bootblk.fth
12OBJS=
13CLEANFILES=	ffs.fth.h lfs.fth.h assym.fth.h.tmp \
14		bootblk bootblk.text bootblk.text.tmp
15
16NOMAN=		# defined
17STRIPFLAG=
18
19USE_GENASSYM?=	no
20
21INCLUDES=	-I. -I$S/arch -I$S -I${S}/../common/include -nostdinc
22CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_LKM -D_KERNEL
23
24ffs.fth.h: genfth.cf machine sparc
25	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
26	    <${.CURDIR}/genfth.cf >ffs.fth.h.tmp && \
27	    mv -f ffs.fth.h.tmp ffs.fth.h
28
29lfs.fth.h: genlfs.cf machine sparc
30	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
31	    <${.CURDIR}/genlfs.cf >lfs.fth.h.tmp && \
32	    mv -f lfs.fth.h.tmp lfs.fth.h
33
34bootblk.text: bootblk.fth ffs.fth.h lfs.fth.h
35	${TOOL_AWK} '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \
36	    ${.CURDIR}/bootblk.fth | /usr/bin/cpp -P >bootblk.text.tmp &&
37	    mv -f bootblk.text.tmp bootblk.text
38
39bootblk: bootblk.fth ffs.fth.h lfs.fth.h
40	${TOOL_FGEN} -o bootblk ${.CURDIR}/bootblk.fth
41
42beforedepend:
43	@touch .d
44
45#
46# The following are if you grab the fakeboot program from the Sun website
47#
48
49fake: bootblk bootblk.text
50	../fakeboot/fakeboot -elf32 <bootblk >/bootblk
51	../fakeboot/fakeboot -elf32 <bootblk.text >/bootblk.text
52
53.include <bsd.klinks.mk>
54.include <bsd.prog.mk>
55

Indexes created Mon Dec 29 14:09:30 GMT 2025