* Allow COPTIM to be set outside Makefile

* Use -Wall -Werror
* Fix some warnings
This commit is contained in:
2011-05-18 09:55:02 +00:00
parent b3f0bbf7c9
commit 4d37c82b12
5 changed files with 7 additions and 6 deletions

View File

@@ -5,7 +5,8 @@ NAME=quad
SSRCS=crt0.s
CSRCS=main.c i2c.c wmp.c timer.c
CFLAGS=-march=armv4t -msoft-float -O1
COPTIM?=-O1
CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror
LDSCRIPT=lpc2103_flash.ld
CC=arm-elf-gcc