aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc13xx
diff options
context:
space:
mode:
authorGareth McMullin2011-03-14 16:45:17 +1300
committerGareth McMullin2011-03-14 16:45:17 +1300
commit7faea389e8ba002e1c3c7604eaaa916fad583179 (patch)
treec893d2c6cdc918ca16dd697d6923bff806e26b31 /lib/lpc13xx
parent95286a22f0bb6a822b4d2a62611bcc7b2c2daa8b (diff)
Added dependency generation. Abort loops on error.
Diffstat (limited to 'lib/lpc13xx')
-rw-r--r--lib/lpc13xx/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/lpc13xx/Makefile b/lib/lpc13xx/Makefile
index 37889e6..7181a08 100644
--- a/lib/lpc13xx/Makefile
+++ b/lib/lpc13xx/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
@@ -49,8 +49,10 @@ $(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)
+