source: freewrt/tools/brcm-utils/Makefile@ 131a9d7

freewrt_1_0 freewrt_2_0
Last change on this file since 131a9d7 was 131a9d7, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

move tools like sed, trx, lzma, which does not belong to the toolchain (gcc,binutils,gdb,libc) to a separate directory, all stuff is compiled with the host compiler

git-svn-id: svn://www.freewrt.org/trunk/freewrt@194 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 621 bytes
Line 
1include $(TOPDIR)/rules.mk
2
3TARGETS := addpattern trx motorola-bin dgfirmware
4
5UTILS_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/utils
6
7prepare: $(UTILS_BUILD_DIR)
8compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
9 mkdir -p $(STAGING_DIR)/bin
10 $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
11install: compile
12package:
13clean:
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 $(HOSTCC) -I $(TOPDIR)/scripts $(HOSTCFLAGS) -o $@ \
24 $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
25 chmod 755 $@
Note: See TracBrowser for help on using the repository browser.