Added dependency generation. Abort loops on error.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user