More stuff
This commit is contained in:
parent
f5a3838e2f
commit
f8d650c4e5
13
Makefile
13
Makefile
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
PROG=busybox
|
||||||
VERSION=0.29alpha1
|
VERSION=0.29alpha1
|
||||||
BUILDTIME=$(shell date "+%Y%m%d-%H%M")
|
BUILDTIME=$(shell date "+%Y%m%d-%H%M")
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ ifeq ($(DODEBUG),true)
|
|||||||
else
|
else
|
||||||
CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
|
CFLAGS=-Wall -Os -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
|
||||||
LDFLAGS= -s
|
LDFLAGS= -s
|
||||||
STRIP= strip --remove-section=.note --remove-section=.comment busybox
|
STRIP= strip --remove-section=.note --remove-section=.comment
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef $(prefix)
|
ifndef $(prefix)
|
||||||
@ -34,22 +35,22 @@ CFLAGS+= -DBB_BT='"$(BUILDTIME)"'
|
|||||||
all: busybox links
|
all: busybox links
|
||||||
|
|
||||||
busybox: $(OBJECTS)
|
busybox: $(OBJECTS)
|
||||||
$(CC) $(LDFLAGS) -o busybox $(OBJECTS) $(LIBRARIES)
|
$(CC) $(LDFLAGS) -o $(PROG) $(OBJECTS) $(LIBRARIES)
|
||||||
$(STRIP)
|
$(STRIP) $(PROG)
|
||||||
|
|
||||||
links:
|
links:
|
||||||
- ./busybox.mkll | sort >busybox.links
|
- ./busybox.mkll | sort >busybox.links
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
- rm -f busybox busybox.links *~ *.o core
|
- rm -f $(PROG) busybox.links *~ *.o core
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
- rm -f busybox
|
- rm -f $(PROG)
|
||||||
|
|
||||||
force:
|
force:
|
||||||
|
|
||||||
$(OBJECTS): busybox.def.h internal.h Makefile
|
$(OBJECTS): busybox.def.h internal.h Makefile
|
||||||
|
|
||||||
install: busybox
|
install: $(PROG)
|
||||||
install.sh $(BINDIR)
|
install.sh $(BINDIR)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user