mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-25 13:31:37 +00:00
0a41939407
This is an attempt to fix and cleanup all of the rules, and get rid of some of the recursion. We still need to invoke make several times when we're building for more than one board, and some things can get a bit weird when that happens, but it should generally work. A single BOARD=foo build should be fully correct, now. I attempted to keep things compatible, so existing Makefiles that include libmc1322x/Makefile.include should still work correctly.
16 lines
358 B
Makefile
16 lines
358 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))
|
|
|
|
ifneq ($(MAKECMDGOALS),clean)
|
|
-include $(wildcard $(MC1322X)/lib/*.d)
|
|
endif
|
|
|
|
clean::
|
|
rm -f $(MC1322X)/lib/*.{o,d,a}
|