diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-10-30 21:04:07 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-10-30 21:04:07 +0000 |
commit | 8ed7a590ad563cd09edc63bf8bbc7323ed9ed821 (patch) | |
tree | 20743920d6f4436de7251a2d7d2d7d61dc50f25e /rbutil/mktccboot | |
parent | aae798d237c6cd614a405d8d1d649bd97556c0a5 (diff) | |
download | rockbox-8ed7a590ad563cd09edc63bf8bbc7323ed9ed821.tar.gz rockbox-8ed7a590ad563cd09edc63bf8bbc7323ed9ed821.zip |
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
Diffstat (limited to 'rbutil/mktccboot')
-rw-r--r-- | rbutil/mktccboot/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rbutil/mktccboot/Makefile b/rbutil/mktccboot/Makefile index 3f23e044d6..cd8a539648 100644 --- a/rbutil/mktccboot/Makefile +++ b/rbutil/mktccboot/Makefile @@ -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 $< |