]> git.tdb.fi Git - model-railway-devices.git/blobdiff - common/build.mk
Drop the pretense of C89, put declarations where they make sense
[model-railway-devices.git] / common / build.mk
index c56892eae10fbe8f79423c321683fdc2aac42c75..22d970cd813129f050516132b74677a4c2883643 100644 (file)
@@ -1,7 +1,7 @@
 MCU := atmega328p
 CLOCK := 16000000
 CC := avr-gcc
-CFLAGS := -Wall -Os -ffunction-sections -fdata-sections -mmcu=$(MCU) -DF_CPU=$(CLOCK) $(patsubst %,-D%,$(FEATURES)) -I../common
+CFLAGS := -Wall -std=c99 -Os -ffunction-sections -fdata-sections -mmcu=$(MCU) -DF_CPU=$(CLOCK) $(patsubst %,-D%,$(FEATURES)) -I../common
 LDFLAGS := -Os -Wl,--gc-sections -mmcu=$(MCU)
 AVRDUDE := avrdude
 OBJCOPY := avr-objcopy