summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen2000-09-21 02:04:51 +0000
committerEric Andersen2000-09-21 02:04:51 +0000
commit624cc771da4ac5f15ec16a2b0f10feeef0b125c7 (patch)
tree159ab99cb2f1e14218204306c1be24f0b6c85745 /Makefile
parent8847b9a03afd59a4d4f833be12937b38216799d3 (diff)
downloadbusybox-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.zip
busybox-624cc771da4ac5f15ec16a2b0f10feeef0b125c7.tar.gz
More portable handling of loop header files, as done in util-linux
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index a2940b5..278887f 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ DODMALLOC = false
# If you are running a cross compiler, you may want to set this
# to something more interesting...
-CROSS =
+CROSS = #powerpc-linux-
CC = $(CROSS)gcc
STRIPTOOL = $(CROSS)strip
@@ -83,12 +83,13 @@ else
ifeq ($(DOSTATIC),true)
LDFLAGS += --static
#
- #use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work
- #to try and strip out any unused junk. Doesn't do much for me, but you may
- #want to give it a shot...
+ #use '-ffunction-sections -fdata-sections' and '--gc-sections' (if they
+ # work) to try and strip out any unused junk. Doesn't do much for me,
+ # but you may want to give it a shot...
#
#ifeq ($(shell $(CC) -ffunction-sections -fdata-sections -S \
- # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) --gc-sections -v >/dev/null && echo 1),1)
+ # -o /dev/null -xc /dev/null 2>/dev/null && $(LD) \
+ # --gc-sections -v >/dev/null && echo 1),1)
# CFLAGS += -ffunction-sections -fdata-sections
# LDFLAGS += --gc-sections
#endif
@@ -106,7 +107,8 @@ ifdef BB_INIT_SCRIPT
CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
endif
-all: busybox busybox.links doc
+
+all: loop.h busybox busybox.links doc
doc: olddoc
@@ -154,7 +156,7 @@ docs/busybox/busybox.html: docs/busybox.sgml
-busybox: $(OBJECTS)
+busybox: $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES)
$(STRIP)
@@ -164,6 +166,11 @@ busybox.links: busybox.def.h
nfsmount.o cmdedit.o: %.o: %.h
$(OBJECTS): %.o: busybox.def.h internal.h %.c Makefile
+utility.o:
+
+loop.h:
+ @./mk_loop_h.sh
+
test tests:
cd tests && $(MAKE) all