[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem building multiple targets
From: |
Galen Seitz |
Subject: |
problem building multiple targets |
Date: |
Wed, 12 Nov 2008 11:43:23 -0800 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20081001) |
Hi,
I'm trying to follow Paul's guide for building multiple targets. In
my case I'm using a cross compiler to build for multiple target
processors. Everything seems to work as expected when I do 'make all'
or 'make clean', but when do just 'make' only the first architecture
gets built. What am I doing wrong? I'm running version 3.81. Here
is my target.mk file:
.SUFFIXES:
ifndef _ARCH
# _ARCH := $(shell print_arch)
_ARCH := 2801 28015
export _ARCH
endif
OBJDIR := $(_ARCH:%=_%)
MAKETARGET = $(MAKE) --no-print-directory -C $@ -f $(CURDIR)/Makefile \
SRCDIR=$(CURDIR) DEVICE=$(@:_%=%) $(MAKECMDGOALS)
.PHONY: $(OBJDIR)
$(OBJDIR):
address@hidden -d $@ ] || mkdir -p $@
address@hidden(MAKETARGET)
Makefile : ;
%.mk :: ;
% :: $(OBJDIR) ; :
.PHONY: clean
clean:
rm -rf $(OBJDIR)
thanks,
galen
--
Galen Seitz
address@hidden
- problem building multiple targets,
Galen Seitz <=