some coverity fixes.
[minix.git] / drivers / memory / Makefile
blobfc535176946ae8ba50cd31f0ed138c4a413fe4d3
1 # Makefile for memory driver (MEMORY)
3 PROG= memory
4 SRCS= memory.c imgrd.mfs
5 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
6 MKBUILDEXT2RD?= no
8 RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk
9 DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
10 LDADD+= -lblockdriver -lchardriver -lsys
12 MAN=
14 BINDIR?= /usr/sbin
16 CPPFLAGS.memory.c+= -I${NETBSDSRCDIR}
18 imgrd.d: touch-genfiles
19 touch-genfiles:
20 [ -e ../ramdisk/image ] || touch -t 197001020000.00 ../ramdisk/image
23 .SUFFIXES: .mfs .c .o
25 # 'elf32-${ARCH}-minix' below should really be ${MACHINE_GNU_PLATFORM}
26 # but bsd.own.mk has to be upgraded for that.
27 .mfs.o:
28 ${_MKTARGET_CREATE}
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>