1 include $(TOPDIR
)/rules.mk
3 TARGETS
:= addpattern trx motorola-bin
5 UTILS_BUILD_DIR
:=$(BUILD_DIR
)/target-utils
7 prepare
: $(UTILS_BUILD_DIR
)
8 compile
: prepare
$(patsubst %,$(UTILS_BUILD_DIR
)/%,$(TARGETS
))
9 mkdir
-p
$(STAGING_DIR
)/bin
10 $(CP
) $(UTILS_BUILD_DIR
)/* $(STAGING_DIR
)/bin
/
14 rm -rf
$(UTILS_BUILD_DIR
)
15 for f in
$(TARGETS
); do \
16 rm -f
$(STAGING_DIR
)/bin
/$$f ; \
20 mkdir
-p
$(UTILS_BUILD_DIR
)
22 $(UTILS_BUILD_DIR
)/%: src
/%.c
23 $(CC
) -o
$@
$(patsubst $(UTILS_BUILD_DIR
)/%,src
/%.c
,$@
)