The unified diff between revisions [5ddceb38..] and [d0420ebd..] is displayed below. It can also be downloaded as a raw diff.

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

#
# old_revision [5ddceb38e22c73a2d7c630837716676d5ff14a38]
# new_revision [d0420ebd87c820e33a32b29727989516e15980a8]
#
# patch "Makefile"
#  from [a138dfe535ffa07a2fe757f088e1451a3f4aff9a]
#    to [682a220b957308023bd4b69a74f1bdbd6cc62025]
#
============================================================
--- Makefile	a138dfe535ffa07a2fe757f088e1451a3f4aff9a
+++ Makefile	682a220b957308023bd4b69a74f1bdbd6cc62025
@@ -3,14 +3,24 @@ 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
 
+#PROJOPTS=-DUSE_UART -DSEND_DCM
+
 COPTIM?=-O1
-CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror
+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
 
@@ -44,4 +54,7 @@ depend:
 depend:
 	$(CC) -MM $(CFLAGS) -nostdlib -nostartfiles $(CSRCS) >.depend
 
+lint:
+	$(LINT) $(LINTFLAGS) $(CSRCS)
+
 .sinclude ".depend"