1 # Makefile for memory driver (MEMORY)
6 SRCS
= memory.c imgrd.mfs
7 OBJS
= ${SRCS
:N
*.h
:R
:S
/$/.o
/g
}
10 RAMDISK_PATH
= ${NETBSDSRCDIR}/drivers
/ramdisk
11 DPADD
+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
12 LDADD
+= -lblockdriver
-lchardriver
-lsys
18 CPPFLAGS.memory.c
+= -I
${NETBSDSRCDIR}
20 imgrd.d
: touch-genfiles
22 [ -e ..
/ramdisk
/image
] || touch
-t
197001020000.00 ..
/ramdisk
/image
29 ${OBJCOPY} -Ibinary
-B
${MACHINE_ARCH} -O
${MACHINE_GNU_PLATFORM} $< $@
31 CLEANFILES
+= ..
/ramdisk
/image
32 ..
/ramdisk
/image
: .PHONY
33 ${MAKE} -C
${RAMDISK_PATH} image
35 CLEANFILES
+= imgrd.mfs
36 imgrd.mfs
: ..
/ramdisk
/image
37 ${HOST_LN} -fs ..
/ramdisk
/image
$@
39 .
include <minix.bootprog.mk
>