From 7faea389e8ba002e1c3c7604eaaa916fad583179 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Mon, 14 Mar 2011 16:45:17 +1300 Subject: Added dependency generation. Abort loops on error. --- lib/lm3s/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/lm3s') diff --git a/lib/lm3s/Makefile b/lib/lm3s/Makefile index 25c57ec..2bdbd72 100644 --- a/lib/lm3s/Makefile +++ b/lib/lm3s/Makefile @@ -25,7 +25,7 @@ CC = $(PREFIX)-gcc AR = $(PREFIX)-ar CFLAGS = -Os -g -Wall -Wextra -I../../include -fno-common \ -mcpu=cortex-m3 -mthumb -Wstrict-prototypes \ - -ffunction-sections -fdata-sections + -ffunction-sections -fdata-sections -MD # ARFLAGS = rcsv ARFLAGS = rcs OBJS = gpio.o vector.o @@ -49,8 +49,9 @@ $(LIBNAME).a: $(OBJS) clean: @printf " CLEAN lib/lpc13xx\n" - $(Q)rm -f *.o + $(Q)rm -f *.o *.d $(Q)rm -f $(LIBNAME).a .PHONY: clean +-include $(OBJS:.o=.d) -- cgit v1.2.3