Dynamically determine which ramdisk to use
.Also, rename ext2_ramdisk to ramdisk_ext2.
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
# Makefile for memory driver (MEMORY)
|
||||
|
||||
PROG= memory
|
||||
SRCS= memory.c imgrd.mfs
|
||||
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
|
||||
MKBUILDEXT2RD?= no
|
||||
|
||||
RAMDISK_PATH?= ${NETBSDSRCDIR}/drivers/ramdisk
|
||||
.if ${MKBUILDEXT2RD} != "yes"
|
||||
RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk
|
||||
.else
|
||||
RAMDISK_PATH= ${NETBSDSRCDIR}/drivers/ramdisk_ext2
|
||||
.endif
|
||||
|
||||
DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
|
||||
LDADD+= -lblockdriver -lchardriver -lsys
|
||||
|
||||
Reference in New Issue
Block a user