Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | |
Lucas De Marchi | 4fb900c | 2012-01-10 12:55:13 -0200 | [diff] [blame] | 3 | gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 4 | autoreconf --install --symlink |
| 5 | |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 6 | libdir() { |
Dave Reisner | b7d830b | 2012-06-08 13:17:28 -0400 | [diff] [blame] | 7 | (cd "$1/$(gcc -print-multi-os-directory)"; pwd) |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | args="--prefix=/usr \ |
| 11 | --sysconfdir=/etc \ |
Lucas De Marchi | 63dc832 | 2012-01-09 13:00:28 -0200 | [diff] [blame] | 12 | --libdir=$(libdir /usr/lib)" |
Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 13 | |
Lucas De Marchi | 21e14d3 | 2012-01-11 17:54:05 -0200 | [diff] [blame] | 14 | hackargs="--enable-debug --with-xz --with-zlib" |
Lucas De Marchi | ae2612e | 2012-01-09 13:26:06 -0200 | [diff] [blame] | 15 | |
Lucas De Marchi | 21e14d3 | 2012-01-11 17:54:05 -0200 | [diff] [blame] | 16 | cat <<EOC |
| 17 | |
| 18 | ---------------------------------------------------------------- |
| 19 | Initialized build system. For a common configuration please run: |
| 20 | ---------------------------------------------------------------- |
| 21 | |
| 22 | ./configure CFLAGS='-g -O2' $args |
| 23 | |
| 24 | If you are debugging or hacking on kmod, consider configuring |
| 25 | like below: |
| 26 | |
Lucas De Marchi | 6d59d9d | 2014-03-24 07:58:32 -0300 | [diff] [blame^] | 27 | ./configure CFLAGS="-g -O2" $args $hackargs |
Lucas De Marchi | 21e14d3 | 2012-01-11 17:54:05 -0200 | [diff] [blame] | 28 | |
| 29 | EOC |