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