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):
[EMAIL PROTECTED] -d $@ ] || mkdir -p $@
[EMAIL PROTECTED](MAKETARGET)
Makefile : ;
%.mk :: ;
% :: $(OBJDIR) ; :
.PHONY: clean
clean:
rm -rf $(OBJDIR)
thanks,
galen
--
Galen Seitz
[EMAIL PROTECTED]
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make