You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
782 B
33 lines
782 B
19 years ago
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
20 years ago
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
19 years ago
|
TARGETS := addpattern trx motorola-bin dgfirmware
|
||
20 years ago
|
|
||
|
UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
|
||
|
|
||
19 years ago
|
download:
|
||
20 years ago
|
prepare: $(UTILS_BUILD_DIR)
|
||
19 years ago
|
compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
|
||
20 years ago
|
mkdir -p $(STAGING_DIR)/bin
|
||
19 years ago
|
$(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
|
||
20 years ago
|
install: compile
|
||
20 years ago
|
package:
|
||
19 years ago
|
clean: FORCE
|
||
20 years ago
|
rm -rf $(UTILS_BUILD_DIR)
|
||
20 years ago
|
for f in $(TARGETS); do \
|
||
|
rm -f $(STAGING_DIR)/bin/$$f ; \
|
||
|
done
|
||
20 years ago
|
|
||
|
$(UTILS_BUILD_DIR):
|
||
|
mkdir -p $(UTILS_BUILD_DIR)
|
||
|
|
||
|
$(UTILS_BUILD_DIR)/%: src/%.c
|
||
18 years ago
|
$(CC) -O2 -I $(STAGING_DIR)/include-host -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
|
||
20 years ago
|
chmod 755 $@
|
||
|
|