1 # Makefile for memory driver (MEMORY)
7 SRCS
= memory.c imgrd.mfs
8 OBJS
= ${SRCS
:N
*.h
:R
:S
/$/.o
/g
}
11 RAMDISK_PATH
= ${NETBSDSRCDIR}/minix
/drivers
/storage
/ramdisk
12 DPADD
+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER}
13 LDADD
+= -lblockdriver
-lchardriver
15 CPPFLAGS.memory.c
+= -I
${NETBSDSRCDIR}/minix
17 imgrd.d
: touch-genfiles
19 [ -e ..
/ramdisk
/image
] || touch
-t
197001020000.00 ..
/ramdisk
/image
26 ${OBJCOPY} -Ibinary
-B
${MACHINE_CPU} -O
${MACHINE_GNU_PLATFORM} $< $@
28 CLEANFILES
+= ..
/ramdisk
/image
29 # BJG - don't invoke parallel Makes
30 #../ramdisk/image: .PHONY
31 # ${MAKE} -C ${RAMDISK_PATH} image
33 CLEANFILES
+= imgrd.mfs
34 imgrd.mfs
: ..
/ramdisk
/image
35 ${HOST_LN} -fs ..
/ramdisk
/image
$@
37 .
include <minix.service.mk
>