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
-a
$(UTILS_BUILD_DIR
)/* $(STAGING_DIR
)/bin
/
14 rm -rf
$(UTILS_BUILD_DIR
)
17 mkdir
-p
$(UTILS_BUILD_DIR
)
19 $(UTILS_BUILD_DIR
)/%: src
/%.c
20 $(CC
) -o
$@
$(patsubst $(UTILS_BUILD_DIR
)/%,src
/%.c
,$@
)