CONFIG_* defines

Vladimir N. Oleynik dzo at simtreas.ru
Mon Sep 12 07:56:14 UTC 2005


Rob,

> Of course I could trivially through a "sort -ur" into the thing when 
> generating bb_config.h (since then #define would come after #undef, and would 
> win...), but that doesn't fix config.h.

This do "spit-include" programm. But mkdep also require.
bb_mkdep from my ftp released. Very tested.

After change

Makefile:

-busybox: $(ALL_MAKEFILES) .depend include/bb_config.h	
+busybox: $(ALL_MAKEFILES) .depend

-.depend: scripts/mkdep include/config.h include/bbconfigopts.h
+.depend: scripts/bb_mkdep include/config.h include/bb_config.h	
-        rm -f .depend .hdepend;
+        @rm -f .depend
-        mkdir -p include/config;
+        @mkdir -p include/config;
-        scripts/mkdep -I include -- \
-          `find $(top_srcdir) -name \*.c -print | sed -e "s,^./,,"` >> .depend;
-        scripts/mkdep -I include -- \
-        `find $(top_srcdir) -name \*.h -print | sed -e "s,^./,,"` >> .hdepend;
+	scripts/bb_mkdep -c include/config.h -c include/bb_config.h > $@


-include/config/MARKER: depend scripts/split-include
-        scripts/split-include include/config.h include/config
-        @ touch include/config/MARKER


depend work now!

But:
Why libunarchive/unarchive.c depended with config.h?
What is it include/bb_config.h, why include/config.h splitted?


--w
vodz




More information about the busybox mailing list