mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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
This commit is contained in:
parent
fc3335584b
commit
0dcf93ed18
1 changed files with 4 additions and 2 deletions
|
|
@ -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 $@ $<
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue