The unified diff between revisions [4cc7246c..] and [64de686d..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'Makefile'
# # old_revision [4cc7246c1b6c809c9dc15997798f6deed15b3631] # new_revision [64de686d701acb9539dc52fe0bff299405612ab0] # # patch "Makefile" # from [aa804f03d53484ad86061695d7e033b091c87a88] # to [3c0587750b990cb4dc04f8caccec5088db10298c] # ============================================================ --- Makefile aa804f03d53484ad86061695d7e033b091c87a88 +++ Makefile 3c0587750b990cb4dc04f8caccec5088db10298c @@ -4,13 +4,23 @@ CSRCS=main.c i2c.c wmp.c timer.c interru 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 stick.c trig.c motor.c led.c watchdog.c panic.c status.c +#PROJOPTS=-DUSE_UART -DSEND_DCM + COPTIM?=-O1 -CFLAGS=-march=armv4t -msoft-float $(COPTIM) -Wall -Werror -Wextra +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"