ifndef TARGET
  TARGET=host
endif
export TARGET

SUBDIRS=library host board bios   # Listed in 'likely precedence' order.. :(

.PHONY:	$(SUBDIRS) all clean

all:	$(SUBDIRS)

clean:	$(SUBDIRS)
	@rm -f *~	

realclean:	clean $(SUBDIRS)

$(SUBDIRS):
	$(MAKE) -C $@ $(MAKECMDGOALS)
