2010-09-20 22:28:22 +02:00
|
|
|
# Hey Emacs, this is a -*- makefile -*-
|
2010-02-26 13:16:06 +01:00
|
|
|
|
2010-09-20 22:28:22 +02:00
|
|
|
CFLAGS += -I$(MC1322X)/lib/include
|
2010-02-23 21:01:31 +01:00
|
|
|
|
2010-09-20 22:28:22 +02:00
|
|
|
# By default, link all objects
|
|
|
|
LIBOBJS ?= $(patsubst %.c,%.o,$(wildcard $(MC1322X)/lib/*.c))
|
2010-02-23 21:01:31 +01:00
|
|
|
|
2010-09-28 21:48:57 +02:00
|
|
|
$(MC1322X)/lib/libmc1322x.a: $(LIBOBJS)
|
|
|
|
$(call pretty,AR,$@)
|
|
|
|
@rm -f $@
|
|
|
|
$Q$(AR) $(ARFLAGS) $@ $^
|
2010-09-20 22:28:22 +02:00
|
|
|
|
2010-09-28 08:54:23 +02:00
|
|
|
TARGET_OBJ += $(MC1322X)/lib/libmc1322x.a
|
|
|
|
|
2010-09-20 22:28:22 +02:00
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
|
|
-include $(wildcard $(MC1322X)/lib/*.d)
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f $(MC1322X)/lib/*.{o,d,a}
|