diff options
| -rw-r--r-- | Makefile | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -110,7 +110,6 @@ $(ALL_MAKEFILES): %/Makefile: $(top_srcdir)/%/Makefile | |||
| 110 | include $(patsubst %,%/Makefile.in, $(SRC_DIRS)) | 110 | include $(patsubst %,%/Makefile.in, $(SRC_DIRS)) |
| 111 | -include $(top_builddir)/.depend | 111 | -include $(top_builddir)/.depend |
| 112 | 112 | ||
| 113 | %.o: .depend | ||
| 114 | busybox: $(ALL_MAKEFILES) .depend $(libraries-y) | 113 | busybox: $(ALL_MAKEFILES) .depend $(libraries-y) |
| 115 | $(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group | 114 | $(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group |
| 116 | $(STRIPCMD) $@ | 115 | $(STRIPCMD) $@ |
| @@ -184,9 +183,8 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod | |||
| 184 | scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c | 183 | scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c |
| 185 | $(HOSTCC) $(HOSTCFLAGS) -o $@ $< | 184 | $(HOSTCC) $(HOSTCFLAGS) -o $@ $< |
| 186 | 185 | ||
| 187 | depend dep: .depend | 186 | DEP_INCLUDES := include/config.h include/bb_config.h |
| 188 | 187 | ||
| 189 | DEP_INCLUDES=include/config.h include/bb_config.h | ||
| 190 | ifeq ($(strip $(CONFIG_BBCONFIG)),y) | 188 | ifeq ($(strip $(CONFIG_BBCONFIG)),y) |
| 191 | DEP_INCLUDES += include/bbconfigopts.h | 189 | DEP_INCLUDES += include/bbconfigopts.h |
| 192 | 190 | ||
| @@ -194,6 +192,7 @@ include/bbconfigopts.h: .config | |||
| 194 | scripts/config/mkconfigs > $@ | 192 | scripts/config/mkconfigs > $@ |
| 195 | endif | 193 | endif |
| 196 | 194 | ||
| 195 | depend dep $(top_builddir)/.depend: .depend | ||
| 197 | .depend: scripts/bb_mkdep $(DEP_INCLUDES) | 196 | .depend: scripts/bb_mkdep $(DEP_INCLUDES) |
| 198 | @rm -f .depend | 197 | @rm -f .depend |
| 199 | @mkdir -p include/config | 198 | @mkdir -p include/config |
