Changeset c2e2d0c in freewrt
- Timestamp:
- Jul 22, 2006, 4:08:05 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- c746a832
- Parents:
- 07526d20
- Files:
-
- 6 edited
-
Makefile (modified) (1 diff)
-
tools/Makefile (modified) (3 diffs)
-
tools/brcm-utils/Makefile (modified) (1 diff)
-
tools/paxmirabilis/Makefile (modified) (2 diffs)
-
tools/rules.mk (modified) (1 diff)
-
tools/sed/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r07526d20 rc2e2d0c 142 142 @env NO_ERROR=${NO_ERROR} bash scripts/scan-tools.sh 143 143 @ln -s $$(lbin/which ${CC}) lbin/gcc 144 @${GMAKE_INV} tools/install-lbin 144 145 @echo '===> Prerequisites checked successfully.' 145 146 @touch $@ -
tools/Makefile
r07526d20 rc2e2d0c 1 # $ Id$1 # $FreeWRT$ 2 2 3 3 include $(TOPDIR)/rules.mk … … 10 10 11 11 TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS)) 12 TARGETS_INSTALL_LBIN:=$(patsubst %,%-install-lbin,$(TARGETS)) 12 13 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS)) 13 14 14 15 all: install 15 install: check-lbin $(TARGETS_INSTALL) 16 install: $(TARGETS_INSTALL) 17 install-lbin: $(TARGETS_INSTALL_LBIN) 16 18 clean: $(TARGETS_CLEAN) 17 18 check-lbin:19 @[ -e ${TOPDIR}/lbin/sed ] || \20 rm -f $(TOOLS_STAMP_DIR)/.tools_sed-install21 @[ -e ${TOPDIR}/lbin/pax ] || \22 rm -f $(TOOLS_STAMP_DIR)/.tools_paxmirabilis-install23 19 24 20 $(STAGING_DIR): … … 59 55 @touch $(TOOLS_STAMP_DIR)/.tools_$@ 60 56 57 %-install-lbin: 58 $(TRACE) tools/$(patsubst %-install-lbin,%,$@)/install-lbin; \ 59 $(MAKE) -C $(patsubst %-install-lbin,%,$@) install-lbin \ 60 $(MAKE_TRACE) 61 61 62 %-clean: 62 63 $(TRACE) tools/$(patsubst %-clean,%,$@)/clean -
tools/brcm-utils/Makefile
r07526d20 rc2e2d0c 1 1 include $(TOPDIR)/rules.mk 2 include ../rules.mk 2 3 3 4 TARGETS := addpattern trx motorola-bin dgfirmware -
tools/paxmirabilis/Makefile
r07526d20 rc2e2d0c 1 # $FreeWRT$ 2 1 3 include $(TOPDIR)/rules.mk 2 4 … … 38 40 39 41 install: compile 40 -rm -f ${TOPDIR}/lbin/{pax,cpio,tar} 41 install -c -s -m 555 ${WRKBUILD}/pax ${TOPDIR}/lbin/pax 42 mkdir -p $(STAGING_DIR)/bin 43 -rm -f $(STAGING_DIR)/bin/{pax,cpio,tar} ${TOPDIR}/lbin/{pax,cpio,tar} 44 install -c -s -m 555 ${WRKBUILD}/pax $(STAGING_DIR)/bin/pax 45 cd ${STAGING_DIR}/bin && ln pax cpio && ln pax tar 46 cp $(STAGING_DIR)/bin/pax ${TOPDIR}/lbin/pax 42 47 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar 48 49 install-lbin: 50 rm -f ${TOPDIR}/lbin/{pax,cpio,tar} 51 if [ -e $(STAGING_DIR)/bin/pax ]; then \ 52 cp $(STAGING_DIR)/bin/pax ${TOPDIR}/lbin/pax; \ 53 cd ${TOPDIR}/lbin && ln pax cpio && ln pax tar; \ 54 else \ 55 rm -f $(TOOLS_STAMP_DIR)/.tools_paxmirabilis-install; \ 56 fi 43 57 44 58 package: 45 59 46 60 clean: 47 rm -rf src ${TOPDIR}/lbin/{pax,cpio,tar} 61 rm -rf ${WRKBUILD} 62 rm -f $(STAGING_DIR)/bin/{pax,cpio,tar} ${TOPDIR}/lbin/{pax,cpio,tar} 48 63 49 64 ${WRKBUILD}: -
tools/rules.mk
r07526d20 rc2e2d0c 16 16 ${PKG_MD5SUM} ${PKG_SOURCE_URL} 17 17 endif 18 19 install-lbin: -
tools/sed/Makefile
r07526d20 rc2e2d0c 6 6 PKG_MD5SUM:= 928f0e06422f414091917401f1a834d0 7 7 PKG_SOURCE_URL:= ftp://ftp.gnu.org/gnu/sed 8 PKG_BINARY:= sed/sed9 PKG_TARGET_BINARY:= bin/sed10 8 11 9 include $(TOPDIR)/rules.mk … … 27 25 touch $@ 28 26 29 $(WRKBUILD)/ $(PKG_BINARY): $(WRKBUILD)/.configured27 $(WRKBUILD)/sed/sed: $(WRKBUILD)/.configured 30 28 $(MAKE) -C $(WRKBUILD) 31 29 32 # This stuff is needed to work around GNU make deficiencies 33 build-sed-host-binary: $(WRKBUILD)/$(PKG_BINARY) 34 @if [ -L $(STAGING_DIR)/$(PKG_TARGET_BINARY) ] ; then \ 35 rm -f $(STAGING_DIR)/$(PKG_TARGET_BINARY); fi; 36 @if [ ! -f $(STAGING_DIR)/$(PKG_TARGET_BINARY) -o $(STAGING_DIR)/$(PKG_TARGET_BINARY) \ 37 -ot $(WRKBUILD)/$(PKG_BINARY) ] ; then \ 38 set -x; \ 39 mkdir -p $(STAGING_DIR)/bin; \ 40 $(MAKE) DESTDIR=$(STAGING_DIR) -C $(WRKBUILD) install; \ 41 mv $(STAGING_DIR)/usr/bin/sed $(STAGING_DIR)/bin/; \ 42 rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/usr/info \ 43 $(STAGING_DIR)/usr/man $(STAGING_DIR)/usr/share/doc; fi 30 source: 31 prepare: $(WRKBUILD)/.unpacked 44 32 45 install-lbin: ${WRKBUILD}/${PKG_BINARY} 46 install -c -s -m 555 ${WRKBUILD}/${PKG_BINARY} ${TOPDIR}/lbin/sed 33 compile: $(WRKBUILD)/sed/sed 47 34 48 source: 49 prepare: 50 compile: 51 install: build-sed-host-binary install-lbin 35 install: compile 36 mkdir -p $(STAGING_DIR)/bin 37 rm -f $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed 38 install -c -s -m 555 ${WRKBUILD}/sed/sed $(STAGING_DIR)/bin/sed 39 cp $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed 40 41 install-lbin: 42 rm -f ${TOPDIR}/lbin/sed 43 if [ -e $(STAGING_DIR)/bin/sed ]; then \ 44 cp $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed; \ 45 else \ 46 rm -f $(TOOLS_STAMP_DIR)/.tools_sed-install; \ 47 fi 48 52 49 clean: 53 50 rm -rf $(WRKBUILD) 54 rm -f $(STAGING_DIR)/ $(PKG_TARGET_BINARY)51 rm -f $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed
Note:
See TracChangeset
for help on using the changeset viewer.
