summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-12 12:33:27 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-09-12 12:33:27 +0000
commit5e60dc4a209b053e8fe5170bd143173941c4634c (patch)
tree43f8c3bf33914c701b2224b218d2ed21078ef2ea /Makefile
parentba50217281e9265aa5935d184f698204143e765f (diff)
downloadbusybox-w32-5e60dc4a209b053e8fe5170bd143173941c4634c.tar.gz
busybox-w32-5e60dc4a209b053e8fe5170bd143173941c4634c.tar.bz2
busybox-w32-5e60dc4a209b053e8fe5170bd143173941c4634c.zip
new my scripts/mm_mkdep, dependences work now
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 11 insertions, 21 deletions
diff --git a/Makefile b/Makefile
index a6356b70b..c8b6d79d2 100644
--- a/Makefile
+++ b/Makefile
@@ -110,7 +110,7 @@ $(ALL_MAKEFILES): %/Makefile: $(top_srcdir)/%/Makefile
110include $(patsubst %,%/Makefile.in, $(SRC_DIRS)) 110include $(patsubst %,%/Makefile.in, $(SRC_DIRS))
111-include $(top_builddir)/.depend 111-include $(top_builddir)/.depend
112 112
113busybox: $(ALL_MAKEFILES) .depend include/bb_config.h $(libraries-y) 113busybox: $(ALL_MAKEFILES) .depend $(libraries-y)
114 $(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
115 $(STRIPCMD) $@ 115 $(STRIPCMD) $@
116 116
@@ -180,24 +180,14 @@ docs/busybox.net/BusyBox.html: docs/busybox.pod
180 -@ rm -f pod2htm* 180 -@ rm -f pod2htm*
181 181
182# The nifty new buildsystem stuff 182# The nifty new buildsystem stuff
183scripts/mkdep: $(top_srcdir)/scripts/mkdep.c 183scripts/bb_mkdep: $(top_srcdir)/scripts/bb_mkdep.c
184 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
185
186scripts/split-include: $(top_srcdir)/scripts/split-include.c
187 $(HOSTCC) $(HOSTCFLAGS) -o $@ $< 184 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<
188 185
189depend dep: .depend 186depend dep: .depend
190.depend: scripts/mkdep include/config.h include/bbconfigopts.h 187.depend: scripts/bb_mkdep include/config.h include/bb_config.h
191 rm -f .depend .hdepend; 188 @rm -f .depend
192 mkdir -p include/config; 189 @mkdir -p include/config
193 scripts/mkdep -I include -- \ 190 scripts/bb_mkdep -c include/config.h -c include/bb_config.h > $@
194 `find $(top_srcdir) -name \*.c -print | sed -e "s,^./,,"` >> .depend;
195 scripts/mkdep -I include -- \
196 `find $(top_srcdir) -name \*.h -print | sed -e "s,^./,,"` >> .hdepend;
197
198include/config/MARKER: depend scripts/split-include
199 scripts/split-include include/config.h include/config
200 @ touch include/config/MARKER
201 191
202include/config.h: .config 192include/config.h: .config
203 @if [ ! -x $(top_builddir)/scripts/config/conf ] ; then \ 193 @if [ ! -x $(top_builddir)/scripts/config/conf ] ; then \
@@ -206,11 +196,11 @@ include/config.h: .config
206 @$(top_builddir)/scripts/config/conf -o $(CONFIG_CONFIG_IN) 196 @$(top_builddir)/scripts/config/conf -o $(CONFIG_CONFIG_IN)
207 197
208include/bb_config.h: include/config.h 198include/bb_config.h: include/config.h
209 echo -e "#ifndef BB_CONFIG_H\n#define BB_CONFIG_H" > $@ 199 @echo -e "#ifndef BB_CONFIG_H\n#define BB_CONFIG_H" > $@
210 sed -e 's/#undef CONFIG_\(.*\)/#define ENABLE_\1 0/' \ 200 @sed -e 's/#undef CONFIG_\(.*\)/#define ENABLE_\1 0/' \
211 -e 's/#define CONFIG_\(.*\)/#define CONFIG_\1\n#define ENABLE_\1/' \ 201 -e 's/#define CONFIG_\(.*\)/#define CONFIG_\1\n#define ENABLE_\1/' \
212 < $< >> $@ 202 < $< >> $@
213 echo "#endif" >> $@ 203 @echo "#endif" >> $@
214 204
215include/bbconfigopts.h: .config 205include/bbconfigopts.h: .config
216 @[ -d $(@D) ] || mkdir -v $(@D) 206 @[ -d $(@D) ] || mkdir -v $(@D)
@@ -270,14 +260,14 @@ clean:
270 docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \ 260 docs/busybox pod2htm* *.gdb *.elf *~ core .*config.log \
271 docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \ 261 docs/BusyBox.txt docs/BusyBox.1 docs/BusyBox.html \
272 docs/busybox.net/BusyBox.html busybox.links libbb/loop.h \ 262 docs/busybox.net/BusyBox.html busybox.links libbb/loop.h \
273 .config.old .hdepend busybox testsuite/links/* 263 .config.old busybox testsuite/links/*
274 - rm -rf _install 264 - rm -rf _install
275 - find . -name .\*.flags -exec rm -f {} \; 265 - find . -name .\*.flags -exec rm -f {} \;
276 - find . -name \*.o -exec rm -f {} \; 266 - find . -name \*.o -exec rm -f {} \;
277 - find . -name \*.a -exec rm -f {} \; 267 - find . -name \*.a -exec rm -f {} \;
278 268
279distclean: clean 269distclean: clean
280 - rm -f scripts/split-include scripts/mkdep 270 - rm -f scripts/bb_mkdep
281 - rm -rf include/config include/config.h include/bb_config.h include/bbconfigopts.h 271 - rm -rf include/config include/config.h include/bb_config.h include/bbconfigopts.h
282 - find . -name .depend -exec rm -f {} \; 272 - find . -name .depend -exec rm -f {} \;
283 rm -f .config .config.old .config.cmd 273 rm -f .config .config.old .config.cmd