diff options
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/lib/Makefile b/nuttx/lib/Makefile index 2dfda7e81..361c0bb63 100644 --- a/nuttx/lib/Makefile +++ b/nuttx/lib/Makefile @@ -68,7 +68,7 @@ COBJS = $(CSRCS:.c=.o) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) -BIN = liblib.a +BIN = liblib$(LIBEXT) all: $(BIN) @@ -79,7 +79,10 @@ $(COBJS): %.o: %.c $(CC) -c $(CFLAGS) $< -o $@ $(BIN): $(OBJS) - $(AR) rcs $@ $(OBJS) + ( for obj in $(OBJS) ; do \ + $(AR) $@ $${obj} || \ + { echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \ + done ; ) .depend: Makefile $(SRCS) $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep |