vm: fix region reporting bug
[minix.git] / drivers / memory / Makefile
blob1f7b89ec8bc9a8888e920b75d776391953db0393
1 # Makefile for memory driver (MEMORY)
3 .include <bsd.own.mk>
5 PROG= memory
6 SRCS= memory.c imgrd.mfs
7 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
8 MKBUILDEXT2RD?= no
10 RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk
11 DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
12 LDADD+= -lblockdriver -lchardriver -lsys
14 MAN=
16 BINDIR?= /usr/sbin
18 CPPFLAGS.memory.c+= -I${NETBSDSRCDIR}
20 imgrd.d: touch-genfiles
21 touch-genfiles:
22 [ -e ../ramdisk/image ] || touch -t 197001020000.00 ../ramdisk/image
25 .SUFFIXES: .mfs .c .o
27 .mfs.o:
28 ${_MKTARGET_CREATE}
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>