Home | History | Annotate | Line # | Download | only in bootblk
Makefile revision 1.13.20.1
      1  1.13.20.1      tls #	$NetBSD: Makefile,v 1.13.20.1 2014/08/20 00:03:24 tls 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.13.20.1      tls CLEANFILES=	ffs.fth.h lfs.fth.h assym.fth.h.tmp \
     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.13      eeh ffs.fth.h: genfth.cf machine sparc
     25        1.8  thorpej 	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
     26  1.13.20.1      tls 	    ${GENASSYM_CPPFLAGS} < ${.CURDIR}/genfth.cf >ffs.fth.h.tmp && \
     27       1.13      eeh 	    mv -f ffs.fth.h.tmp ffs.fth.h
     28        1.1      mrg 
     29       1.13      eeh lfs.fth.h: genlfs.cf machine sparc
     30       1.13      eeh 	${TOOL_GENASSYM} -f -- ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
     31  1.13.20.1      tls 	    ${GENASSYM_CPPFLAGS} < ${.CURDIR}/genlfs.cf >lfs.fth.h.tmp && \
     32       1.13      eeh 	    mv -f lfs.fth.h.tmp lfs.fth.h
     33       1.13      eeh 
     34       1.13      eeh bootblk.text: bootblk.fth ffs.fth.h lfs.fth.h
     35       1.11      apb 	${TOOL_AWK} '/fload/ { print "#include \"" $$2 "\"" }; !/fload/' \
     36        1.1      mrg 	    ${.CURDIR}/bootblk.fth | /usr/bin/cpp -P >bootblk.text.tmp &&
     37        1.1      mrg 	    mv -f bootblk.text.tmp bootblk.text
     38        1.1      mrg 
     39       1.13      eeh bootblk: bootblk.fth ffs.fth.h lfs.fth.h
     40        1.5    lukem 	${TOOL_FGEN} -o bootblk ${.CURDIR}/bootblk.fth
     41        1.1      mrg 
     42        1.1      mrg beforedepend:
     43        1.6      mrg 	@touch .d
     44        1.1      mrg 
     45        1.1      mrg #
     46        1.1      mrg # The following are if you grab the fakeboot program from the Sun website
     47        1.1      mrg #
     48        1.1      mrg 
     49        1.1      mrg fake: bootblk bootblk.text
     50        1.1      mrg 	../fakeboot/fakeboot -elf32 <bootblk >/bootblk
     51        1.1      mrg 	../fakeboot/fakeboot -elf32 <bootblk.text >/bootblk.text
     52        1.1      mrg 
     53  1.13.20.1      tls .include <bsd.klinks.mk>
     54        1.1      mrg .include <bsd.prog.mk>
     55