The unified diff between revisions [cc8258a6..] and [4f22e7ef..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'Makefile'
# # old_revision [cc8258a6c3643514892e84cf24fed008bc6f9660] # new_revision [4f22e7ef7d3064e3b51a5b868a4722f3f13c747b] # # patch "Makefile" # from [b5d08d5d0ac834ea39ee009f56ef0e3780848f88] # to [33137b98e954e7abaca672f6ad561d1367b25d30] # ============================================================ --- Makefile b5d08d5d0ac834ea39ee009f56ef0e3780848f88 +++ Makefile 33137b98e954e7abaca672f6ad561d1367b25d30 @@ -3,14 +3,26 @@ SSRCS=crt0.s NAME=quad SSRCS=crt0.s -CSRCS=main.c i2c.c wmp.c timer.c interrupt.c uart.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 +#PROJOPTS=-DUSE_UART -DSEND_DCM -DSTICK_DEBUG_CALIBRATE +PROJOPTS=-DTIMER_CPPM + 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 @@ -26,6 +38,8 @@ OBJS=$(SOBJS) $(COBJS) .SUFFIXES: .elf .hex .bin +$(OBJS): Makefile + $(NAME).elf: $(OBJS) $(CC) $(CFLAGS) -nostdlib -nostartfiles -T $(LDSCRIPT) -Wl,-Map -Wl,$(NAME).map -o $(NAME).elf $(OBJS) -lgcc @@ -44,4 +58,7 @@ depend: depend: $(CC) -MM $(CFLAGS) -nostdlib -nostartfiles $(CSRCS) >.depend +lint: + $(LINT) $(LINTFLAGS) $(CSRCS) + .sinclude ".depend"