1 # Makefile for memory driver (MEMORY)
4 SRCS
= memory.c imgrd.mfs
5 OBJS
= ${SRCS
:N
*.h
:R
:S
/$/.o
/g
}
8 RAMDISK_PATH
= ${NETBSDSRCDIR}/drivers
/ramdisk
9 DPADD
+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
10 LDADD
+= -lblockdriver
-lchardriver
-lsys
16 CPPFLAGS.memory.c
+= -I
${NETBSDSRCDIR}
18 imgrd.d
: touch-genfiles
20 [ -e ..
/ramdisk
/image
] || touch
-t
197001020000.00 ..
/ramdisk
/image
25 # 'elf32-${ARCH}-minix' below should really be ${MACHINE_GNU_PLATFORM}
26 # but bsd.own.mk has to be upgraded for that.
29 ${OBJCOPY} -Ibinary
-B
${MACHINE_ARCH} -Oelf32-
${MACHINE_ARCH}-minix
$< $@
31 ${RAMDISK_PATH}/image
: .PHONY
32 ${MAKE} -C
${RAMDISK_PATH} image
34 imgrd.mfs
: ${RAMDISK_PATH}/image
35 ln
-fs
${RAMDISK_PATH}/image
$@
36 CLEANFILES
+= imgrd.mfs
38 .
include <minix.bootprog.mk
>