Changeset 41be261 in freewrt
- Timestamp:
- Jun 11, 2006, 11:06:20 PM (20 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 291c947
- Parents:
- 1afde0f
- Files:
-
- 1 deleted
- 3 edited
-
Makefile (modified) (2 diffs)
-
build.mk (modified) (4 diffs)
-
scripts/configtest.pl (deleted)
-
toolchain/sed/Makefile (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r1afde0f r41be261 52 52 cleandir: prereq 53 53 ${GMAKE_INV} cleandir 54 -rm -rf lbin55 -rm -f prereq54 @-rm -rf lbin 55 @-rm -f prereq 56 56 57 57 distclean: prereq 58 58 ${GMAKE_INV} distclean 59 -rm -rf lbin60 -rm -f prereq59 @-rm -rf lbin 60 @-rm -f prereq 61 61 62 62 image_clean: prereq … … 82 82 83 83 prereq: 84 -rm -rf prereq lbin85 mkdir lbin86 if which gmake >/dev/null 2>&1; then \84 @-rm -rf prereq lbin 85 @mkdir lbin 86 @if which gmake >/dev/null 2>&1; then \ 87 87 ln -s $$(which gmake) lbin/gmake; \ 88 88 else \ 89 89 ln -s $$(which make) lbin/gmake; \ 90 90 fi 91 if ! which md5sum >/dev/null 2>&1; then \91 @if ! which md5sum >/dev/null 2>&1; then \ 92 92 cp scripts/md5sum.bsd lbin/md5sum; \ 93 93 chmod 555 lbin/md5sum; \ 94 94 fi 95 touch $@95 @touch $@ -
build.mk
r1afde0f r41be261 26 26 export TOPDIR 27 27 28 ifneq ($(DEVELOPER),)29 CONFIG_CONFIG_IN = Config.in.devel30 else31 28 CONFIG_CONFIG_IN = Config.in 32 endif33 29 CONFIG = package/config 34 30 … … 47 43 48 44 .NOTPARALLEL: 49 .PHONY: all world clean cleandir distclean image_clean target_clean source configtest45 .PHONY: all world clean cleandir distclean image_clean target_clean source 50 46 51 47 ############################################################# … … 59 55 include .config.cmd 60 56 61 world: $(DL_DIR) $(BUILD_DIR) configtest57 world: $(DL_DIR) $(BUILD_DIR) 62 58 $(MAKE) -f build.mk toolchain/install target/compile package/compile root_clean package/install target/install package_index 63 59 @$(TRACE) Build complete. 64 65 configtest:66 -cp .config .config.test67 -scripts/configtest.pl68 60 69 61 package_index: … … 137 129 menuconfig: $(CONFIG)/mconf 138 130 -touch .config 139 -cp .config .config.test140 131 @$(CONFIG)/mconf $(CONFIG_CONFIG_IN) 141 -./scripts/configtest.pl142 132 143 133 config: $(CONFIG)/conf 144 134 -touch .config 145 -cp .config .config.test146 135 @$(CONFIG)/conf $(CONFIG_CONFIG_IN) 147 -./scripts/configtest.pl148 136 149 137 oldconfig: $(CONFIG)/conf 150 138 -touch .config 151 -cp .config .config.test152 139 @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 153 -./scripts/configtest.pl154 140 155 141 randconfig: $(CONFIG)/conf 156 142 -touch .config 157 -cp .config .config.test158 143 @$(CONFIG)/conf -r $(CONFIG_CONFIG_IN) 159 -./scripts/configtest.pl160 144 161 145 allyesconfig: $(CONFIG)/conf 162 146 -touch .config 163 -cp .config .config.test164 147 @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) 165 -./scripts/configtest.pl166 148 167 149 allnoconfig: $(CONFIG)/conf 168 150 -touch .config 169 -cp .config .config.test170 151 @$(CONFIG)/conf -n $(CONFIG_CONFIG_IN) 171 -./scripts/configtest.pl172 152 173 153 endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) -
toolchain/sed/Makefile
r1afde0f r41be261 1 # $FreeWRT$ 2 1 3 include $(TOPDIR)/rules.mk 2 4 3 #############################################################4 #5 # sed6 #7 #############################################################8 5 SED_VER:=4.1.2 9 6 SED_SOURCE:=sed-$(SED_VER).tar.gz 10 7 SED_SITE:=ftp://ftp.gnu.org/gnu/sed 8 SED_MD5SUM:=928f0e06422f414091917401f1a834d0 9 11 10 SED_CAT:=zcat 12 SED_DIR1:=$(TOOL_BUILD_DIR)/sed-$(SED_VER) 13 SED_DIR2:=$(BUILD_DIR)/sed-$(SED_VER) 11 SED_DIR:=$(TOOL_BUILD_DIR)/sed-$(SED_VER) 14 12 SED_BINARY:=sed/sed 15 13 SED_TARGET_BINARY:=bin/sed 16 ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)17 14 SED_CPPFLAGS=-D_FILE_OFFSET_BITS=64 18 endif19 15 HOST_SED_TARGET=$(shell ./sedcheck.sh) 20 16 21 17 $(DL_DIR)/$(SED_SOURCE): 22 18 mkdir -p $(DL_DIR) 23 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SED_SOURCE) x$(SED_SITE)19 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(SED_SOURCE) $(SED_MD5SUM) $(SED_SITE) 24 20 25 ############################################################# 26 # 27 # build sed for use on the host system 28 # 29 ############################################################# 30 31 $(SED_DIR1)/.unpacked: $(DL_DIR)/$(SED_SOURCE) 21 $(SED_DIR)/.unpacked: $(DL_DIR)/$(SED_SOURCE) 32 22 mkdir -p $(TOOL_BUILD_DIR) 33 23 mkdir -p $(STAGING_DIR)/bin; 34 24 $(SED_CAT) $(DL_DIR)/$(SED_SOURCE) | (cd $(TOOL_BUILD_DIR); $(TAR_EXTRACT) ) 35 touch $ (SED_DIR1)/.unpacked25 touch $@ 36 26 37 $(SED_DIR 1)/.configured: $(SED_DIR1)/.unpacked38 (cd $(SED_DIR 1); rm -rf config.cache; \27 $(SED_DIR)/.configured: $(SED_DIR)/.unpacked 28 (cd $(SED_DIR); rm -rf config.cache; \ 39 29 ./configure \ 40 30 --prefix=$(STAGING_DIR) \ 41 31 --prefix=/usr \ 42 32 ); 43 touch $(SED_DIR1)/.configured33 touch $@ 44 34 45 $(SED_DIR 1)/$(SED_BINARY): $(SED_DIR1)/.configured46 $(MAKE) -C $(SED_DIR 1)35 $(SED_DIR)/$(SED_BINARY): $(SED_DIR)/.configured 36 $(MAKE) -C $(SED_DIR) 47 37 48 38 # This stuff is needed to work around GNU make deficiencies 49 build-sed-host-binary: $(SED_DIR 1)/$(SED_BINARY)39 build-sed-host-binary: $(SED_DIR)/$(SED_BINARY) 50 40 @if [ -L $(STAGING_DIR)/$(SED_TARGET_BINARY) ] ; then \ 51 41 rm -f $(STAGING_DIR)/$(SED_TARGET_BINARY); fi; 52 42 @if [ ! -f $(STAGING_DIR)/$(SED_TARGET_BINARY) -o $(STAGING_DIR)/$(SED_TARGET_BINARY) \ 53 -ot $(SED_DIR 1)/$(SED_BINARY) ] ; then \43 -ot $(SED_DIR)/$(SED_BINARY) ] ; then \ 54 44 set -x; \ 55 45 mkdir -p $(STAGING_DIR)/bin; \ 56 $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SED_DIR 1) install; \46 $(MAKE) DESTDIR=$(STAGING_DIR) -C $(SED_DIR) install; \ 57 47 mv $(STAGING_DIR)/usr/bin/sed $(STAGING_DIR)/bin/; \ 58 48 rm -rf $(STAGING_DIR)/share/locale $(STAGING_DIR)/usr/info \ … … 71 61 install: $(HOST_SED_TARGET) 72 62 clean: 73 rm -rf $(SED_DIR 1)63 rm -rf $(SED_DIR) 74 64 rm -f $(STAGING_DIR)/$(SED_TARGET_BINARY) 75 65
Note:
See TracChangeset
for help on using the changeset viewer.
