Makefile
changeset 2751 4ee82551f3f7
parent 2742 bfa51fe0dac5
child 2767 3282c77ffc27
equal deleted inserted replaced
2750:f003e561f4b9 2751:4ee82551f3f7
   291 CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
   291 CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
   292 
   292 
   293 # GNU make can only test for (in)equality
   293 # GNU make can only test for (in)equality
   294 # this is a workaround to test for >=
   294 # this is a workaround to test for >=
   295 ifeq ($(shell expr $(CC_VERSION) \>= 29), 1)
   295 ifeq ($(shell expr $(CC_VERSION) \>= 29), 1)
   296   CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes
   296   CFLAGS += -O -Wall -Wno-multichar -Wsign-compare -Wstrict-prototypes -Wundef
   297   CFLAGS += -Wwrite-strings -Wpointer-arith
   297   CFLAGS += -Wwrite-strings -Wpointer-arith
   298 endif
   298 endif
   299 ifeq ($(shell expr $(CC_VERSION) \>= 30), 1)
   299 ifeq ($(shell expr $(CC_VERSION) \>= 30), 1)
   300   CFLAGS += -W -Wno-unused-parameter
   300   CFLAGS += -W -Wno-unused-parameter
   301 endif
   301 endif