cleanup; replace .PHONY with FORCE; disable gdb by default
[openwrt.git] / target / utils / Makefile
1 include $(TOPDIR)/rules.mk
2
3 TARGETS := addpattern trx motorola-bin dgfirmware
4
5 UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
6
7 prepare: $(UTILS_BUILD_DIR)
8 compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
9 mkdir -p $(STAGING_DIR)/bin
10 $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
11 install: compile
12 package:
13 clean: FORCE
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.044885 seconds and 5 git commands to generate.