Drop main() prototype. Syncs with NetBSD-8
[minix.git] / minix / drivers / storage / memory / Makefile
blob860b5e79e0ccb998bce88a0b16250df6372f746f
1 # Makefile for memory driver (MEMORY)
2 .include <bsd.own.mk>
4 USE_BITCODE:=no
6 PROG= memory
7 SRCS= memory.c imgrd.mfs
8 OBJS= ${SRCS:N*.h:R:S/$/.o/g}
9 MKBUILDEXT2RD?= no
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
18 touch-genfiles:
19 [ -e ../ramdisk/image ] || touch -t 197001020000.00 ../ramdisk/image
22 .SUFFIXES: .mfs .c .o
24 .mfs.o:
25 ${_MKTARGET_CREATE}
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>