diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-09-06 07:05:12 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-09-06 07:05:12 +0000 |
commit | 678090a2e7e694fa72fb9a4d4c7532e2699e2880 (patch) | |
tree | f60778f49cc620ab64b8cd4e9abdafa6f10eafe4 /apps/plugins | |
parent | 0dfc2c9dcd07adfc874e297e549d146035fc0292 (diff) |
rombox support: building and zip
general makefile: less output
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5043 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/Makefile | 22 | ||||
-rw-r--r-- | apps/plugins/lib/Makefile | 15 |
2 files changed, 23 insertions, 14 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index d86cbf5263..4790d1e1e5 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -40,25 +40,31 @@ no_configure: endif $(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a - $(CC) -O -nostdlib -o $@ $< -L$(OBJDIR) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map + @echo "LD $@" + @$(CC) -O -nostdlib -o $@ $< -L$(OBJDIR) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map $(OBJDIR)/%.rock : $(OBJDIR)/%.elf - $(OC) -O binary $< $@ + @echo "OBJCOPY $<" + @$(OC) -O binary $< $@ $(OBJDIR)/%.o: %.c ../plugin.h Makefile - $(CC) $(CFLAGS) -c $< -o $@ + @echo "CC $<" + @$(CC) $(CFLAGS) -c $< -o $@ all: $(OBJDIR)/libplugin.a $(ROCKS) - echo "done" + @echo "plugins done" $(OBJDIR)/libplugin.a: - $(MAKE) -C lib TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEM} + @echo "MAKE in lib" + @$(MAKE) -C lib TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEM} # MEM should be passed on to this makefile with the chosen memory size given # in number of MB $(LINKFILE): $(LDS) - $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -x c -E -P $< >$@ + @echo "build $@" + @$(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -x c -E -P $< >$@ clean: - -rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock - $(MAKE) -C lib clean + @echo "cleaning plugins" + @-rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock + @$(MAKE) -C lib clean diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile index 929ee98763..7ff79b5342 100644 --- a/apps/plugins/lib/Makefile +++ b/apps/plugins/lib/Makefile @@ -62,25 +62,28 @@ no_configure: endif all: $(OUTPUT) + @echo "lib done" $(OUTPUT): $(OBJS) - $(AR) ruv $@ $+ + @echo "AR $@" + @$(AR) ruv $@ $+ >/dev/null $(OBJDIR)/%.o: %.c @mkdir -p `dirname $@` - $(CC) $(CFLAGS) -c $< -o $@ + @echo "CC $<" + @$(CC) $(CFLAGS) -c $< -o $@ tags: @$(SHELL) -c 'for d in $(DIRS); do { etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; }; done' clean: - rm -f $(OBJS) $(OUTPUT) - rm -rf $(OBJDIR)/$(DEPS) + @echo "cleaning lib" + @rm -f $(OBJS) $(OUTPUT) + @rm -rf $(OBJDIR)/$(DEPS) $(OBJDIR)/$(DEPS)/%.d: %.c @$(SHELL) -c 'for d in $(DEPDIRS); do { if [ ! -d $(OBJDIR)/$$d ]; then mkdir $(OBJDIR)/$$d; fi; }; done' - @echo "Updating dependencies for $<" - @$(SHELL) -ec '$(CC) -MM $(CFLAGS) $< \ + @$(SHELL) -ec '$(CC) -MM $(CFLAGS) $< 2>/dev/null \ |sed '\''s|\($*\)\.o[ :]*|$(OBJDIR)/\1.o $(<:%.c=%.d) : |g'\'' > $@; \ [ -s $@ ] || rm -f $@' |