# -*- makefile -*-
#
# utils/build/build_Makefile: make all blob architectures with a single
#   makefile
#
# Copyright (C) 2001, Erik Mouw <J.A.K.Mouw@its.tudelft.nl>
#
# $Id: build_Makefile,v 1.2 2001/08/29 21:08:51 erikm Exp $
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#

archs		= assabet brutus creditlart lart nesa pleb shannon
debug-archs	= $(foreach a, $(archs), $(a)-debug)
all-archs	= $(archs) $(debug-archs)

all-archs-clean	= $(foreach a, $(all-archs), $(a)-clean)

.PHONY: all clean $(all-archs) $(all-archs-clean)

all: $(all-archs)

clean: $(all-archs-clean)

$(all-archs):
	$(MAKE) -C $@

$(all-archs-clean):
	$(MAKE) -C $(subst -clean,,$@) clean
