diff options
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r-- | apps/plugins/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 3e56510f53..6c3917c0cb 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile | |||
@@ -34,7 +34,13 @@ OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | |||
34 | DEFS := $(SRC:%.c=$(OBJDIR)/%.def) | 34 | DEFS := $(SRC:%.c=$(OBJDIR)/%.def) |
35 | DIRS = . | 35 | DIRS = . |
36 | 36 | ||
37 | all: $(OBJDIR)/libplugin.a $(ROCKS) $(DEPFILE) | 37 | #for any recorder and iRiver model |
38 | ifneq (,$(strip $(foreach tgt,RECORDER IRIVER,$(findstring $(tgt),$(TARGET))))) | ||
39 | SUBDIRS += rockboy | ||
40 | endif | ||
41 | |||
42 | .PHONY: $(SUBDIRS) | ||
43 | all: $(OBJDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) | ||
38 | 44 | ||
39 | ifndef SIMVER | 45 | ifndef SIMVER |
40 | $(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a | 46 | $(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a |
@@ -95,10 +101,16 @@ $(LINKFILE): $(LDS) | |||
95 | @echo "build $@" | 101 | @echo "build $@" |
96 | @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ | 102 | @cat $< | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - >$@ |
97 | 103 | ||
104 | $(SUBDIRS): | ||
105 | @echo "MAKE in $@" | ||
106 | @mkdir -p $(OBJDIR)/$@ | ||
107 | @$(MAKE) -C $@ TARGET=$(TARGET) DEBUG=$(DEBUG) OUTDIR=$(OBJDIR) OBJDIR=$(OBJDIR)/$@ VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" MEM=${MEMORYSIZE} | ||
108 | |||
98 | clean: | 109 | clean: |
99 | @echo "cleaning plugins" | 110 | @echo "cleaning plugins" |
100 | @rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock $(DEPFILE) $(ELFS) \ | 111 | @rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock $(DEPFILE) $(ELFS) \ |
101 | $(OBJS) $(DEFS) | 112 | $(OBJS) $(DEFS) |
102 | @$(MAKE) -C lib clean | 113 | @$(MAKE) -C lib clean |
114 | @$(MAKE) -C rockboy clean | ||
103 | 115 | ||
104 | -include $(DEPFILE) | 116 | -include $(DEPFILE) |