Home | History | Annotate | Line # | Download | only in bootblk
Makefile revision 1.12.2.1
      1  1.12.2.1  uebayasi #	$NetBSD: Makefile,v 1.12.2.1 2010/04/30 14:39:50 uebayasi Exp $
      2       1.1       mrg 
      3       1.1       mrg CURDIR=	${.CURDIR}
      4       1.1       mrg S=	${CURDIR}/../../../..
      5       1.1       mrg 
      6       1.1       mrg #
      7       1.1       mrg # Override normal settings
      8       1.1       mrg #
      9       1.1       mrg 
     10       1.1       mrg PROG=	bootblk
     11       1.1       mrg SRCS=		bootblk.fth
     12       1.1       mrg OBJS=
     13  1.12.2.1  uebayasi CLEANFILES=	ffs.fth.h lfs.fth.h assym.fth.h.tmp machine sparc \
     14       1.1       mrg 		bootblk bootblk.text bootblk.text.tmp
     15       1.1       mrg 
     16       1.3        tv NOMAN=		# defined
     17       1.3        tv STRIPFLAG=
     18       1.1       mrg 
     19       1.1       mrg USE_GENASSYM?=	no
     20       1.1       mrg 
     21      1.10   tsutsui INCLUDES=	-I. -I$S/arch -I$S -I${S}/../common/include -nostdinc
     22       1.8   thorpej CPPFLAGS=	${INCLUDES} ${IDENT} ${PARAM} -D_LKM -D_KERNEL
     23       1.1       mrg 
     24       1.1       mrg #all:: bootblk.text bootblk
     25       1.1       mrg 
     26       1.1       mrg #clean:: 
     27       1.1       mrg #	rm assym.fth.h bootblk.text machine bootblk
     28       1.1       mrg 
     29       1.1       mrg sparc:
     30       1.1       mrg 	ln -s ${.CURDIR}/../../../sparc/include sparc
     31       1.1       mrg 
     32       1.1       mrg machine:
     33       1.1       mrg 	ln -s ${.CURDIR}/../../../${MACHINE}/include machine
     34       1.1       mrg 
     35  1.12.2.1  uebayasi ffs.fth.h: genfth.cf machine sparc
     36       1.8   thorpej 	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
     37  1.12.2.1  uebayasi 	    <${.CURDIR}/genfth.cf >ffs.fth.h.tmp && \
     38  1.12.2.1  uebayasi 	    mv -f ffs.fth.h.tmp ffs.fth.h
     39       1.1       mrg 
     40  1.12.2.1  uebayasi lfs.fth.h: genlfs.cf machine sparc
     41  1.12.2.1  uebayasi 	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
     42  1.12.2.1  uebayasi 	    <${.CURDIR}/genlfs.cf >lfs.fth.h.tmp && \
     43  1.12.2.1  uebayasi 	    mv -f lfs.fth.h.tmp lfs.fth.h
     44  1.12.2.1  uebayasi 
     45  1.12.2.1  uebayasi bootblk.text: bootblk.fth ffs.fth.h lfs.fth.h
     46      1.11       apb 	${TOOL_AWK} '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \
     47       1.1       mrg 	    ${.CURDIR}/bootblk.fth | /usr/bin/cpp -P >bootblk.text.tmp &&
     48       1.1       mrg 	    mv -f bootblk.text.tmp bootblk.text
     49       1.1       mrg 
     50  1.12.2.1  uebayasi bootblk: bootblk.fth ffs.fth.h lfs.fth.h
     51       1.5     lukem 	${TOOL_FGEN} -o bootblk ${.CURDIR}/bootblk.fth
     52       1.1       mrg 
     53       1.1       mrg beforedepend:
     54       1.6       mrg 	@touch .d
     55       1.1       mrg 
     56       1.1       mrg #
     57       1.1       mrg # The following are if you grab the fakeboot program from the Sun website
     58       1.1       mrg #
     59       1.1       mrg 
     60       1.1       mrg fake: bootblk bootblk.text
     61       1.1       mrg 	../fakeboot/fakeboot -elf32 <bootblk >/bootblk
     62       1.1       mrg 	../fakeboot/fakeboot -elf32 <bootblk.text >/bootblk.text
     63       1.1       mrg 
     64       1.1       mrg .include <bsd.prog.mk>
     65