contiki/lib/Makefile.lib

21 lines
431 B
Makefile
Raw Normal View History

# Hey Emacs, this is a -*- makefile -*-
2010-02-26 12:16:06 +00:00
CFLAGS += -I$(MC1322X)/lib/include
2010-02-23 20:01:31 +00:00
# By default, link all objects
LIBOBJS ?= $(patsubst %.c,%.o,$(wildcard $(MC1322X)/lib/*.c))
2010-02-23 20:01:31 +00:00
$(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}