freewrt_1_0
freewrt_2_0
|
Last change
on this file since c746a832 was c2e2d0c, checked in by Thorsten Glaser <tg@…>, 19 years ago |
|
sanitise the way tools which must be in lbin/ (currently,
sed and pax/cpio/tar, but there will be more...) are handled:
make prereq invokes a special recursive target install-lbin
which copies them from the staging dir into lbin if they exist
there (i.e. are already installed), or removes the install stamp
otherwise. the tools' install-lbin target does however duplicate
a little code, this could be done better but it works OK like this
also, add a missing include to brcm-utils and fix pax' clean target
git-svn-id: svn://www.freewrt.org/trunk/freewrt@339 afb5a338-a214-0410-bd46-81f09a774fd1
|
-
Property mode
set to
100644
|
|
File size:
637 bytes
|
| Line | |
|---|
| 1 | include $(TOPDIR)/rules.mk
|
|---|
| 2 | include ../rules.mk
|
|---|
| 3 |
|
|---|
| 4 | TARGETS := addpattern trx motorola-bin dgfirmware
|
|---|
| 5 |
|
|---|
| 6 | UTILS_BUILD_DIR:=$(TOOLS_BUILD_DIR)/utils
|
|---|
| 7 |
|
|---|
| 8 | prepare: $(UTILS_BUILD_DIR)
|
|---|
| 9 | compile: prepare $(patsubst %,$(UTILS_BUILD_DIR)/%,$(TARGETS))
|
|---|
| 10 | mkdir -p $(STAGING_DIR)/bin
|
|---|
| 11 | $(CP) $(UTILS_BUILD_DIR)/* $(STAGING_DIR)/bin/
|
|---|
| 12 | install: compile
|
|---|
| 13 | package:
|
|---|
| 14 | clean:
|
|---|
| 15 | rm -rf $(UTILS_BUILD_DIR)
|
|---|
| 16 | for f in $(TARGETS); do \
|
|---|
| 17 | rm -f $(STAGING_DIR)/bin/$$f ; \
|
|---|
| 18 | done
|
|---|
| 19 |
|
|---|
| 20 | $(UTILS_BUILD_DIR):
|
|---|
| 21 | mkdir -p $(UTILS_BUILD_DIR)
|
|---|
| 22 |
|
|---|
| 23 | $(UTILS_BUILD_DIR)/%: src/%.c
|
|---|
| 24 | $(HOSTCC) -I $(TOPDIR)/scripts $(HOSTCFLAGS) -o $@ \
|
|---|
| 25 | $(patsubst $(UTILS_BUILD_DIR)/%,src/%.c,$@)
|
|---|
| 26 | chmod 755 $@
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.