UTILS_BUILD_DIR:=$(BUILD_DIR)/target-utils
-source:
+download:
prepare: $(UTILS_BUILD_DIR)
compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS)) FORCE
mkdir -p $(STAGING_DIR)/bin
mkdir -p $(UTILS_BUILD_DIR)
$(UTILS_BUILD_DIR)/%: src/%.c
- $(CC) -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
+ $(CC) -O2 -I $(STAGING_DIR)/include-host -include endian.h -o $@ $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
chmod 755 $@