summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-06 15:42:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-06 15:42:06 +0000
commit2d493de67144b2df78eafa13090fbdd790a99771 (patch)
treefab9c712cc85dbf615ab05f846c28ed11569ed72 /apps
parent8ebff817a29d8e3fed2602f29fc649d2a3261ebc (diff)
downloadrockbox-2d493de67144b2df78eafa13090fbdd790a99771.tar.gz
rockbox-2d493de67144b2df78eafa13090fbdd790a99771.zip
Oops. I didn't mean to commit this just yet, this is work in progress.
Reverting this until tested further. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6153 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/Makefile23
1 files changed, 9 insertions, 14 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index c19843d979..7d8f0c378a 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -1,3 +1,6 @@
1? Makefile.tmpl
2? lib/Makefile.tmpl
3? lib/dep-pluginlib
1# __________ __ ___. 4# __________ __ ___.
2# Open \______ \ ____ ____ | | _\_ |__ _______ ___ 5# Open \______ \ ____ ____ | | _\_ |__ _______ ___
3# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / 6# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
@@ -24,9 +27,8 @@ LDS := plugin.lds
24LINKFILE := $(OBJDIR)/pluginlink.lds 27LINKFILE := $(OBJDIR)/pluginlink.lds
25DEPFILE = $(OBJDIR)/dep-plugins 28DEPFILE = $(OBJDIR)/dep-plugins
26 29
27# This sets up 'SRC' based on the files mentioned in SOURCES 30SRC := $(shell cat SOURCES | gcc -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
28include $(TOOLSDIR)/makesrc.inc 31 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - )
29
30ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) 32ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock)
31SOURCES = $(SRC) 33SOURCES = $(SRC)
32ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) 34ELFS := $(SRC:%.c=$(OBJDIR)/%.elf)
@@ -35,8 +37,6 @@ OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
35DEFS := $(SRC:%.c=$(OBJDIR)/%.def) 37DEFS := $(SRC:%.c=$(OBJDIR)/%.def)
36DIRS = . 38DIRS = .
37 39
38ELFDEP = $(OBJDIR)/dep-elf
39
40#for any recorder and iRiver model 40#for any recorder and iRiver model
41ifneq (,$(strip $(foreach tgt,RECORDER IRIVER,$(findstring $(tgt),$(TARGET))))) 41ifneq (,$(strip $(foreach tgt,RECORDER IRIVER,$(findstring $(tgt),$(TARGET)))))
42 SUBDIRS += rockboy 42 SUBDIRS += rockboy
@@ -46,14 +46,9 @@ endif
46all: $(OBJDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) 46all: $(OBJDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE)
47 47
48ifndef SIMVER 48ifndef SIMVER
49 49$(OBJDIR)/%.elf: $(OBJDIR)/%.o $(LINKFILE) $(OBJDIR)/libplugin.a
50ELFIT=@echo "LD $@"; \ 50 @echo "LD $@"
51 $(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(OBJDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map 51 @$(CC) $(GCCOPTS) -O -nostdlib -o $@ $< -L$(OBJDIR) $(CODECLIBS) -lplugin -lgcc -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/$*.map
52
53$(ELFDEP): $(SOURCES)
54 perl elfdep.pl > $(ELFDEP)
55
56-include $(ELFDEP)
57 52
58$(OBJDIR)/%.rock : $(OBJDIR)/%.elf 53$(OBJDIR)/%.rock : $(OBJDIR)/%.elf
59 @echo "OBJCOPY $<" 54 @echo "OBJCOPY $<"
@@ -117,7 +112,7 @@ $(SUBDIRS):
117clean: 112clean:
118 @echo "cleaning plugins" 113 @echo "cleaning plugins"
119 @rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock $(DEPFILE) $(ELFS) \ 114 @rm -f $(ROCKS) $(LINKFILE) $(OBJDIR)/*.rock $(DEPFILE) $(ELFS) \
120 $(OBJS) $(DEFS) $(ELFDEP) 115 $(OBJS) $(DEFS)
121 @$(MAKE) -C lib clean 116 @$(MAKE) -C lib clean
122 @$(MAKE) -C rockboy clean 117 @$(MAKE) -C rockboy clean
123 118