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.zip
rockbox-9c859417864becc547ec147a736151ed733f6dcf.tar.gz
rockbox-9c859417864becc547ec147a736151ed733f6dcf.tar.bz2
rockbox-9c859417864becc547ec147a736151ed733f6dcf.tar.xz
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 caa2775..5071f07 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -8,9 +8,9 @@
#
INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \
--I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib
-CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \
-$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DPLUGIN
+ -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib
+CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
+ -DMEM=${MEMORYSIZE} -DPLUGIN
ifdef APPEXTRA
INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
@@ -20,7 +20,8 @@ LDS := plugin.lds
LINKFILE := $(OBJDIR)/pluginlink.lds
DEPFILE = $(OBJDIR)/dep-plugins
-SRC := $(wildcard *.c)
+SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) \
+ $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock)
SOURCES = $(SRC)
ELFS := $(SRC:%.c=$(OBJDIR)/%.elf)