Minor makefile and todo updates
-Erik
This commit is contained in:
parent
a51ecdd9e4
commit
7c4b2f3fe5
6
Makefile
6
Makefile
@ -18,7 +18,7 @@
|
|||||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
# PROG := busybox
|
PROG := busybox
|
||||||
VERSION := 0.43
|
VERSION := 0.43
|
||||||
BUILDTIME := $(shell TZ=GMT date "+%Y%m%d-%H%M")
|
BUILDTIME := $(shell TZ=GMT date "+%Y%m%d-%H%M")
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ ifeq ($(DODEBUG),true)
|
|||||||
else
|
else
|
||||||
CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
|
CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment
|
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
|
||||||
#Only staticly link when _not_ debugging
|
#Only staticly link when _not_ debugging
|
||||||
ifeq ($(DOSTATIC),true)
|
ifeq ($(DOSTATIC),true)
|
||||||
LDFLAGS += --static
|
LDFLAGS += --static
|
||||||
@ -101,7 +101,7 @@ all: busybox busybox.links
|
|||||||
|
|
||||||
busybox: $(OBJECTS)
|
busybox: $(OBJECTS)
|
||||||
$(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
|
||||||
$(STRIP) $@
|
$(STRIP)
|
||||||
|
|
||||||
busybox.links: busybox.def.h
|
busybox.links: busybox.def.h
|
||||||
- ./busybox.mkll | sort >$@
|
- ./busybox.mkll | sort >$@
|
||||||
|
6
TODO
6
TODO
@ -29,6 +29,12 @@ around to it some time. If you have any good ideas, please let me know.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Compile with debugging on, run 'nm --size-sort ./busybox'
|
||||||
|
and then start with the biggest things and make them smaller...
|
||||||
|
|
||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user