add PHONYs
This commit is contained in:
parent
d0ea93c741
commit
85e26336a4
|
@ -5,6 +5,7 @@ default: allboards
|
||||||
else
|
else
|
||||||
default: all
|
default: all
|
||||||
endif
|
endif
|
||||||
|
.PHONY: default
|
||||||
|
|
||||||
CROSS_COMPILE := arm-linux-
|
CROSS_COMPILE := arm-linux-
|
||||||
|
|
||||||
|
@ -39,7 +40,6 @@ export ARCH CPU VENDOR
|
||||||
|
|
||||||
.SECONDARY:
|
.SECONDARY:
|
||||||
|
|
||||||
|
|
||||||
### See http://make.paulandlesley.org/autodep.html#advanced
|
### See http://make.paulandlesley.org/autodep.html#advanced
|
||||||
ifdef BOARD
|
ifdef BOARD
|
||||||
-include ${addprefix $(OBJDIR)/,$(addsuffix .d,$(TARGETS))}
|
-include ${addprefix $(OBJDIR)/,$(addsuffix .d,$(TARGETS))}
|
||||||
|
@ -69,6 +69,8 @@ BOARDARCS := $(OBJDIR)/board.a(${filter $(OBJDIR)/%.o,$(OBJDIR)/$(COBJS)})
|
||||||
endif
|
endif
|
||||||
empty-board-a:
|
empty-board-a:
|
||||||
$(AR) $(ARFLAGS) $(OBJDIR)/board.a
|
$(AR) $(ARFLAGS) $(OBJDIR)/board.a
|
||||||
|
.PHONY: empty-board-a
|
||||||
|
|
||||||
$(OBJDIR)/board.a: empty-board-a $(BOARDARCS)
|
$(OBJDIR)/board.a: empty-board-a $(BOARDARCS)
|
||||||
$(MC1322X)/src/src.a: $(MC1322X)/src/src.a($(SRCOBJS))
|
$(MC1322X)/src/src.a: $(MC1322X)/src/src.a($(SRCOBJS))
|
||||||
|
|
||||||
|
@ -124,6 +126,8 @@ clobber \
|
||||||
mrproper \
|
mrproper \
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
|
.PHONY: clean clobber mrproper distclean
|
||||||
|
|
||||||
all: $(OBJDIR)/board.h
|
all: $(OBJDIR)/board.h
|
||||||
for target in $(TARGETS); do make $$target\_$(BOARD).bin; done
|
for target in $(TARGETS); do make $$target\_$(BOARD).bin; done
|
||||||
for target in $(TARGETS_WITH_ROM_VARS); do make TARGET_ROM_VARS=1 $$target\_$(BOARD).bin; done
|
for target in $(TARGETS_WITH_ROM_VARS); do make TARGET_ROM_VARS=1 $$target\_$(BOARD).bin; done
|
||||||
|
@ -131,5 +135,6 @@ all: $(OBJDIR)/board.h
|
||||||
allboards:
|
allboards:
|
||||||
for board in $(BOARDS); do make BOARD=$$board all; done
|
for board in $(BOARDS); do make BOARD=$$board all; done
|
||||||
|
|
||||||
|
.PHONY: all allboards
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ submodule:
|
||||||
if [ ! -d $(MC1322X) ] ; then echo "*** cannot find MC1322X directory $(MC1322X)" ; exit 2; fi
|
if [ ! -d $(MC1322X) ] ; then echo "*** cannot find MC1322X directory $(MC1322X)" ; exit 2; fi
|
||||||
$(MAKE)
|
$(MAKE)
|
||||||
|
|
||||||
|
.PHONY: submodule
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue