summaryrefslogtreecommitdiff
path: root/apps/plugins/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-04 13:03:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-04 13:03:33 +0000
commit9c859417864becc547ec147a736151ed733f6dcf (patch)
tree3bb156a729f4312e6fe546948797f0a2f126a042 /apps/plugins/Makefile
parent235b50b42d85c2723bd1df2636edab876fea37c1 (diff)
downloadrockbox-9c859417864becc547ec147a736151ed733f6dcf.tar.gz
rockbox-9c859417864becc547ec147a736151ed733f6dcf.zip
new SOURCES file that specifies which files to build in each dir, use
config.h preprocessor symbols to make conditionals use the GCCOPTS now specified in the root Makefile by configure git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5158 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/Makefile')
-rw-r--r--apps/plugins/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index caa2775e12..5071f07668 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -8,9 +8,9 @@
8# 8#
9 9
10INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ 10INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \
11-I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib 11 -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib
12CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
13$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DPLUGIN 13 -DMEM=${MEMORYSIZE} -DPLUGIN
14 14
15ifdef APPEXTRA 15ifdef APPEXTRA
16 INCLUDES += -I$(APPSDIR)/$(APPEXTRA) 16 INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
@@ -20,7 +20,8 @@ LDS := plugin.lds
20LINKFILE := $(OBJDIR)/pluginlink.lds 20LINKFILE := $(OBJDIR)/pluginlink.lds
21DEPFILE = $(OBJDIR)/dep-plugins 21DEPFILE = $(OBJDIR)/dep-plugins
22 22
23SRC := $(wildcard *.c) 23SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) \
24 $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
24ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) 25ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock)
25SOURCES = $(SRC) 26SOURCES = $(SRC)
26ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) 27ELFS := $(SRC:%.c=$(OBJDIR)/%.elf)