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/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apps/Makefile') diff --git a/apps/Makefile b/apps/Makefile index 912b5ed..12d4c85 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -18,21 +18,19 @@ ifdef DEBUG CFLAGS += -g endif -SRC := $(wildcard *.c) +SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) DIRS = . # set the ROMTARGET here ROMTARGET := $(ARCHOSROM) ifdef APPEXTRA - SRC += $(wildcard $(APPEXTRA)/*.c) DIRS += $(APPEXTRA) INCLUDES += -I$(APPEXTRA) endif -CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ --fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) \ --DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} +CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \ + -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) SOURCES = $(SRC) -- cgit v1.1