mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
03293b60ad
Using the implicit rules for libraries leads to problems if one of the objects fails to build, but the others are still OK. Just make all library rules explicit to avoid this.
21 lines
431 B
Makefile
21 lines
431 B
Makefile
# Hey Emacs, this is a -*- makefile -*-
|
|
|
|
CFLAGS += -I$(MC1322X)/lib/include
|
|
|
|
# By default, link all objects
|
|
LIBOBJS ?= $(patsubst %.c,%.o,$(wildcard $(MC1322X)/lib/*.c))
|
|
|
|
$(MC1322X)/lib/libmc1322x.a: $(LIBOBJS)
|
|
$(call pretty,AR,$@)
|
|
@rm -f $@
|
|
$Q$(AR) $(ARFLAGS) $@ $^
|
|
|
|
TARGET_OBJ += $(MC1322X)/lib/libmc1322x.a
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
-include $(wildcard $(MC1322X)/lib/*.d)
|
|
endif
|
|
|
|
clean::
|
|
rm -f $(MC1322X)/lib/*.{o,d,a}
|