Makefile
changeset 1093 e8d26c7dc42f
parent 1069 922f5c7be173
child 1099 0b4f24a38642
equal deleted inserted replaced
1092:9adcd7820373 1093:e8d26c7dc42f
   297 CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
   297 CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
   298 
   298 
   299 # GNU make can only test for (in)equality
   299 # GNU make can only test for (in)equality
   300 # this is a workaround to test for >=
   300 # this is a workaround to test for >=
   301 ifeq ($(shell if test $(CC_VERSION) -ge 29; then echo true; fi), true)
   301 ifeq ($(shell if test $(CC_VERSION) -ge 29; then echo true; fi), true)
   302   CFLAGS += -O -Wall -Wno-multichar -Wsign-compare
   302   CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes
   303 endif
   303 endif
   304 ifeq ($(shell if test $(CC_VERSION) -ge 30; then echo true; fi), true)
   304 ifeq ($(shell if test $(CC_VERSION) -ge 30; then echo true; fi), true)
   305   CFLAGS += -W -Wno-unused-parameter
   305   CFLAGS += -W -Wno-unused-parameter
   306 endif
   306 endif
   307 ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true)
   307 ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true)
   308   CFLAGS += -Wdeclaration-after-statement
   308   CFLAGS += -Wdeclaration-after-statement -Wold-style-definition
   309 endif
   309 endif
   310 
   310 
   311 CDEFS=-DWITH_REV
   311 CDEFS=-DWITH_REV
   312 LDFLAGS=
   312 LDFLAGS=
   313 LIBS=
   313 LIBS=