summaryrefslogtreecommitdiffstats
path: root/rbutil/mkmpioboot/Makefile
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-12-19 18:06:38 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-12-19 18:06:38 +0000
commita6d7a67080ea360b6dd1ba4a8f32234f076125cf (patch)
tree5ec1149ef8d4bdc4336ddaad9c315eb59eac55f1 /rbutil/mkmpioboot/Makefile
parent4e6d356d6d006117b20b82134da9420b11545c80 (diff)
downloadrockbox-a6d7a67080ea360b6dd1ba4a8f32234f076125cf.tar.gz
rockbox-a6d7a67080ea360b6dd1ba4a8f32234f076125cf.tar.bz2
rockbox-a6d7a67080ea360b6dd1ba4a8f32234f076125cf.zip
Respect TARGET_DIR when building.
When building out-of-tree (which is the case when building for Rockbox Utility) no objects should get placed in the source folder. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28857 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/mkmpioboot/Makefile')
-rw-r--r--rbutil/mkmpioboot/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/rbutil/mkmpioboot/Makefile b/rbutil/mkmpioboot/Makefile
index 322c78fc3e..7ba7c41a1f 100644
--- a/rbutil/mkmpioboot/Makefile
+++ b/rbutil/mkmpioboot/Makefile
@@ -28,7 +28,9 @@ endif
ifdef RBARCH
CFLAGS += -arch $(RBARCH)
-OBJDIR = $(RBARCH)/
+OBJDIR = $(TARGET_DIR)build/$(RBARCH)/
+else
+OBJDIR = $(TARGET_DIR)build/
endif
@@ -74,7 +76,7 @@ libmkmpioboot-universal: $(TARGET_DIR)libmkmpiobooti386.a $(TARGET_DIR)libmkmpio
$(SILENT)lipo -create $(TARGET_DIR)libmkmpiobootppc.a $(TARGET_DIR)libmkmpiobooti386.a -output $(TARGET_DIR)libmkmpioboot.a
clean:
- rm -f $(OBJS) $(OUTPUT) libmkmpioboot.o $(TARGET_DIR)libmkmpioboot*.a mkmpioboot.dmg
+ rm -f $(OBJS) $(OUTPUT) $(TARGET_DIR)libmkmpioboot*.a mkmpioboot.dmg
rm -rf mkmpioboot-* i386 ppc $(OBJDIR)
mkmpioboot-i386: