1 # $NetBSD: Makefile,v 1.43 2017/02/09 18:15:07 joerg Exp $ 2 # 3 # ramdisk.fs is the microroot filesystem intended for use with 4 # the INSTALL kernel. It provides just enough tools to extract the 5 # miniroot-based `instfs' filesystem into an MFS mount point 6 # and start the installation scripts from there (see dot.profile). 7 # 8 9 .include <bsd.own.mk> 10 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib" 11 12 IMAGE= ramdisk.fs 13 IMAGESIZE= 2000b 14 15 WARNS= 1 16 DBG= ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer -fno-unwind-tables : -Os } 17 18 CRUNCHBIN= ramdiskbin 19 LISTS= ${.CURDIR}/list 20 MTREECONF= ${DISTRIBDIR}/common/mtree.common 21 IMAGEENDIAN= be 22 MAKEDEVTARGETS= floppy 23 IMAGEDEPENDS+= ${CRUNCHBIN} dot.profile 24 25 # Use stubs to eliminate some large stuff from libc 26 HACKSRC= ${DISTRIBDIR}/utils/libhack 27 HACKOBJS= gethost.o 28 .include "${HACKSRC}/Makefile.inc" 29 ${CRUNCHBIN}: libhack.o 30 31 .include "${DISTRIBDIR}/common/Makefile.crunch" 32 .include "${DISTRIBDIR}/common/Makefile.makedev" 33 .include "${DISTRIBDIR}/common/Makefile.image" 34 35 release: 36 37 .include <bsd.prog.mk> 38