diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-05-27 17:36:39 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2010-05-27 17:36:39 +0000 |
commit | 0dcf93ed18fe972198011246f27f9137fa863dd4 (patch) | |
tree | b5f1251d4a55c264446ee82594bf7d8995f854f2 /rbutil/mkamsboot/Makefile | |
parent | fc3335584b973ffa52499436d1f2ac2b5cdc8bec (diff) | |
download | rockbox-0dcf93ed18fe972198011246f27f9137fa863dd4.tar.gz rockbox-0dcf93ed18fe972198011246f27f9137fa863dd4.zip |
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
Diffstat (limited to 'rbutil/mkamsboot/Makefile')
-rw-r--r-- | rbutil/mkamsboot/Makefile | 6 |
1 files 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 | |||
28 | 28 | ||
29 | ifdef RBARCH | 29 | ifdef RBARCH |
30 | CFLAGS += -arch $(RBARCH) | 30 | CFLAGS += -arch $(RBARCH) |
31 | OBJDIR = $(RBARCH)/ | 31 | OBJDIR = $(TARGET_DIR)build/$(RBARCH)/ |
32 | else | ||
33 | OBJDIR = $(TARGET_DIR)build/ | ||
32 | endif | 34 | endif |
33 | 35 | ||
34 | 36 | ||
@@ -52,7 +54,7 @@ $(OBJDIR)mkamsboot.o: dualboot.h dualboot.c mkamsboot.c mkamsboot.h | |||
52 | $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h | 54 | $(OBJDIR)main.o: dualboot.h dualboot.c main.c mkamsboot.h |
53 | 55 | ||
54 | $(OBJDIR)%.o: %.c | 56 | $(OBJDIR)%.o: %.c |
55 | @echo CC $< $ | 57 | @echo CC $< |
56 | $(SILENT)mkdir -p $(dir $@) | 58 | $(SILENT)mkdir -p $(dir $@) |
57 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< | 59 | $(SILENT)$(CC) $(CFLAGS) -c -o $@ $< |
58 | 60 | ||