summaryrefslogtreecommitdiff
path: root/saedit/bmake
blob: a1ecd7feeb79f44e47209b6989ad4cc3cc528d55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

dir=`pwd`

export LANG=C

make clean

#export CFLAGS="-std=c99 -Wvariadic-macros -Wvla -Wredundant-decls

export CFLAGS="-std=gnu99 -Wvariadic-macros -Wvla -Wredundant-decls \
-Wpacked-bitfield-compat -Wtrampolines \
-Wsuggest-attribute=noreturn -Wstrict-aliasing=2 \
-fstrict-aliasing -Wunreachable-code -Wabi -Wdisabled-optimization \
-Wvolatile-register-var -Winvalid-pch -Wredundant-decls \
-Wnormalized=nfkc -Wmissing-format-attribute -Wmissing-noreturn \
-Wswitch-default -Waddress \
-Wlogical-op -Wcast-align -Wpointer-arith -Wundef \
-Wmissing-include-dirs -Winit-self -pedantic -Wall -ggdb3 -O2 -pipe \
-Wpacked -Wstrict-overflow=1 -Wunknown-pragmas -Wwrite-strings \
-Wstack-protector -Wshadow -Wunused-macros \
-Wbuiltin-macro-redefined -Wdeprecated \
-Wendif-labels -Wformat=1 -Wimport -Wpsabi \
-Wmissing-field-initializers -Wuninitialized \
-Wignored-qualifiers -Winit-self -Wempty-body -Wclobbered -Wtype-limits \
-Wsign-compare -Wwrite-strings"

make 2>make.log