Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 1 | # Makefile for buildroot2 |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 2 | # |
Eric Andersen | 15b26ae | 2005-02-07 22:19:26 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 4 | # |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 5 | # This program is free software; you can redistribute it and/or modify |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 2 of the License, or |
| 8 | # (at your option) any later version. |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 9 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 13 | # General Public License for more details. |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 14 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with this program; if not, write to the Free Software |
| 17 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | # |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 19 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 20 | #-------------------------------------------------------------- |
| 21 | # Just run 'make menuconfig', configure stuff, then run 'make'. |
| 22 | # You shouldn't need to mess with anything beyond this point... |
| 23 | #-------------------------------------------------------------- |
| 24 | TOPDIR=./ |
| 25 | CONFIG_CONFIG_IN = Config.in |
| 26 | CONFIG_DEFCONFIG = .defconfig |
| 27 | CONFIG = package/config |
| 28 | |
| 29 | noconfig_targets := menuconfig config oldconfig randconfig \ |
"Steven J. Hill" | 0c1e709 | 2006-06-22 02:24:08 +0000 | [diff] [blame] | 30 | defconfig allyesconfig allnoconfig release tags \ |
Bernhard Reutner-Fischer | 825ff34 | 2007-06-07 12:57:03 +0000 | [diff] [blame] | 31 | source-check |
Bernhard Reutner-Fischer | 9e25035 | 2006-12-02 19:01:10 +0000 | [diff] [blame] | 32 | |
| 33 | # $(shell find . -name *_defconfig |sed 's/.*\///') |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 34 | |
| 35 | # Pull in the user's configuration file |
| 36 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
| 37 | -include $(TOPDIR).config |
| 38 | endif |
| 39 | |
| 40 | ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 41 | |
Bernhard Reutner-Fischer | 99cf729 | 2007-02-12 13:38:06 +0000 | [diff] [blame] | 42 | # cc-option |
| 43 | # Usage: cflags-y += $(call cc-option, -march=winchip-c6, -march=i586) |
| 44 | # sets -march=winchip-c6 if supported else falls back to -march=i586 |
| 45 | # without checking the latter. |
| 46 | cc-option = $(shell if $(TARGET_CC) $(TARGET_CFLAGS) $(1) -S -o /dev/null -xc /dev/null \ |
| 47 | > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;) |
| 48 | |
Peter Korsgaard | 2c64904 | 2007-06-19 15:19:27 +0000 | [diff] [blame] | 49 | ############################################################# |
| 50 | # |
| 51 | # Hide troublesome environment variables from sub processes |
| 52 | # |
| 53 | ############################################################# |
| 54 | unexport CROSS_COMPILE |
| 55 | unexport ARCH |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 56 | |
| 57 | ############################################################# |
| 58 | # |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 59 | # Setup the proper filename extensions for the host |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 60 | # |
| 61 | ############################################################## |
| 62 | ifneq ($(findstring linux,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 63 | HOST_EXEEXT:= |
| 64 | HOST_LIBEXT:=.a |
| 65 | HOST_SHREXT:=.so |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 66 | endif |
| 67 | ifneq ($(findstring apple,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 68 | HOST_EXEEXT:= |
| 69 | HOST_LIBEXT:=.a |
| 70 | HOST_SHREXT:=.dylib |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 71 | endif |
| 72 | ifneq ($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 73 | HOST_EXEEXT:=.exe |
| 74 | HOST_LIBEXT:=.lib |
| 75 | HOST_SHREXT:=.dll |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 76 | endif |
| 77 | ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 78 | HOST_EXEEXT:=.exe |
| 79 | HOST_LIBEXT:=.lib |
| 80 | HOST_SHREXT:=.dll |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 81 | endif |
| 82 | |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 83 | # The preferred type of libs we build for the target |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 84 | ifeq ($(BR2_PREFER_STATIC_LIB),y) |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 85 | LIBTGTEXT=.a |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 86 | #PREFERRED_LIB_FLAGS:=--disable-shared --enable-static |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 87 | else |
Bernhard Reutner-Fischer | c6e43c9 | 2007-06-02 11:22:17 +0000 | [diff] [blame] | 88 | LIBTGTEXT=.so |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 89 | #PREFERRED_LIB_FLAGS:=--disable-static --enable-shared |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 90 | endif |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 91 | PREFERRED_LIB_FLAGS:=--enable-static --enable-shared |
Bernhard Reutner-Fischer | 7dcbbfb | 2007-06-02 09:05:40 +0000 | [diff] [blame] | 92 | |
| 93 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 94 | ############################################################# |
| 95 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 96 | # The list of stuff to build for the target toolchain |
| 97 | # along with the packages to build for the target. |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 98 | # |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 99 | ############################################################## |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 100 | ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) |
Eric Andersen | 98bc6da | 2006-07-18 23:43:58 +0000 | [diff] [blame] | 101 | TARGETS:=uclibc-configured binutils gcc uclibc-target-utils |
"Steven J. Hill" | 02f71aa | 2007-02-06 18:19:38 +0000 | [diff] [blame] | 102 | else |
| 103 | TARGETS:=uclibc |
| 104 | endif |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 105 | include toolchain/Makefile.in |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 106 | include package/Makefile.in |
Eric Andersen | 27bc59d | 2003-01-17 04:31:36 +0000 | [diff] [blame] | 107 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 108 | ############################################################# |
| 109 | # |
Eric Andersen | ef407d3 | 2004-01-29 23:21:00 +0000 | [diff] [blame] | 110 | # You should probably leave this stuff alone unless you know |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 111 | # what you are doing. |
| 112 | # |
| 113 | ############################################################# |
Manuel Novoa III | d632d42 | 2003-11-01 05:34:41 +0000 | [diff] [blame] | 114 | |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 115 | all: world |
| 116 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 117 | # In this section, we need .config |
| 118 | include .config.cmd |
| 119 | |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 120 | # We also need the various per-package makefiles, which also add |
| 121 | # each selected package to TARGETS if that package was selected |
| 122 | # in the .config file. |
| 123 | include toolchain/*/*.mk |
| 124 | include package/*/*.mk |
Eric Andersen | d06645d | 2005-02-10 03:06:39 +0000 | [diff] [blame] | 125 | |
Eric Andersen | 79f5f1e | 2005-02-17 03:00:29 +0000 | [diff] [blame] | 126 | # target stuff is last so it can override anything else |
| 127 | include target/Makefile.in |
| 128 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 129 | TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS)) |
Eric Andersen | a5c2354 | 2003-02-19 08:56:04 +0000 | [diff] [blame] | 130 | TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS)) |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 131 | TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS)) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 132 | |
Bernhard Reutner-Fischer | 6e2823c | 2006-11-17 15:43:51 +0000 | [diff] [blame] | 133 | world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS) |
Bernhard Reutner-Fischer | 870cb9e | 2006-11-17 11:21:23 +0000 | [diff] [blame] | 134 | dirs: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 135 | |
Bernhard Reutner-Fischer | 870cb9e | 2006-11-17 11:21:23 +0000 | [diff] [blame] | 136 | .PHONY: all world dirs clean dirclean distclean source $(TARGETS) \ |
Eric Andersen | 747b16d | 2004-12-11 10:33:19 +0000 | [diff] [blame] | 137 | $(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \ |
| 138 | $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR) |
Jon Nelson | c79e998 | 2002-01-05 20:26:15 +0000 | [diff] [blame] | 139 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 140 | ############################################################# |
| 141 | # |
Eric Andersen | ef407d3 | 2004-01-29 23:21:00 +0000 | [diff] [blame] | 142 | # staging and target directories do NOT list these as |
Mike Frysinger | d99c31c | 2006-05-26 01:18:09 +0000 | [diff] [blame] | 143 | # dependencies anywhere else |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 144 | # |
| 145 | ############################################################# |
Bernhard Reutner-Fischer | 8d583fc | 2007-01-30 00:58:18 +0000 | [diff] [blame] | 146 | $(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR): |
| 147 | @mkdir -p $@ |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 148 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 149 | $(STAGING_DIR): |
"Steven J. Hill" | 9c865d7 | 2007-05-07 03:56:47 +0000 | [diff] [blame] | 150 | @mkdir -p $(STAGING_DIR)/bin |
Eric Andersen | bf38723 | 2004-12-11 10:35:18 +0000 | [diff] [blame] | 151 | @mkdir -p $(STAGING_DIR)/lib |
Bernhard Reutner-Fischer | 7e0c890 | 2007-06-24 12:27:08 +0000 | [diff] [blame] | 152 | ifeq ($(BR2_TOOLCHAIN_SYSROOT),y) |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 153 | @mkdir -p $(STAGING_DIR)/usr/lib |
| 154 | else |
| 155 | @ln -snf . $(STAGING_DIR)/usr |
| 156 | @mkdir -p $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME) |
Eric Andersen | 3da708e | 2007-01-10 06:55:27 +0000 | [diff] [blame] | 157 | @ln -snf ../lib $(STAGING_DIR)/usr/lib |
Bernhard Reutner-Fischer | 8027784 | 2007-06-20 11:26:36 +0000 | [diff] [blame] | 158 | @ln -snf ../lib $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib |
| 159 | endif |
| 160 | @mkdir -p $(STAGING_DIR)/usr/include |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 161 | |
| 162 | $(TARGET_DIR): |
Eric Andersen | a4c685f | 2006-11-15 21:00:07 +0000 | [diff] [blame] | 163 | mkdir -p $(TARGET_DIR) |
Eric Andersen | ba70f94 | 2006-11-15 06:52:00 +0000 | [diff] [blame] | 164 | if [ -d "$(TARGET_SKELETON)" ] ; then \ |
| 165 | cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \ |
Eric Andersen | bb15c22 | 2005-02-17 18:21:20 +0000 | [diff] [blame] | 166 | fi; |
Eric Andersen | 5418a92 | 2006-04-07 22:42:15 +0000 | [diff] [blame] | 167 | touch $(STAGING_DIR)/.fakeroot.00000 |
Eric Andersen | bb15c22 | 2005-02-17 18:21:20 +0000 | [diff] [blame] | 168 | -find $(TARGET_DIR) -type d -name CVS | xargs rm -rf |
| 169 | -find $(TARGET_DIR) -type d -name .svn | xargs rm -rf |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 170 | |
Bernhard Reutner-Fischer | 73be7f9 | 2007-04-06 16:36:48 +0000 | [diff] [blame] | 171 | source: $(TARGETS_SOURCE) $(HOST_SOURCE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 172 | |
Bernhard Reutner-Fischer | 825ff34 | 2007-06-07 12:57:03 +0000 | [diff] [blame] | 173 | .config.check: dependencies |
| 174 | $(SED) '/BR2_WGET/s/\"$$/ --spider\"/g' .config |
| 175 | touch $@ |
| 176 | |
| 177 | _source-check: .config.check |
| 178 | $(MAKE) source |
| 179 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 180 | ############################################################# |
| 181 | # |
| 182 | # Cleanup and misc junk |
| 183 | # |
| 184 | ############################################################# |
| 185 | clean: $(TARGETS_CLEAN) |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 186 | rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 187 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 188 | dirclean: $(TARGETS_DIRCLEAN) |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 189 | rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE) |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 190 | |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 191 | distclean: |
Mike Frysinger | 5bc1f0c | 2005-09-09 02:49:10 +0000 | [diff] [blame] | 192 | ifeq ($(DL_DIR),$(BASE_DIR)/dl) |
| 193 | rm -rf $(DL_DIR) |
| 194 | endif |
| 195 | rm -rf $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) |
Bernhard Reutner-Fischer | b513619 | 2007-01-19 18:00:49 +0000 | [diff] [blame] | 196 | $(MAKE) -C $(CONFIG) clean |
Eric Andersen | ffde94b | 2001-12-22 00:56:11 +0000 | [diff] [blame] | 197 | |
Manuel Novoa III | 3ad3d8a | 2004-09-03 00:49:43 +0000 | [diff] [blame] | 198 | sourceball: |
Eric Andersen | 08782ae | 2002-04-26 11:45:55 +0000 | [diff] [blame] | 199 | rm -rf $(BUILD_DIR) |
| 200 | set -e; \ |
| 201 | cd ..; \ |
| 202 | rm -f buildroot.tar.bz2; \ |
| 203 | tar -cvf buildroot.tar buildroot; \ |
| 204 | bzip2 -9 buildroot.tar; \ |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 205 | |
| 206 | |
| 207 | else # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) |
| 208 | |
| 209 | all: menuconfig |
| 210 | |
| 211 | # configuration |
| 212 | # --------------------------------------------------------------------------- |
| 213 | |
| 214 | $(CONFIG)/conf: |
| 215 | $(MAKE) -C $(CONFIG) conf |
| 216 | -@if [ ! -f .config ] ; then \ |
| 217 | cp $(CONFIG_DEFCONFIG) .config; \ |
| 218 | fi |
| 219 | $(CONFIG)/mconf: |
| 220 | $(MAKE) -C $(CONFIG) ncurses conf mconf |
| 221 | -@if [ ! -f .config ] ; then \ |
| 222 | cp $(CONFIG_DEFCONFIG) .config; \ |
| 223 | fi |
| 224 | |
| 225 | menuconfig: $(CONFIG)/mconf |
| 226 | @$(CONFIG)/mconf $(CONFIG_CONFIG_IN) |
| 227 | |
| 228 | config: $(CONFIG)/conf |
| 229 | @$(CONFIG)/conf $(CONFIG_CONFIG_IN) |
| 230 | |
| 231 | oldconfig: $(CONFIG)/conf |
| 232 | @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) |
| 233 | |
| 234 | randconfig: $(CONFIG)/conf |
| 235 | @$(CONFIG)/conf -r $(CONFIG_CONFIG_IN) |
| 236 | |
| 237 | allyesconfig: $(CONFIG)/conf |
Bernhard Reutner-Fischer | 825ff34 | 2007-06-07 12:57:03 +0000 | [diff] [blame] | 238 | cp $(CONFIG_DEFCONFIG) .config |
| 239 | @$(CONFIG)/conf -y $(CONFIG_CONFIG_IN) |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 240 | #sed -i -e "s/^CONFIG_DEBUG.*/# CONFIG_DEBUG is not set/" .config |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 241 | |
| 242 | allnoconfig: $(CONFIG)/conf |
| 243 | @$(CONFIG)/conf -n $(CONFIG_CONFIG_IN) |
| 244 | |
| 245 | defconfig: $(CONFIG)/conf |
| 246 | @$(CONFIG)/conf -d $(CONFIG_CONFIG_IN) |
| 247 | |
Bernhard Reutner-Fischer | 825ff34 | 2007-06-07 12:57:03 +0000 | [diff] [blame] | 248 | # check if download URLs are outdated |
| 249 | source-check: allyesconfig |
| 250 | $(MAKE) _source-check |
| 251 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 252 | ############################################################# |
| 253 | # |
| 254 | # Cleanup and misc junk |
| 255 | # |
| 256 | ############################################################# |
| 257 | clean: |
| 258 | rm -f .config .config.old .config.cmd .tmpconfig.h |
| 259 | - $(MAKE) -C $(CONFIG) clean |
| 260 | |
| 261 | distclean: clean |
| 262 | rm -rf sources/* |
| 263 | |
| 264 | endif # ifeq ($(strip $(BR2_HAVE_DOT_CONFIG)),y) |
| 265 | |
Bernhard Reutner-Fischer | ba2e7e0 | 2007-06-25 10:56:13 +0000 | [diff] [blame^] | 266 | %_defconfig: $(CONFIG)/conf |
| 267 | cp $(shell find ./target/ -name $@) .config |
| 268 | @$(CONFIG)/conf -o $(CONFIG_CONFIG_IN) |
| 269 | |
| 270 | |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 271 | .PHONY: dummy subdirs release distclean clean config oldconfig \ |
Eric Andersen | f3ccf31 | 2005-04-27 08:09:58 +0000 | [diff] [blame] | 272 | menuconfig tags check test depend defconfig |
Eric Andersen | 2d523c2 | 2004-10-09 01:06:03 +0000 | [diff] [blame] | 273 | |
| 274 | |