Search This Blog

Tuesday, October 27, 2009

Funny numbers

Freebsd kernel source files count vs Makefile count. Just from the numbers it looks like for every 4 source files there is an Makefile. I ran these commands when I thought of converting FreeBSD build system(make) to use waf(http://code.google.com/p/waf/) or scons(http://www.scons.org/).

root@freebsd-sam:/sys#find . -name "*.c" | wc -l
3171
root@freebsd-sam:/sys#find . -name "*.h" | wc -l
3004
root@freebsd-sam:/sys#find . -name "*.s" | wc -l
44

root@freebsd-sam:/sys#find . -name "Makefile*" | wc -l
746

And yes, after seeing this number I let me thought to stay inside for sometime.

0 comments: