packages.install: remove obsolete minix-all pkg.
[minix3.git] / drivers / memory / Makefile
blobe8a6f5a27035f60816716f93a403b3cb3661a97a
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_CPU} -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.service.mk>