SRCS= memory.c imgrd.mfs
OBJS= ${SRCS:N*.h:R:S/$/.o/g}
+RAMDISK_PATH?= ${NETBSDSRCDIR}/drivers/ramdisk
+
DPADD+= ${LIBBLOCKDRIVER} ${LIBCHARDRIVER} ${LIBSYS}
LDADD+= -lblockdriver -lchardriver -lsys
${_MKTARGET_CREATE}
${OBJCOPY} -Ibinary -B${ARCH} -Oelf32-${ARCH}-minix $< $@
-imgrd.mfs:
- ln -s ../ramdisk/image $@
+${RAMDISK_PATH}/image: .PHONY
+ ${MAKE} -C ${RAMDISK_PATH} image
+
+imgrd.mfs: ${RAMDISK_PATH}/image
+ ln -fs ${RAMDISK_PATH}/image $@
CLEANFILES+= imgrd.mfs
.include <minix.bootprog.mk>
.include <bsd.own.mk>
+TOOL_PWD_MKDB?= ${NETBSDSRCDIR}/usr.sbin/pwd_mkdb/pwd_mkdb
+install:
+
+all:
+
PROG_DRIVERS=at_wini floppy pci
PROG_COMMANDS=cdprobe dev2name loadramdisk mount fsck.mfs sysenv sh \
service
.for driver in $(PROG_DRIVERS)
$(driver): ../$(driver)/$(driver)
- install $> $@
+ ${INSTALL} $> $@
../$(driver)/$(driver):
$(MAKE) -C ../$(driver) $(driver)
dir.$(cmd)=$(cmd)
.endif
$(cmd): ../../commands/$(dir.$(cmd))/$(cmd)
- install $> $@
+ ${INSTALL} $> $@
../../commands/$(dir.$(cmd))/$(cmd):
$(MAKE) -C ../../commands/$(dir.$(cmd)) $(cmd)
.for etc in $(EXTRA)
$(etc): ../../etc/$(etc)
- install $> $@
+ ${INSTALL} $> $@
.endfor
.for cmd in $(PROG_USRSBIN)
$(cmd): ../../usr.sbin/$(cmd)/$(cmd)
- install $> $@
+ ${INSTALL} $> $@
../../usr.sbin/$(cmd)/$(cmd):
$(MAKE) -C ../../usr.sbin/$(cmd) $(cmd)
.for server in $(PROG_SERVERS)
$(server): ../../servers/$(server)/$(server)
- install $> $@
+ ${INSTALL} $> $@
../../servers/$(server)/$(server):
$(MAKE) -C ../../servers/$(server) $(server)
rm -f ../../etc/master.passwd.orig ../../etc/passwd.orig
rm -f ../../etc/pwd.db.tmp ../../etc/spwd.db.tmp
../../usr.sbin/pwd_mkdb/pwd_mkdb -V 0 -p -d ../../ ../../etc/master.passwd
- install ../../etc/$@ $@
+ ${INSTALL} ../../etc/$@ $@
proto.gen: $(PROGRAMS) proto.sh ${PROTO} proto.common.etc proto.common.dynamic proto.sh
strip $(PROGRAMS)