Fix mktccboot to make Rockbox Utility compile again.

- when building out-of-tree don't build objects in the tools folder.
- take out-of-tree building into account when looking for objects.
- don't lie to the user -- linking is not compiling.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23423 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2009-10-30 21:04:07 +00:00
parent aae798d237
commit 8ed7a590ad

View file

@ -45,16 +45,17 @@ OUT = $(TARGET_DIR)build$(RBARCH)
all: $(OUTPUT)
$(TOOLSDIR)/telechips.o: $(TOOLSDIR)/telechips.[ch]
make -C $(TOOLSDIR) $(TARGET_DIR)telechips.o
$(OUT)/telechips.o: $(TOOLSDIR)/telechips.[ch]
@echo CC $<
$(SILENT)$(CC) $(CFLAGS) -c -o $(OUT)/telechips.o $(TOOLSDIR)/telechips.c
$(OUT)/mktccboot.o: mktccboot.[ch] $(TOOLSDIR)/telechips.o
$(OUT)/mktccboot.o: mktccboot.[ch] $(OUT)/telechips.o
@echo CC $<
$(SILENT)$(CC) $(CFLAGS) -c -o $(OUT)/mktccboot.o -W -Wall mktccboot.c -DVERSION=\"$(APPVERSION)\"
$(OUTPUT): $(OUT) $(OUT)/mktccboot.o
@echo CC $<
$(SILENT)$(CC) $(CFLAGS) -o $(OUTPUT) $(OUT)/mktccboot.o $(TOOLSDIR)/telechips.o
@echo LD $@
$(SILENT)$(CC) $(CFLAGS) -o $(OUTPUT) $(OUT)/mktccboot.o $(OUT)/telechips.o
$(OUT)/libmktccboot.o: $(OUT)/mktccboot.o
@echo CC $<