Be more portable with 'find' for those that prefer programming
on *BSD, etc. Formatting fixes, etc.
This commit is contained in:
parent
b230159958
commit
87715170cc
8
Makefile
8
Makefile
@ -221,10 +221,10 @@ clean:
|
|||||||
- rm -f busybox busybox.links libbb/loop.h .config.old .hdepend
|
- rm -f busybox busybox.links libbb/loop.h .config.old .hdepend
|
||||||
- rm -f scripts/split-include scripts/mkdep .*config.log
|
- rm -f scripts/split-include scripts/mkdep .*config.log
|
||||||
- rm -rf include/config include/config.h
|
- rm -rf include/config include/config.h
|
||||||
- find -name .\*.flags -exec rm -f {} \;
|
- find . -name .\*.flags -exec rm -f {} \;
|
||||||
- find -name .depend -exec rm -f {} \;
|
- find . -name .depend -exec rm -f {} \;
|
||||||
- find -name \*.o -exec rm -f {} \;
|
- find . -name \*.o -exec rm -f {} \;
|
||||||
- find -name \*.a -exec rm -f {} \;
|
- find . -name \*.a -exec rm -f {} \;
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
- rm -f busybox
|
- rm -f busybox
|
||||||
|
@ -36,7 +36,7 @@ TARGET_OS:=linux
|
|||||||
# If you want to add some simple compiler switches (like -march=i686),
|
# If you want to add some simple compiler switches (like -march=i686),
|
||||||
# especially from the command line, use this instead of CFLAGS directly.
|
# especially from the command line, use this instead of CFLAGS directly.
|
||||||
# For optimization overrides, it's better still to set OPTIMIZATION.
|
# For optimization overrides, it's better still to set OPTIMIZATION.
|
||||||
CFLAGS_EXTRA:=
|
CFLAGS_EXTRA:=#-Werror
|
||||||
|
|
||||||
# If you want a static binary, turn this on.
|
# If you want a static binary, turn this on.
|
||||||
DOSTATIC:=false
|
DOSTATIC:=false
|
||||||
@ -132,8 +132,8 @@ TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
|
|||||||
# for OPTIMIZATION...
|
# for OPTIMIZATION...
|
||||||
|
|
||||||
# use '-Os' optimization if available, else use -O2
|
# use '-Os' optimization if available, else use -O2
|
||||||
OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
|
OPTIMIZATION := ${shell if $(CC) -Os -S -o /dev/null -xc /dev/null \
|
||||||
then echo "-Os"; else echo "-O2" ; fi}
|
>/dev/null 2>&1; then echo "-Os"; else echo "-O2" ; fi}
|
||||||
|
|
||||||
# Some nice architecture specific optimizations
|
# Some nice architecture specific optimizations
|
||||||
ifeq ($(strip $(TARGET_ARCH)),arm)
|
ifeq ($(strip $(TARGET_ARCH)),arm)
|
||||||
|
Loading…
Reference in New Issue
Block a user