diff Makefile @ 4:54d369e3d689

Fill out more main.c structure Add onewire files
author Matt Johnston <matt@ucc.asn.au>
date Wed, 09 May 2012 00:22:28 +0800
parents 888be1b234b6
children 9d538f674ff0
line wrap: on
line diff
--- a/Makefile	Tue May 08 22:51:38 2012 +0800
+++ b/Makefile	Wed May 09 00:22:28 2012 +0800
@@ -20,7 +20,7 @@
 DEVICE     = atmega328
 CLOCK      = 1000000
 PROGRAMMER = #-c stk500v2 -P avrdoper
-OBJECTS    = main.o ff.o mmc.o
+OBJECTS    = main.o ff.o mmc.o onewire.o
 FUSES      = -U hfuse:w:0xd9:m -U lfuse:w:0x24:m
 
 # ATMega8 fuse bits used above (fuse bits for other devices are different!):
@@ -49,7 +49,7 @@
 # Tune the lines below only if you know what you are doing:
 
 AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
-COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g
+COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE) -g -std=c99
 
 # symbolic targets:
 all:	main.hex