summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-31 03:45:05 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-31 03:45:05 +0000
commit87715170ccb9c3ffda13b621385832a9103913ec (patch)
treeb49e6be193dae1337f1ec385c63051351139141a
parentb230159958fd527dafb21aa5b157a928e46ee181 (diff)
downloadbusybox-w32-87715170ccb9c3ffda13b621385832a9103913ec.tar.gz
busybox-w32-87715170ccb9c3ffda13b621385832a9103913ec.tar.bz2
busybox-w32-87715170ccb9c3ffda13b621385832a9103913ec.zip
Be more portable with 'find' for those that prefer programming
on *BSD, etc. Formatting fixes, etc.
-rw-r--r--Makefile8
-rw-r--r--Rules.mak6
2 files changed, 7 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 1e1eddbc5..4a7195314 100644
--- a/Makefile
+++ b/Makefile
@@ -221,10 +221,10 @@ clean:
221 - rm -f busybox busybox.links libbb/loop.h .config.old .hdepend 221 - rm -f busybox busybox.links libbb/loop.h .config.old .hdepend
222 - rm -f scripts/split-include scripts/mkdep .*config.log 222 - rm -f scripts/split-include scripts/mkdep .*config.log
223 - rm -rf include/config include/config.h 223 - rm -rf include/config include/config.h
224 - find -name .\*.flags -exec rm -f {} \; 224 - find . -name .\*.flags -exec rm -f {} \;
225 - find -name .depend -exec rm -f {} \; 225 - find . -name .depend -exec rm -f {} \;
226 - find -name \*.o -exec rm -f {} \; 226 - find . -name \*.o -exec rm -f {} \;
227 - find -name \*.a -exec rm -f {} \; 227 - find . -name \*.a -exec rm -f {} \;
228 228
229distclean: clean 229distclean: clean
230 - rm -f busybox 230 - rm -f busybox
diff --git a/Rules.mak b/Rules.mak
index d5b0127f8..0f6f9b152 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -36,7 +36,7 @@ TARGET_OS:=linux
36# If you want to add some simple compiler switches (like -march=i686), 36# If you want to add some simple compiler switches (like -march=i686),
37# especially from the command line, use this instead of CFLAGS directly. 37# especially from the command line, use this instead of CFLAGS directly.
38# For optimization overrides, it's better still to set OPTIMIZATION. 38# For optimization overrides, it's better still to set OPTIMIZATION.
39CFLAGS_EXTRA:= 39CFLAGS_EXTRA:=#-Werror
40 40
41# If you want a static binary, turn this on. 41# If you want a static binary, turn this on.
42DOSTATIC:=false 42DOSTATIC:=false
@@ -132,8 +132,8 @@ TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
132# for OPTIMIZATION... 132# for OPTIMIZATION...
133 133
134# use '-Os' optimization if available, else use -O2 134# use '-Os' optimization if available, else use -O2
135OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \ 135OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null \
136 then echo "-Os"; else echo "-O2" ; fi} 136 >/dev/null 2>&1; then echo "-Os"; else echo "-O2" ; fi}
137 137
138# Some nice architecture specific optimizations 138# Some nice architecture specific optimizations
139ifeq ($(strip $(TARGET_ARCH)),arm) 139ifeq ($(strip $(TARGET_ARCH)),arm)