diff -Naurp arcload-0.5.orig/Makefile arcload-0.5/Makefile --- arcload-0.5.orig/Makefile 2006-01-17 03:53:29.000000000 -0500 +++ arcload-0.5/Makefile 2009-03-01 20:18:14.699758276 -0500 @@ -6,9 +6,6 @@ # Default MODE MODE ?= M64 -CC=mips-linux-gcc -LD=mips-linux-ld - BUILD_DIRS=\ arclib \ arcgrub \ @@ -16,10 +13,25 @@ BUILD_DIRS=\ TOOL_DIRS=\ ecoff -all clean: +bootloader: + for i in $(BUILD_DIRS); do \ + CC=${CC} LD=${LD} MODE=${MODE} $(MAKE) -C $$i all; \ + done + +tools: for i in $(TOOL_DIRS); do \ - MODE=${MODE} $(MAKE) -C $$i $@; \ + $(MAKE) -C $$i all; \ done + +bootloader_clean: for i in $(BUILD_DIRS); do \ - CC=${CC} LD=${LD} MODE=${MODE} $(MAKE) -C $$i $@; \ + CC=${CC} LD=${LD} MODE=${MODE} $(MAKE) -C $$i clean; \ + done + +tools_clean: + for i in $(TOOL_DIRS); do \ + CC=${CC} LD=${LD} $(MAKE) -C $$i clean; \ done + +clean: tools_clean bootloader_clean +all: tools bootloader