git @ Cat's Eye Technologies beta-Juliet / rel_2_0_2014_0819
Playing around with alternate C compilers, without much success. Cat's Eye Technologies 7 years ago
1 changed file(s) with 12 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
66 O?=.o
77 EXE?=
88
9 WARNS= -Werror -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
9 WARNS?= -Werror -W -Wall -Wstrict-prototypes -Wmissing-prototypes \
1010 -Wpointer-arith -Wno-uninitialized -Wreturn-type -Wcast-qual \
1111 -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts \
1212 -Winline -Wnested-externs -Wredundant-decls
1313
14 ifdef ANSI
15 CFLAGS+= -ansi -pedantic
14 ifeq ($(CC),8cc)
15 WARNS=-Wall -Werror
1616 else
17 CFLAGS+= -std=c99 -D_POSIX_C_SOURCE=200112L
17 ifeq ($(CC),pcc)
18 CFLAGS+=-I/usr/include/linux -I/usr/lib/gcc/x86_64-linux-gnu/4.6/include/
19 else
20 ifdef ANSI
21 CFLAGS+= -ansi -pedantic
22 else
23 CFLAGS+= -std=c99 -D_POSIX_C_SOURCE=200112L
24 endif
25 endif
1826 endif
1927
2028 CFLAGS+= ${WARNS} ${EXTRA_CFLAGS}