From 0dcf93ed18fe972198011246f27f9137fa863dd4 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Thu, 27 May 2010 17:36:39 +0000 Subject: Use build dir and respect TARGET_DIR when building mkamsboot. libmkamsboot still did put files into its source folder when building for Rockbox Utility out-of-tree. As with the other libraries use the specified build folder. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26335 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/mkamsboot/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rbutil/mkamsboot/Makefile b/rbutil/mkamsboot/Makefile index 8a9a4d3852..0a9ab3b4e7 100644 --- a/rbutil/mkamsboot/Makefile +++ b/rbutil/mkamsboot/Makefile @@ -28,7 +28,9 @@ endif ifdef RBARCH CFLAGS += -arch $(RBARCH) -OBJDIR = $(RBARCH)/ +OBJDIR = $(TARGET_DIR)build/$(RBARCH)/ +else +OBJDIR = $(TARGET_DIR)build/ endif @@ -52,7 +54,7 @@ $(OBJDIR)mkamsboot.o: dualboot.h dualboot.c mkamsboot.c mkamsboot.h $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h $(OBJDIR)%.o: %.c - @echo CC $< $ + @echo CC $< $(SILENT)mkdir -p $(dir $@) $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< -- cgit v1.2.3