mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-19 00:31:17 +00:00
Instead of specifying them individually. This lets included makefiles (like my audio/Makefile.include) append objects.
18 lines
401 B
Makefile
18 lines
401 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: $(MC1322X)/lib/libmc1322x.a($(LIBOBJS))
|
|
|
|
TARGET_OBJ += $(MC1322X)/lib/libmc1322x.a
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
-include $(wildcard $(MC1322X)/lib/*.d)
|
|
endif
|
|
|
|
clean::
|
|
rm -f $(MC1322X)/lib/*.{o,d,a}
|