The unified diff between revisions [7ac10cd3..] and [23a3e9a5..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'Makefile'

#
# old_revision [7ac10cd34167baa43683a09e9e9e6778e691171d]
# new_revision [23a3e9a50b4034343e3bd217d2c225dcaec064dd]
#
# patch "Makefile"
#  from [50a03fdf9f72cd0c2176b68271ca76d1e1df12eb]
#    to [d61625cad3fe90d5ffd933b03b2f322afc177d10]
#
============================================================
--- Makefile	50a03fdf9f72cd0c2176b68271ca76d1e1df12eb
+++ Makefile	d61625cad3fe90d5ffd933b03b2f322afc177d10
@@ -2,15 +2,18 @@ NAME=quad
 
 NAME=quad
 
-OBJS=crt0.o main.o
+SSRCS=crt0.s
+CSRCS=main.c i2c.c wmp.c timer.c interrupt.c uart.c event.c matrix.c dcm.c
+CSRCS+=fisqrt.c
 
-CFLAGS=-march=armv4t -msoft-float
+COPTIM?=-O1
+CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror -Wextra
 
 LDSCRIPT=lpc2103_flash.ld
 CC=arm-elf-gcc
 OBJCOPY=arm-elf-objcopy
 
-CLEANOBJS=$(OBJS) $(NAME).hex $(NAME).elf $(NAME).bin $(NAME).map
+CLEANOBJS=$(OBJS) $(NAME).hex $(NAME).elf $(NAME).bin $(NAME).map .depend
 
 all: $(NAME).bin
 
@@ -18,6 +21,9 @@ all: $(NAME).bin
 # In theory, nothing below here needs touching for as long as all of the
 # sources are in a single directory.
 
+COBJS=$(CSRCS:.c=.o)
+SOBJS=$(SSRCS:.s=.o)
+OBJS=$(SOBJS) $(COBJS)
 
 .SUFFIXES: .elf .hex .bin
 
@@ -36,3 +42,7 @@ clean:
 clean:
 	rm -rf $(CLEANOBJS)
 
+depend:
+	$(CC) -MM $(CFLAGS) -nostdlib -nostartfiles $(CSRCS) >.depend
+
+.sinclude ".depend"