Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 1 | # Rules.make for busybox |
Eric Andersen | 4bcdd72 | 2001-10-24 05:26:42 +0000 | [diff] [blame] | 2 | # |
Mike Frysinger | 5a5d0fa | 2005-11-29 02:53:52 +0000 | [diff] [blame] | 3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 4 | # |
Mike Frysinger | 5a5d0fa | 2005-11-29 02:53:52 +0000 | [diff] [blame] | 5 | # Licensed under GPLv2, see the file LICENSE in this tarball for details. |
Eric Andersen | 4bcdd72 | 2001-10-24 05:26:42 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Mike Frysinger | 004ad11 | 2005-11-29 02:52:25 +0000 | [diff] [blame] | 8 | # Pull in the user's busybox configuration |
| 9 | ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),) |
| 10 | -include $(top_builddir)/.config |
| 11 | endif |
| 12 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 13 | #-------------------------------------------------------- |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 14 | PROG := busybox |
Bernhard Reutner-Fischer | 8c7a7e6 | 2005-10-13 10:40:18 +0000 | [diff] [blame] | 15 | MAJOR_VERSION :=1 |
Bernhard Reutner-Fischer | 31e2c00 | 2006-08-29 20:21:33 +0000 | [diff] [blame] | 16 | MINOR_VERSION :=2 |
Bernhard Reutner-Fischer | 6018225 | 2006-03-29 22:22:37 +0000 | [diff] [blame] | 17 | SUBLEVEL_VERSION:=0 |
Bernhard Reutner-Fischer | 31e2c00 | 2006-08-29 20:21:33 +0000 | [diff] [blame] | 18 | EXTRAVERSION :=-svn |
Bernhard Reutner-Fischer | 8c7a7e6 | 2005-10-13 10:40:18 +0000 | [diff] [blame] | 19 | VERSION :=$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL_VERSION)$(EXTRAVERSION) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 20 | BUILDTIME := $(shell TZ=UTC date -u "+%Y.%m.%d-%H:%M%z") |
Eric Andersen | 4bcdd72 | 2001-10-24 05:26:42 +0000 | [diff] [blame] | 21 | |
| 22 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 23 | #-------------------------------------------------------- |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 24 | # With a modern GNU make(1) (highly recommended, that's what all the |
| 25 | # developers use), all of the following configuration values can be |
| 26 | # overridden at the command line. For example: |
Bernhard Reutner-Fischer | 273430a | 2006-07-04 08:26:55 +0000 | [diff] [blame] | 27 | # make CROSS_COMPILE=powerpc-linux- top_srcdir="$HOME/busybox" PREFIX=/mnt/app |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 28 | #-------------------------------------------------------- |
Eric Andersen | 4bcdd72 | 2001-10-24 05:26:42 +0000 | [diff] [blame] | 29 | |
Bernhard Reutner-Fischer | 273430a | 2006-07-04 08:26:55 +0000 | [diff] [blame] | 30 | # If you are running a cross compiler, you will want to set CROSS_COMPILE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 31 | # to something more interesting... Target architecture is determined |
| 32 | # by asking the CC compiler what arch it compiles things for, so unless |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 33 | # your compiler is broken, you should not need to specify TARGET_ARCH |
Bernhard Reutner-Fischer | 273430a | 2006-07-04 08:26:55 +0000 | [diff] [blame] | 34 | CC = $(CROSS_COMPILE)gcc |
| 35 | AR = $(CROSS_COMPILE)ar |
| 36 | AS = $(CROSS_COMPILE)as |
| 37 | LD = $(CROSS_COMPILE)ld |
| 38 | NM = $(CROSS_COMPILE)nm |
| 39 | STRIP = $(CROSS_COMPILE)strip |
| 40 | ELF2FLT = $(CROSS_COMPILE)elf2flt |
Eric Andersen | 5912acb | 2003-11-05 11:34:26 +0000 | [diff] [blame] | 41 | CPP = $(CC) -E |
Bernhard Reutner-Fischer | 5d26126 | 2006-03-01 22:54:48 +0000 | [diff] [blame] | 42 | SED ?= sed |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 43 | BZIP2 ?= bzip2 |
Bernhard Reutner-Fischer | 8c7a7e6 | 2005-10-13 10:40:18 +0000 | [diff] [blame] | 44 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 45 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 46 | # What OS are you compiling busybox for? This allows you to include |
| 47 | # OS specific things, syscall overrides, etc. |
Eric Andersen | 5912acb | 2003-11-05 11:34:26 +0000 | [diff] [blame] | 48 | TARGET_OS=linux |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 49 | |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 50 | # Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc. |
Eric Andersen | 85d9d80 | 2003-01-14 09:12:39 +0000 | [diff] [blame] | 51 | LC_ALL:= C |
| 52 | |
Rob Landley | 5076eb4 | 2006-04-19 20:32:27 +0000 | [diff] [blame] | 53 | # This must bind late because srcdir is reset for every source subdirectory. |
Bernhard Reutner-Fischer | 45d5458 | 2006-05-08 20:20:32 +0000 | [diff] [blame] | 54 | INCS:=-I$(top_builddir)/include -I$(top_srcdir)/include |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 55 | CFLAGS=$(INCS) -I$(srcdir) -D_GNU_SOURCE |
Rob Landley | 5076eb4 | 2006-04-19 20:32:27 +0000 | [diff] [blame] | 56 | CFLAGS+=$(CHECKED_CFLAGS) |
Bernhard Reutner-Fischer | 07a79e7 | 2006-03-09 09:03:37 +0000 | [diff] [blame] | 57 | ARFLAGS=cru |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 58 | |
Bernhard Reutner-Fischer | e0b8778 | 2005-12-13 11:52:46 +0000 | [diff] [blame] | 59 | # gcc centric. Perhaps fiddle with findstring gcc,$(CC) for the rest |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 60 | # get the CC MAJOR/MINOR version |
Bernhard Reutner-Fischer | e0b8778 | 2005-12-13 11:52:46 +0000 | [diff] [blame] | 61 | CC_MAJOR:=$(shell printf "%02d" $(shell echo __GNUC__ | $(CC) -E -xc - | tail -n 1)) |
| 62 | CC_MINOR:=$(shell printf "%02d" $(shell echo __GNUC_MINOR__ | $(CC) -E -xc - | tail -n 1)) |
| 63 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 64 | #-------------------------------------------------------- |
Bernhard Reutner-Fischer | 273430a | 2006-07-04 08:26:55 +0000 | [diff] [blame] | 65 | export VERSION BUILDTIME HOSTCC HOSTCFLAGS CROSS_COMPILE CC AR AS LD NM STRIP CPP |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 66 | ifeq ($(strip $(TARGET_ARCH)),) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 67 | TARGET_ARCH:=$(shell $(CC) -dumpmachine | $(SED) -e s'/-.*//' \ |
Eric Andersen | 5b0f9e4 | 2002-06-23 04:50:49 +0000 | [diff] [blame] | 68 | -e 's/i.86/i386/' \ |
| 69 | -e 's/sparc.*/sparc/' \ |
| 70 | -e 's/arm.*/arm/g' \ |
| 71 | -e 's/m68k.*/m68k/' \ |
| 72 | -e 's/ppc/powerpc/g' \ |
| 73 | -e 's/v850.*/v850/g' \ |
| 74 | -e 's/sh[234]/sh/' \ |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 75 | -e 's/mips-.*/mips/' \ |
| 76 | -e 's/mipsel-.*/mipsel/' \ |
| 77 | -e 's/cris.*/cris/' \ |
| 78 | ) |
Eric Andersen | 5912acb | 2003-11-05 11:34:26 +0000 | [diff] [blame] | 79 | endif |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 80 | |
Rob Landley | 5076eb4 | 2006-04-19 20:32:27 +0000 | [diff] [blame] | 81 | # A nifty macro to make testing gcc features easier, but note that everything |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 82 | # that uses this _must_ use := or it will be re-evaluated everytime it is |
| 83 | # referenced. |
Bernhard Reutner-Fischer | 7b8ff22 | 2006-06-13 14:20:17 +0000 | [diff] [blame] | 84 | ifeq ($(strip $(BUILD_VERBOSE)),2) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 85 | VERBOSE_CHECK_CC=echo CC=\"$(1)\" check_cc $(2) >&2; |
Rob Landley | 5076eb4 | 2006-04-19 20:32:27 +0000 | [diff] [blame] | 86 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 87 | check_cc=$(shell \ |
| 88 | $(VERBOSE_CHECK_CC) \ |
| 89 | if [ "x$(1)" != "x" ] && [ "x$(2)" != "x" ]; then \ |
| 90 | echo "int i;" > ./conftest.c; \ |
| 91 | if $(1) $(2) -c -o conftest.o conftest.c > /dev/null 2>&1; \ |
| 92 | then echo "$(2)"; else echo "$(3)"; fi ; \ |
| 93 | rm -f conftest.c conftest.o; \ |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 94 | fi) |
| 95 | |
Bernhard Reutner-Fischer | 081b1ac | 2006-06-11 16:41:10 +0000 | [diff] [blame] | 96 | ifneq ($(filter $(nocheck_targets),$(MAKECMDGOALS)),) |
Bernhard Reutner-Fischer | e5de384 | 2006-06-10 14:58:33 +0000 | [diff] [blame] | 97 | check_cc:= |
| 98 | endif |
| 99 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 100 | # A not very robust macro to check for available ld flags |
Bernhard Reutner-Fischer | 7b8ff22 | 2006-06-13 14:20:17 +0000 | [diff] [blame] | 101 | ifeq ($(strip $(BUILD_VERBOSE)),2) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 102 | VERBOSE_CHECK_LD=echo LD=\"$(1)\" check_ld $(2) >&2; |
| 103 | endif |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 104 | check_ld=$(shell \ |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 105 | $(VERBOSE_CHECK_LD) \ |
| 106 | if [ "x$(1)" != "x" ] && [ "x$(2)" != "x" ]; then \ |
| 107 | $(1) -o /dev/null -b binary /dev/null > /dev/null 2>&1 && \ |
| 108 | echo "-Wl,$(2)" ; \ |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 109 | fi) |
| 110 | |
Bernhard Reutner-Fischer | 081b1ac | 2006-06-11 16:41:10 +0000 | [diff] [blame] | 111 | ifneq ($(filter $(nocheck_targets),$(MAKECMDGOALS)),) |
Bernhard Reutner-Fischer | e5de384 | 2006-06-10 14:58:33 +0000 | [diff] [blame] | 112 | check_ld:= |
| 113 | endif |
| 114 | |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 115 | # A not very robust macro to check for available strip flags |
Bernhard Reutner-Fischer | 7b8ff22 | 2006-06-13 14:20:17 +0000 | [diff] [blame] | 116 | ifeq ($(strip $(BUILD_VERBOSE)),2) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 117 | VERBOSE_CHECK_STRIP=echo STRIPCMD=\"$(1)\" check_strip $(2) >&2; |
| 118 | endif |
| 119 | check_strip=$(shell \ |
| 120 | $(VERBOSE_CHECK_STRIP) \ |
| 121 | if [ "x$(1)" != "x" ] && [ "x$(2)" != "x" ]; then \ |
| 122 | echo "int i;" > ./conftest.c ; \ |
| 123 | $(CC) -c -o conftest.o conftest.c > /dev/null 2>&1 ; \ |
| 124 | $(1) $(2) conftest.o > /dev/null 2>&1 && \ |
| 125 | echo "$(1) $(2)" || echo "$(3)"; \ |
| 126 | rm -f conftest.c conftest.o > /dev/null 2>&1 ; \ |
| 127 | fi) |
| 128 | |
Bernhard Reutner-Fischer | 081b1ac | 2006-06-11 16:41:10 +0000 | [diff] [blame] | 129 | ifneq ($(filter $(nocheck_targets),$(MAKECMDGOALS)),) |
Bernhard Reutner-Fischer | e5de384 | 2006-06-10 14:58:33 +0000 | [diff] [blame] | 130 | check_strip:= |
| 131 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 132 | |
| 133 | |
| 134 | # Select the compiler needed to build binaries for your development system |
| 135 | HOSTCC = gcc |
| 136 | HOSTCFLAGS:=$(call check_cc,$(HOSTCC),-Wall,) |
| 137 | HOSTCFLAGS+=$(call check_cc,$(HOSTCC),-Wstrict-prototypes,) |
| 138 | HOSTCFLAGS+=$(call check_cc,$(HOSTCC),-O2,) |
| 139 | HOSTCFLAGS+=$(call check_cc,$(HOSTCC),-fomit-frame-pointer,) |
| 140 | |
| 141 | LD_WHOLE_ARCHIVE:=$(shell echo "int i;" > conftest.c ; \ |
| 142 | $(CC) -c -o conftest.o conftest.c ; \ |
| 143 | echo "int main(void){return 0;}" > conftest_main.c ; \ |
| 144 | $(CC) -c -o conftest_main.o conftest_main.c ; \ |
| 145 | $(AR) $(ARFLAGS) conftest.a conftest.o ; \ |
| 146 | $(CC) -Wl,--whole-archive conftest.a -Wl,--no-whole-archive \ |
| 147 | conftest_main.o -o conftest > /dev/null 2>&1 \ |
| 148 | && echo "-Wl,--whole-archive" ; \ |
| 149 | rm conftest_main.o conftest_main.c conftest.o conftest.c \ |
| 150 | conftest.a conftest > /dev/null 2>&1 ; ) |
| 151 | ifneq ($(findstring whole-archive,$(LD_WHOLE_ARCHIVE)),) |
| 152 | LD_NO_WHOLE_ARCHIVE:= -Wl,--no-whole-archive |
| 153 | endif |
| 154 | |
| 155 | LD_START_GROUP:=$(shell echo "int bar(void){return 0;}" > conftest.c ; \ |
| 156 | $(CC) -c -o conftest.o conftest.c ; \ |
| 157 | echo "int main(void){return bar();}" > conftest_main.c ; \ |
| 158 | $(CC) -c -o conftest_main.o conftest_main.c ; \ |
| 159 | $(AR) $(ARFLAGS) conftest.a conftest.o ; \ |
| 160 | $(CC) -Wl,--start-group conftest.a conftest_main.o -Wl,--end-group \ |
| 161 | -o conftest > /dev/null 2>&1 && echo "-Wl,--start-group" ; \ |
Bernhard Reutner-Fischer | 0773681 | 2006-05-29 20:01:52 +0000 | [diff] [blame] | 162 | rm conftest_main.o conftest_main.c conftest.o conftest.c \ |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 163 | conftest.a conftest > /dev/null 2>&1 ; ) |
| 164 | ifneq ($(findstring start-group,$(LD_START_GROUP)),) |
| 165 | LD_END_GROUP:= -Wl,--end-group |
| 166 | endif |
| 167 | |
| 168 | CHECKED_LDFLAGS := $(call check_ld,$(LD),--warn-common,) |
Rob Landley | 533320c | 2006-07-31 22:56:17 +0000 | [diff] [blame] | 169 | #CHECKED_LDFLAGS := $(call check_ld,$(LD),-static-libgcc,) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 170 | |
Rob Landley | 5076eb4 | 2006-04-19 20:32:27 +0000 | [diff] [blame] | 171 | # Pin CHECKED_CFLAGS with := so it's only evaluated once. |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 172 | CHECKED_CFLAGS:=$(call check_cc,$(CC),-Wall,) |
| 173 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wstrict-prototypes,) |
| 174 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wshadow,) |
| 175 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-funsigned-char,) |
Rob Landley | 533320c | 2006-07-31 22:56:17 +0000 | [diff] [blame] | 176 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-fno-builtin-strlen,) |
| 177 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-finline-limit=0,) |
Bernhard Reutner-Fischer | 99b7068 | 2006-08-28 21:21:25 +0000 | [diff] [blame] | 178 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Winline,) |
Rob Landley | 533320c | 2006-07-31 22:56:17 +0000 | [diff] [blame] | 179 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-static-libgcc,) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 180 | |
Rob Landley | 5076eb4 | 2006-04-19 20:32:27 +0000 | [diff] [blame] | 181 | # Preemptively pin this too. |
| 182 | PROG_CFLAGS:= |
| 183 | |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 184 | |
Eric Andersen | 5b0f9e4 | 2002-06-23 04:50:49 +0000 | [diff] [blame] | 185 | #-------------------------------------------------------- |
| 186 | # Arch specific compiler optimization stuff should go here. |
| 187 | # Unless you want to override the defaults, do not set anything |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 188 | # for OPTIMIZATION... |
Eric Andersen | 5b0f9e4 | 2002-06-23 04:50:49 +0000 | [diff] [blame] | 189 | |
| 190 | # use '-Os' optimization if available, else use -O2 |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 191 | OPTIMIZATION:=$(call check_cc,$(CC),-Os,-O2) |
Eric Andersen | 5b0f9e4 | 2002-06-23 04:50:49 +0000 | [diff] [blame] | 192 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 193 | ifeq ($(CONFIG_BUILD_AT_ONCE),y) |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 194 | # gcc 2.95 exits with 0 for "unrecognized option" |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 195 | ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 3 ] ; echo $$?)),0) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 196 | CFLAGS_COMBINE:=$(call check_cc,$(CC),--combine,) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 197 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 198 | OPTIMIZATION+=$(call check_cc,$(CC),-funit-at-a-time,) |
| 199 | OPTIMIZATION+=$(call check_cc,$(CC),-fgcse-after-reload,) |
Bernhard Reutner-Fischer | 3737c03 | 2006-04-28 20:02:29 +0000 | [diff] [blame] | 200 | ifneq ($(CONFIG_BUILD_LIBBUSYBOX),y) |
Bernhard Reutner-Fischer | d1ba916 | 2006-03-21 11:06:43 +0000 | [diff] [blame] | 201 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25795 |
Bernhard Reutner-Fischer | 3737c03 | 2006-04-28 20:02:29 +0000 | [diff] [blame] | 202 | # This prevents us from using -fwhole-program when we build the lib |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 203 | PROG_CFLAGS+=$(call check_cc,$(CC),-fwhole-program,) |
Bernhard Reutner-Fischer | 3737c03 | 2006-04-28 20:02:29 +0000 | [diff] [blame] | 204 | endif # CONFIG_BUILD_LIBBUSYBOX |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 205 | endif # CONFIG_BUILD_AT_ONCE |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 206 | |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 207 | LIB_LDFLAGS:=$(call check_ld,$(LD),--enable-new-dtags,) |
| 208 | #LIB_LDFLAGS+=$(call check_ld,$(LD),--reduce-memory-overheads,) |
| 209 | #LIB_LDFLAGS+=$(call check_ld,$(LD),--as-needed,) |
| 210 | #LIB_LDFLAGS+=$(call check_ld,$(LD),--warn-shared-textrel,) |
Bernhard Reutner-Fischer | 08a1b50 | 2006-01-27 15:45:56 +0000 | [diff] [blame] | 211 | |
| 212 | |
Eric Andersen | 5b0f9e4 | 2002-06-23 04:50:49 +0000 | [diff] [blame] | 213 | # Some nice architecture specific optimizations |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 214 | ifeq ($(strip $(TARGET_ARCH)),arm) |
| 215 | OPTIMIZATION+=-fstrict-aliasing |
| 216 | endif |
| 217 | ifeq ($(strip $(TARGET_ARCH)),i386) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 218 | OPTIMIZATION+=$(call check_cc,$(CC),-march=i386,) |
Bernhard Reutner-Fischer | d9969ea | 2006-03-03 20:31:33 +0000 | [diff] [blame] | 219 | # gcc-4.0 and older seem to benefit from these |
Rob Landley | 533320c | 2006-07-31 22:56:17 +0000 | [diff] [blame] | 220 | ifneq ($(strip $(shell [ $(CC_MAJOR) -ge 4 -a $(CC_MINOR) -ge 1 ] ; echo $$?)),0) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 221 | OPTIMIZATION+=$(call check_cc,$(CC),-mpreferred-stack-boundary=2,) |
Rob Landley | 533320c | 2006-07-31 22:56:17 +0000 | [diff] [blame] | 222 | OPTIMIZATION+=$(call check_cc,$(CC),-falign-functions=1 -falign-jumps=1 -falign-loops=1, -malign-functions=0 -malign-jumps=0 -malign-loops=0,) |
| 223 | |
| 224 | # gcc 4.1 produces many broken, totally invalid warnings |
| 225 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Werror,) |
| 226 | endif # gcc-4.0 and older |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 227 | |
| 228 | # gcc-4.1 and beyond seem to benefit from these |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 229 | ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 4 -a $(CC_MINOR) -ge 1 ] ; echo $$?)),0) |
| 230 | # turn off flags which hurt -Os |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 231 | OPTIMIZATION+=$(call check_cc,$(CC),-fno-tree-loop-optimize,) |
| 232 | OPTIMIZATION+=$(call check_cc,$(CC),-fno-tree-dominator-opts,) |
| 233 | OPTIMIZATION+=$(call check_cc,$(CC),-fno-strength-reduce,) |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 234 | |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 235 | OPTIMIZATION+=$(call check_cc,$(CC),-fno-branch-count-reg,) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 236 | endif # gcc-4.1 and beyond |
| 237 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 238 | OPTIMIZATION+=$(call check_cc,$(CC),-fomit-frame-pointer,) |
Rob Landley | f5bbc69 | 2006-08-30 16:50:00 +0000 | [diff] [blame] | 239 | CHECKED_LDFLAGS += $(call check_ld,$(LD),--sort-common,) |
Eric Andersen | 5b0f9e4 | 2002-06-23 04:50:49 +0000 | [diff] [blame] | 240 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 241 | # |
| 242 | #-------------------------------------------------------- |
| 243 | # If you're going to do a lot of builds with a non-vanilla configuration, |
| 244 | # it makes sense to adjust parameters above, so you can type "make" |
| 245 | # by itself, instead of following it by the same half-dozen overrides |
| 246 | # every time. The stuff below, on the other hand, is probably less |
| 247 | # prone to casual user adjustment. |
Eric Andersen | c7bda1c | 2004-03-15 08:29:22 +0000 | [diff] [blame] | 248 | # |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 249 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 250 | ifeq ($(strip $(CONFIG_LFS)),y) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 251 | # For large file summit support |
Eric Andersen | ecfa290 | 2002-09-22 12:09:44 +0000 | [diff] [blame] | 252 | CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 253 | endif |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 254 | ifeq ($(strip $(CONFIG_DMALLOC)),y) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 255 | # For testing mem leaks with dmalloc |
| 256 | CFLAGS+=-DDMALLOC |
| 257 | LIBRARIES:=-ldmalloc |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 258 | else |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 259 | ifeq ($(strip $(CONFIG_EFENCE)),y) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 260 | LIBRARIES:=-lefence |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 261 | endif |
| 262 | endif |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 263 | |
| 264 | # Debugging info |
| 265 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 266 | ifeq ($(strip $(CONFIG_DEBUG)),y) |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 267 | CFLAGS +=-g |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 268 | else |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 269 | CFLAGS +=-DNDEBUG |
Mike Frysinger | c70240c | 2006-03-10 23:20:48 +0000 | [diff] [blame] | 270 | endif |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 271 | |
| 272 | ifneq ($(strip $(CONFIG_DEBUG_PESSIMIZE)),y) |
Rob Landley | c503df5 | 2006-05-09 22:08:56 +0000 | [diff] [blame] | 273 | CFLAGS += $(OPTIMIZATION) |
| 274 | endif |
| 275 | |
Bernhard Reutner-Fischer | abaef65 | 2006-03-29 22:28:27 +0000 | [diff] [blame] | 276 | # warn a bit more verbosely for non-release versions |
| 277 | ifneq ($(EXTRAVERSION),) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 278 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wstrict-prototypes,) |
| 279 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wmissing-prototypes,) |
| 280 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wmissing-declarations,) |
| 281 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wunused,) |
| 282 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Winit-self,) |
| 283 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wshadow,) |
| 284 | CHECKED_CFLAGS+=$(call check_cc,$(CC),-Wcast-align,) |
Bernhard Reutner-Fischer | abaef65 | 2006-03-29 22:28:27 +0000 | [diff] [blame] | 285 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 286 | STRIPCMD:=$(call check_strip,$(STRIP),-s --remove-section=.note --remove-section=.comment,$(STRIP)) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 287 | ifeq ($(strip $(CONFIG_STATIC)),y) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 288 | PROG_CFLAGS += $(call check_cc,$(CC),-static,) |
Rob Landley | 1fdd83f | 2006-08-29 21:46:10 +0000 | [diff] [blame] | 289 | else |
| 290 | ifneq ($(strip $(CONFIG_DEBUG)),y) |
Rob Landley | f5bbc69 | 2006-08-30 16:50:00 +0000 | [diff] [blame] | 291 | OPTIMIZATION+=$(call check_cc,$(CC),-ffunction-sections -fdata-sections,) |
Rob Landley | 1fdd83f | 2006-08-29 21:46:10 +0000 | [diff] [blame] | 292 | CHECKED_LDFLAGS += $(call check_ld,$(LD),--gc-sections,) |
| 293 | endif |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 294 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 295 | CFLAGS_SHARED := $(call check_cc,$(CC),-shared,) |
Bernhard Reutner-Fischer | 81b9496 | 2006-01-31 11:29:22 +0000 | [diff] [blame] | 296 | LIB_CFLAGS+=$(CFLAGS_SHARED) |
Bernhard Reutner-Fischer | 7ca61b6 | 2006-01-15 14:04:57 +0000 | [diff] [blame] | 297 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 298 | ifeq ($(strip $(CONFIG_BUILD_LIBBUSYBOX)),y) |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 299 | CFLAGS_PIC:= $(call check_cc,$(CC),-fPIC,) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 300 | LIB_CFLAGS+=$(CFLAGS_PIC) |
| 301 | endif |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 302 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 303 | ifeq ($(strip $(CONFIG_SELINUX)),y) |
Mike Frysinger | 6ce8dae | 2006-08-28 23:24:38 +0000 | [diff] [blame] | 304 | LIBRARIES += -lselinux -lsepol |
Bernhard Reutner-Fischer | 5c071bc | 2005-10-05 07:40:46 +0000 | [diff] [blame] | 305 | endif |
| 306 | |
Eric Andersen | 12f834c | 2002-10-26 10:17:24 +0000 | [diff] [blame] | 307 | ifeq ($(strip $(PREFIX)),) |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 308 | PREFIX:=`pwd`/_install |
| 309 | endif |
| 310 | |
Bernhard Reutner-Fischer | 01d23ad | 2006-05-26 20:19:22 +0000 | [diff] [blame] | 311 | ifneq ($(strip $(CONFIG_GETOPT_LONG)),y) |
| 312 | CFLAGS += -D__need_getopt |
| 313 | endif |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 314 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 315 | # Additional complications due to support for pristine source dir. |
| 316 | # Include files in the build directory should take precedence over |
| 317 | # the copy in top_srcdir, both during the compilation phase and the |
| 318 | # shell script that finds the list of object files. |
| 319 | # Work in progress by <ldoolitt@recycle.lbl.gov>. |
| 320 | |
| 321 | |
| 322 | OBJECTS:=$(APPLET_SOURCES:.c=.o) busybox.o usage.o applets.o |
Bernhard Reutner-Fischer | e28d1d6 | 2006-05-26 13:22:57 +0000 | [diff] [blame] | 323 | CFLAGS += $(CHECKED_CFLAGS) $(CROSS_CFLAGS) |
| 324 | LDFLAGS += $(CHECKED_LDFLAGS) |
| 325 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 326 | ifdef BB_INIT_SCRIPT |
| 327 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' |
| 328 | endif |
| 329 | |
| 330 | # Put user-supplied flags at the end, where they |
| 331 | # have a chance of winning. |
Rob Landley | 1fa4a94 | 2006-06-22 22:05:00 +0000 | [diff] [blame] | 332 | -include $(top_builddir)/.config.mak |
Eric Andersen | 4bcdd72 | 2001-10-24 05:26:42 +0000 | [diff] [blame] | 333 | |
Rob Landley | e0c418e | 2005-12-15 07:25:54 +0000 | [diff] [blame] | 334 | #------------------------------------------------------------ |
| 335 | # Installation options |
| 336 | ifeq ($(strip $(CONFIG_INSTALL_APPLET_HARDLINKS)),y) |
| 337 | INSTALL_OPTS=--hardlinks |
| 338 | endif |
| 339 | ifeq ($(strip $(CONFIG_INSTALL_APPLET_SYMLINKS)),y) |
| 340 | INSTALL_OPTS=--symlinks |
| 341 | endif |
| 342 | ifeq ($(strip $(CONFIG_INSTALL_APPLET_DONT)),y) |
| 343 | INSTALL_OPTS= |
| 344 | endif |
| 345 | |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 346 | #------------------------------------------------------------ |
| 347 | # Make the output nice and tight |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 348 | MAKEFLAGS += --no-print-directory |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 349 | export MAKE_IS_SILENT=n |
| 350 | ifneq ($(findstring s,$(MAKEFLAGS)),) |
| 351 | export MAKE_IS_SILENT=y |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 352 | SECHO := @-false |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 353 | DISP := sil |
| 354 | Q := @ |
| 355 | else |
Bernhard Reutner-Fischer | 7b8ff22 | 2006-06-13 14:20:17 +0000 | [diff] [blame] | 356 | ifneq ($(BUILD_VERBOSE),) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 357 | SECHO := @-false |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 358 | DISP := ver |
| 359 | Q := |
| 360 | else |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 361 | SECHO := @echo |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 362 | DISP := pur |
| 363 | Q := @ |
| 364 | endif |
| 365 | endif |
| 366 | |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 367 | show_objs = $(subst $(top_builddir)/,,$(subst ../,,$@)) |
Bernhard Reutner-Fischer | 99b7068 | 2006-08-28 21:21:25 +0000 | [diff] [blame] | 368 | pur_disp_compile.c = echo " "CC $(show_objs) ; |
| 369 | pur_disp_compile.h = echo " "HOSTCC $(show_objs) ; |
| 370 | pur_disp_strip = echo " "STRIP $(show_objs) ; |
| 371 | pur_disp_link = echo " "LINK $(show_objs) ; |
| 372 | pur_disp_link.h = echo " "HOSTLINK $(show_objs) ; |
| 373 | pur_disp_ar = echo " "AR $(ARFLAGS) $(show_objs) ; |
| 374 | pur_disp_elf2flt = echo " "ELF2FLT $(ELF2FLTFLAGS) $(show_objs) ; |
| 375 | sil_disp_compile.c = |
| 376 | sil_disp_compile.h = |
| 377 | sil_disp_strip = |
| 378 | sil_disp_link = |
| 379 | sil_disp_link.h = |
| 380 | sil_disp_ar = |
| 381 | sil_disp_elf2flt = |
| 382 | ver_disp_compile.c = |
| 383 | ver_disp_compile.h = |
| 384 | ver_disp_strip = |
| 385 | ver_disp_link = |
| 386 | ver_disp_link.h = |
| 387 | ver_disp_ar = |
| 388 | ver_disp_elf2flt = |
| 389 | disp_compile.c = $(Q)$($(DISP)_disp_compile.c) |
| 390 | disp_compile.h = $(Q)$($(DISP)_disp_compile.h) |
| 391 | disp_strip = $(Q)$($(DISP)_disp_strip) |
| 392 | disp_link = $(Q)$($(DISP)_disp_link) |
| 393 | disp_link.h = $(Q)$($(DISP)_disp_link.h) |
| 394 | disp_ar = $(Q)$($(DISP)_disp_ar) |
| 395 | disp_elf2flt = $(Q)$($(DISP)_disp_elf2flt) |
Bernhard Reutner-Fischer | df10094 | 2006-03-13 19:04:00 +0000 | [diff] [blame] | 396 | disp_gen = $(SECHO) " "GEN $@ ; true |
| 397 | disp_doc = $(SECHO) " "DOC $(subst docs/,,$@) ; true |
| 398 | cmd_compile.c = $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $< |
Bernhard Reutner-Fischer | 45d5458 | 2006-05-08 20:20:32 +0000 | [diff] [blame] | 399 | cmd_compile.h = $(HOSTCC) $(HOSTCFLAGS) $(INCS) -c -o $@ $< |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 400 | cmd_strip = $(STRIPCMD) $@ |
Bernhard Reutner-Fischer | 7b8ff22 | 2006-06-13 14:20:17 +0000 | [diff] [blame] | 401 | cmd_link = $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) \ |
| 402 | $(PROG_CFLAGS) $(PROG_LDFLAGS) $(CFLAGS_COMBINE) \ |
| 403 | -o $@ $(LD_START_GROUP) \ |
| 404 | $(APPLETS_DEFINE) $(APPLET_SRC) \ |
| 405 | $(BUSYBOX_DEFINE) $(BUSYBOX_SRC) $(libraries-y) \ |
| 406 | $(LDBUSYBOX) $(LIBRARIES) \ |
| 407 | $(LD_END_GROUP) |
| 408 | cmd_link.so = $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) \ |
| 409 | $(LIB_CFLAGS) $(CFLAGS_COMBINE) $(LIB_LDFLAGS) \ |
| 410 | -o $(@) $(LD_START_GROUP) $(LD_WHOLE_ARCHIVE) \ |
| 411 | $(LIBRARY_DEFINE) $(^) \ |
| 412 | $(LD_NO_WHOLE_ARCHIVE) $(LD_END_GROUP) |
Bernhard Reutner-Fischer | 45d5458 | 2006-05-08 20:20:32 +0000 | [diff] [blame] | 413 | cmd_link.h = $(HOSTCC) $(HOSTCFLAGS) $(INCS) $< -o $@ |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 414 | cmd_ar = $(AR) $(ARFLAGS) $@ $^ |
Mike Frysinger | 586ea61 | 2006-04-21 01:18:07 +0000 | [diff] [blame] | 415 | cmd_elf2flt = $(ELF2FLT) $(ELF2FLTFLAGS) $< -o $@ |
Bernhard Reutner-Fischer | 99b7068 | 2006-08-28 21:21:25 +0000 | [diff] [blame] | 416 | compile.c = $(disp_compile.c) $(cmd_compile.c) |
| 417 | compile.h = $(disp_compile.h) $(cmd_compile.h) |
| 418 | do_strip = $(disp_strip) $(cmd_strip) |
| 419 | do_link = $(disp_link) $(cmd_link) |
| 420 | do_link.so = $(disp_link) $(cmd_link.so) |
| 421 | do_link.h = $(disp_link.h) $(cmd_link.h) |
| 422 | do_ar = $(disp_ar) $(cmd_ar) |
| 423 | do_elf2flt = $(disp_elf2flt) $(cmd_elf2flt) |
Mike Frysinger | b38673f | 2006-02-02 01:41:53 +0000 | [diff] [blame] | 424 | |
Bernhard Reutner-Fischer | e5de384 | 2006-06-10 14:58:33 +0000 | [diff] [blame] | 425 | uppercase = $(shell echo $1 | $(SED) -e "y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/") |
Mike Frysinger | 6143c07 | 2006-05-10 18:12:16 +0000 | [diff] [blame] | 426 | %.a: |
| 427 | @if test -z "$($(call uppercase,$*)_DIR)" ; then \ |
| 428 | echo "Invalid target $@" ; \ |
| 429 | exit 1 ; \ |
| 430 | fi |
| 431 | $(Q)$(MAKE) $($(call uppercase,$*)_DIR)$@ |
| 432 | |
Eric Andersen | 85208e2 | 2002-04-12 12:05:57 +0000 | [diff] [blame] | 433 | .PHONY: dummy |