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