make cleanThen, instead of running
make
on the project's top-level
directory you run csmake
.
When the build process has finished, csmake will leave in
the directory where you started it a CScout processing script
named make.cs
.
csmake has been used out-of-the-box to run CScout on
the Linux kernel version 2.6.11.4 and the Apache httpd version 2.2.3.
It has also been used to process the FreeBSD 7-CURRENT kernel under
its three Tier-1 architecture configurations by cross-compiling each
configuration separately and merging the resulting CScout
processing scripts.
This is the shell script that did the job.
for a in amd64 i386 sparc64 do ( cd sys/$a/conf/ make LINT config LINT ) export MAKEOBJDIRPREFIX=/home/dds/src/fbsd-head/obj/$a csmake buildkernel TARGET_ARCH=$a KERNCONF=LINT mv make.cs make.$a.cs done cat make.*.cs >all.cs sed -n 's/#pragma process "\(.*hack.c\)"/\1/p' all.cs | xargs touch cscout all.cs
Contents | « Previous Next (Tailoring the Build Process to Generate the Processing Script) » |