kumquat-buildroot/target/makedevs/makedevs.mk
Eric Andersen 611ec0e3b1 Add a standalone makedevs application to be used along with
fakeroot to construct target device nodes for filesystems
and utilities (such as tar) that do not currently support
device tables natively.
2005-06-09 11:11:10 +00:00

28 lines
665 B
Makefile

#############################################################
#
# build makedevs to run on the build system, in order to create
# device nodes and whatnot for the target device, in conjunction
# with fakeroot.
#
#############################################################
MAKEDEVS_DIR=$(BUILD_DIR)/makedevs
$(MAKEDEVS_DIR)/makedevs.c:
mkdir $(MAKEDEVS_DIR)
cp target/makedevs/makedevs.c $(MAKEDEVS_DIR)
$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)
gcc -Wall -O2 makedevs.c -o makedevs
touch -c $(MAKEDEVS_DIR)/makedevs
makedevs: $(MAKEDEVS_DIR)/makedevs
makedevs-source:
makedevs-clean:
-rm -rf $(MAKEDEVS_DIR)
makedevs-dirclean:
rm -rf $(MAKEDEVS_DIR)