From 9c859417864becc547ec147a736151ed733f6dcf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 4 Oct 2004 13:03:33 +0000 Subject: 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 --- apps/plugins/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'apps/plugins/Makefile') 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 @@ # 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) -- cgit v1.2.3