Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame] | 1 | #!/bin/sh -e |
| 2 | |
| 3 | autoreconf --install --symlink |
| 4 | |
| 5 | MYCFLAGS="-g -Wall \ |
| 6 | -Wmissing-declarations -Wmissing-prototypes \ |
| 7 | -Wnested-externs -Wpointer-arith \ |
| 8 | -Wpointer-arith -Wsign-compare -Wchar-subscripts \ |
| 9 | -Wstrict-prototypes -Wshadow \ |
| 10 | -Wformat-security -Wtype-limits" |
| 11 | |
| 12 | libdir() { |
| 13 | echo $(cd $1/$(gcc -print-multi-os-directory); pwd) |
| 14 | } |
| 15 | |
| 16 | args="--prefix=/usr \ |
| 17 | --sysconfdir=/etc \ |
| 18 | --libdir=$(libdir /usr/lib)" |
| 19 | |
| 20 | ./configure $args CFLAGS="${MYCFLAGS} ${CFLAGS}" $@ |