add Wi-viz
[openwrt.git] / openwrt / target / utils / Makefile
1 include $(TOPDIR)/rules.mk
2
3 TARGETS := addpattern trx motorola-bin
4
5 UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
6
7 prepare: $(UTILS_BUILD_DIR)
8 compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
9 mkdir -p $(STAGING_DIR)/bin
10 cp -a $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
11 install: compile
12 package:
13 clean:
14 rm -rf $(UTILS_BUILD_DIR)
15 for f in $(TARGETS); do \
16 rm -f $(STAGING_DIR)/bin/$$f ; \
17 done
18
19 $(UTILS_BUILD_DIR):
20 mkdir -p $(UTILS_BUILD_DIR)
21
22 $(UTILS_BUILD_DIR)/%: src/%.c
23 $(CC) -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
24 chmod 755 $@
25
This page took 0.045193 seconds and 5 git commands to generate.