X-Git-Url: http://git.tdb.fi/?p=model-railway-devices.git;a=blobdiff_plain;f=common%2Fbuild.mk;h=22d970cd813129f050516132b74677a4c2883643;hp=c56892eae10fbe8f79423c321683fdc2aac42c75;hb=49c7ae4a26f8dd7d09872b6b5e4c107ef33b4560;hpb=10a75dc39bf4cd91d235861f11b1fa0365d75c3e diff --git a/common/build.mk b/common/build.mk index c56892e..22d970c 100644 --- a/common/build.mk +++ b/common/build.mk @@ -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