kumquat-buildroot/target/makedevs/makedevs.mk

31 lines
814 B
Makefile
Raw Normal View History

#############################################################
#
# build makedevs to run on the build system, in order to create
# device nodes and whatnot for the target device, in conjunction
# with fakeroot.
#
#############################################################
2009-04-01 15:02:07 +02:00
MAKEDEVS_DIR=$(BUILD_DIR)/makedevs-host
$(MAKEDEVS_DIR)/makedevs.c: target/makedevs/makedevs.c
rm -rf $(MAKEDEVS_DIR)
mkdir $(MAKEDEVS_DIR)
cp target/makedevs/makedevs.c $(MAKEDEVS_DIR)
$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)/makedevs.c
2009-04-01 15:02:07 +02:00
$(HOSTCC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@
2009-04-01 15:02:07 +02:00
$(HOST_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs
$(INSTALL) -m 755 $^ $@
2009-04-01 15:02:07 +02:00
makedevs: $(HOST_DIR)/usr/bin/makedevs
makedevs-source:
makedevs-clean:
2009-04-01 15:02:07 +02:00
rm -rf $(MAKEDEVS_DIR)/makedevs
makedevs-dirclean:
rm -rf $(MAKEDEVS_DIR)