Home | History | Annotate | Line # | Download | only in bootblk
Makefile revision 1.11.2.1
      1  1.11.2.1    skrll #	$NetBSD: Makefile,v 1.11.2.1 2009/04/28 07:34:46 skrll 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.1      mrg CLEANFILES=	assym.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.11.2.1    skrll assym.fth.h: genfth.cf machine sparc
     36       1.8  thorpej 	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
     37       1.1      mrg 	    <${.CURDIR}/genfth.cf >assym.fth.h.tmp && \
     38       1.1      mrg 	    mv -f assym.fth.h.tmp assym.fth.h
     39       1.1      mrg 
     40       1.1      mrg bootblk.text: bootblk.fth assym.fth.h
     41      1.11      apb 	${TOOL_AWK} '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \
     42       1.1      mrg 	    ${.CURDIR}/bootblk.fth | /usr/bin/cpp -P >bootblk.text.tmp &&
     43       1.1      mrg 	    mv -f bootblk.text.tmp bootblk.text
     44       1.1      mrg 
     45       1.1      mrg bootblk: bootblk.fth assym.fth.h
     46       1.5    lukem 	${TOOL_FGEN} -o bootblk ${.CURDIR}/bootblk.fth
     47       1.1      mrg 
     48       1.1      mrg beforedepend:
     49       1.6      mrg 	@touch .d
     50       1.1      mrg 
     51       1.1      mrg #
     52       1.1      mrg # The following are if you grab the fakeboot program from the Sun website
     53       1.1      mrg #
     54       1.1      mrg 
     55       1.1      mrg fake: bootblk bootblk.text
     56       1.1      mrg 	../fakeboot/fakeboot -elf32 <bootblk >/bootblk
     57       1.1      mrg 	../fakeboot/fakeboot -elf32 <bootblk.text >/bootblk.text
     58       1.1      mrg 
     59       1.1      mrg .include <bsd.prog.mk>
     60