9 gtkdocize
--docdir libkmod
/docs ||
touch libkmod
/docs
/gtk-doc.
make
10 autoreconf
--force --install --symlink
13 echo $
(cd "$1/$(gcc -print-multi-os-directory)"; pwd)
19 --libdir=$(libdir /usr/lib) \
22 if [ -f "$topdir/.config.args" ]; then
23 args
="$args $(cat $topdir/.config.args)"
26 if [ ! -L /bin
]; then
29 --with-rootlibdir=$(libdir /lib) \
44 if [ "x$1" = "xc" ]; then
46 $topdir/configure CFLAGS
='-g -O2' $args $hackargs "$@"
48 elif [ "x$1" = "xg" ]; then
50 $topdir/configure CFLAGS
='-g -Og' $args "$@"
52 elif [ "x$1" = "xl" ]; then
54 $topdir/configure CC
=clang CXX
=clang
++ $args "$@"
56 elif [ "x$1" = "xa" ]; then
58 $topdir/configure CFLAGS
='-g -O2 -Wsuggest-attribute=pure -Wsuggest-attribute=const' $args "$@"
60 elif [ "x$1" = "xs" ]; then
62 scan-build
$topdir/configure CFLAGS
='-g -O0 -std=gnu11' $args "$@"
66 echo "----------------------------------------------------------------"
67 echo "Initialized build system. For a common configuration please run:"
68 echo "----------------------------------------------------------------"
70 echo "$topdir/configure CFLAGS='-g -O2' $args"
72 echo If you are debugging or hacking on kmod
, consider configuring
75 echo "$topdir/configure CFLAGS='-g -O2' $args $hackargs"