diff options
-rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -68,7 +68,8 @@ ifndef $(STRIPTOOL) | |||
68 | STRIPTOOL = strip | 68 | STRIPTOOL = strip |
69 | endif | 69 | endif |
70 | 70 | ||
71 | # TODO: Try compiling vs other libcs. See what -nostdinc and -nostdlib do for that. | 71 | # TODO: Try compiling vs other libcs. |
72 | # See what -nostdinc and -nostdlib do for them. | ||
72 | # also try --prefix=/usr/my-libc-stuff | 73 | # also try --prefix=/usr/my-libc-stuff |
73 | 74 | ||
74 | # -D_GNU_SOURCE is needed because environ is used in init.c | 75 | # -D_GNU_SOURCE is needed because environ is used in init.c |
@@ -98,14 +99,12 @@ ifdef BB_INIT_SCRIPT | |||
98 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' | 99 | CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"' |
99 | endif | 100 | endif |
100 | 101 | ||
101 | all: busybox busybox.links docs | 102 | all: busybox busybox.links |
102 | 103 | ||
103 | busybox: $(OBJECTS) | 104 | busybox: $(OBJECTS) |
104 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) | 105 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBRARIES) |
105 | $(STRIP) | 106 | $(STRIP) |
106 | 107 | ( cd docs ; $(MAKE) ) | |
107 | docs: | ||
108 | $(MAKE) -C docs | ||
109 | 108 | ||
110 | busybox.links: busybox.def.h | 109 | busybox.links: busybox.def.h |
111 | - ./busybox.mkll | sort >$@ | 110 | - ./busybox.mkll | sort >$@ |
@@ -129,7 +128,7 @@ install: busybox busybox.links | |||
129 | ./install.sh $(PREFIX) | 128 | ./install.sh $(PREFIX) |
130 | 129 | ||
131 | dist release: distclean | 130 | dist release: distclean |
132 | $(MAKE) -C docs | 131 | ( cd docs ; $(MAKE) ) |
133 | cd ..; \ | 132 | cd ..; \ |
134 | rm -rf busybox-$(VERSION); \ | 133 | rm -rf busybox-$(VERSION); \ |
135 | cp -a busybox busybox-$(VERSION); \ | 134 | cp -a busybox busybox-$(VERSION); \ |