diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-04 13:03:33 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-04 13:03:33 +0000 |
commit | 9c859417864becc547ec147a736151ed733f6dcf (patch) | |
tree | 3bb156a729f4312e6fe546948797f0a2f126a042 /apps/plugins/Makefile | |
parent | 235b50b42d85c2723bd1df2636edab876fea37c1 (diff) | |
download | rockbox-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/Makefile | 9 |
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 | ||
10 | INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ | 10 | INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ |
11 | -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib | 11 | -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib |
12 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ | 12 | CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ |
13 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DPLUGIN | 13 | -DMEM=${MEMORYSIZE} -DPLUGIN |
14 | 14 | ||
15 | ifdef APPEXTRA | 15 | ifdef APPEXTRA |
16 | INCLUDES += -I$(APPSDIR)/$(APPEXTRA) | 16 | INCLUDES += -I$(APPSDIR)/$(APPEXTRA) |
@@ -20,7 +20,8 @@ LDS := plugin.lds | |||
20 | LINKFILE := $(OBJDIR)/pluginlink.lds | 20 | LINKFILE := $(OBJDIR)/pluginlink.lds |
21 | DEPFILE = $(OBJDIR)/dep-plugins | 21 | DEPFILE = $(OBJDIR)/dep-plugins |
22 | 22 | ||
23 | SRC := $(wildcard *.c) | 23 | SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) \ |
24 | $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) | ||
24 | ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) | 25 | ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) |
25 | SOURCES = $(SRC) | 26 | SOURCES = $(SRC) |
26 | ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) | 27 | ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) |