enable silent rules, if available
[fso-gpsd.git] / configure-dev
blob7294fe0e4cedd9dd3ec7164f18a7ebf14fc763cb
1 #!/bin/sh
3 WARN="\
4 -Wchar-subscripts \
5 -Wcomment \
6 -Wformat \
7 -Wnonnull \
8 -Wimplicit-int \
9 -Wimplicit-function-declaration \
10 -Wimplicit \
11 -Wmain \
12 -Wmissing-braces \
13 -Wparentheses \
14 -Wsequence-point \
15 -Wreturn-type \
16 -Wswitch \
17 -Wtrigraphs \
18 -Wunused-function \
19 -Wunused-label \
20 -Wunused-variable \
21 -Wunused-value \
22 -Wunknown-pragmas \
23 -Wstrict-aliasing \
24 -Winline \
25 -Wundef \
26 -Wendif-labels \
27 -Wshadow \
28 -Wpointer-arith \
29 -Wcast-qual \
30 -Wcast-align \
31 -Wwrite-strings \
32 -Waggregate-return \
33 -Wstrict-prototypes \
34 -Wmissing-noreturn \
35 -Wnested-externs"
37 PREFIX="$HOME/dev"
38 CFLAGS="-g -O2 -Wall -pedantic $WARN -D_FORTIFY_SOURCE=2"
39 CMD="./configure --prefix=\"$PREFIX\" CFLAGS=\"$CFLAGS\""
41 echo $CMD
42 eval $CMD