2005-06-09 13:11:10 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
2010-03-24 23:12:29 +01:00
|
|
|
# makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
MAKEDEVS_DIR=$(BUILD_DIR)/makedevs
|
|
|
|
|
|
|
|
$(MAKEDEVS_DIR)/makedevs.c:
|
2005-06-24 09:26:33 +02:00
|
|
|
rm -rf $(MAKEDEVS_DIR)
|
2005-06-09 13:11:10 +02:00
|
|
|
mkdir $(MAKEDEVS_DIR)
|
2010-03-24 23:12:29 +01:00
|
|
|
cp package/makedevs/makedevs.c $(MAKEDEVS_DIR)
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2005-06-24 09:26:33 +02:00
|
|
|
$(MAKEDEVS_DIR)/makedevs: $(MAKEDEVS_DIR)/makedevs.c
|
2010-03-24 23:12:29 +01:00
|
|
|
$(CC) -Wall -Werror -O2 $(MAKEDEVS_DIR)/makedevs.c -o $@
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
$(TARGET_DIR)/usr/bin/makedevs: $(MAKEDEVS_DIR)/makedevs
|
2009-04-01 15:02:07 +02:00
|
|
|
$(INSTALL) -m 755 $^ $@
|
2005-06-24 07:02:00 +02:00
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
makedevs: $(TARGET_DIR)/usr/bin/makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
HOST_MAKEDEVS_DIR=$(BUILD_DIR)/host-makedevs
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
$(HOST_MAKEDEVS_DIR)/makedevs.c:
|
|
|
|
rm -rf $(HOST_MAKEDEVS_DIR)
|
|
|
|
mkdir $(HOST_MAKEDEVS_DIR)
|
|
|
|
cp package/makedevs/makedevs.c $(HOST_MAKEDEVS_DIR)
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
$(HOST_MAKEDEVS_DIR)/makedevs: $(HOST_MAKEDEVS_DIR)/makedevs.c
|
|
|
|
$(CC) -Wall -Werror -O2 $(HOST_MAKEDEVS_DIR)/makedevs.c -o $@
|
|
|
|
|
|
|
|
$(HOST_DIR)/usr/bin/makedevs: $(HOST_MAKEDEVS_DIR)/makedevs
|
|
|
|
$(INSTALL) -m 755 $^ $@
|
2005-06-09 13:11:10 +02:00
|
|
|
|
2010-03-24 23:12:29 +01:00
|
|
|
host-makedevs: $(HOST_DIR)/usr/bin/makedevs
|