The unified diff between revisions [b85a3bbc..] and [24d5b9f4..] is displayed below. It can also be downloaded as a raw diff.

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

#
# old_revision [b85a3bbccc40f21e02f50101af764be93eeb9538]
# new_revision [24d5b9f4dff9135787b198fe1127d9c1e3326b9c]
#
# patch "Makefile"
#  from [479d31a1bbcf4db0ce420abbed6feb38d78d2245]
#    to [7a1a49fb3e2f7d3f482e493962f2f02dae51aa93]
#
============================================================
--- Makefile	479d31a1bbcf4db0ce420abbed6feb38d78d2245
+++ Makefile	7a1a49fb3e2f7d3f482e493962f2f02dae51aa93
@@ -3,13 +3,25 @@ SSRCS=crt0.s
 NAME=quad
 
 SSRCS=crt0.s
-CSRCS=main.c i2c.c wmp.c timer.c
+CSRCS=main.c i2c.c wmp.c timer.c interrupt.c uart.c event.c matrix.c dcm.c
+CSRCS+=fisqrt.c stick.c trig.c motor.c led.c watchdog.c panic.c status.c
+CSRCS+=thrust.c
 
-CFLAGS=-march=armv4t -msoft-float -O1
+#PROJOPTS=-DUSE_UART -DSEND_DCM
 
+COPTIM?=-O1
+CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror -Wextra $(PROJOPTS)
+
 LDSCRIPT=lpc2103_flash.ld
+
+# To build with the Clang Static Analyzer, use
+#     scan-build --use-cc=arm-elf-gcc make
+# And uncomment the following line:
 CC=arm-elf-gcc
+
 OBJCOPY=arm-elf-objcopy
+LINT=splint
+LINTFLAGS=-booltype bool -nolib +charint
 
 CLEANOBJS=$(OBJS) $(NAME).hex $(NAME).elf $(NAME).bin $(NAME).map .depend
 
@@ -43,4 +55,7 @@ depend:
 depend:
 	$(CC) -MM $(CFLAGS) -nostdlib -nostartfiles $(CSRCS) >.depend
 
+lint:
+	$(LINT) $(LINTFLAGS) $(CSRCS)
+
 .sinclude ".depend"