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/lib/Makefile | 4 ++-- apps/plugins/lib/SOURCES | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 apps/plugins/lib/SOURCES (limited to 'apps/plugins/lib') diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile index 2cc7974..562d1fc 100644 --- a/apps/plugins/lib/Makefile +++ b/apps/plugins/lib/Makefile @@ -17,7 +17,7 @@ ifdef APPEXTRA INCLUDES += -I$(APPSDIR)/$(APPEXTRA) endif -CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ +CFLAGS = $(GCCOPTS) \ $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} ifdef DEBUG @@ -26,7 +26,7 @@ else CFLAGS += -fomit-frame-pointer -fschedule-insns endif -SRC := $(wildcard *.c) +SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - ) SOURCES = $(SRC) OBJS := $(SRC:%.c=$(OBJDIR)/%.o) DEPFILE = $(OBJDIR)/dep-pluginlib diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES new file mode 100644 index 0000000..31467cc --- /dev/null +++ b/apps/plugins/lib/SOURCES @@ -0,0 +1,30 @@ +configfile.c +gray_black_display.c +gray_blockfuncs.c +gray_clear_display.c +gray_core.c +gray_deferred_update.c +gray_drawbitmap.c +gray_drawgraymap.c +gray_drawline.c +gray_drawpixel.c +gray_drawrect.c +gray_fillrect.c +gray_getstringsize.c +gray_horline.c +gray_pixelfuncs.c +gray_position_display.c +gray_putsxy.c +gray_screendump.c +gray_scroll_down.c +gray_scroll_down8.c +gray_scroll_left.c +gray_scroll_right.c +gray_scroll_up.c +gray_scroll_up8.c +gray_set_background.c +gray_set_drawinfo.c +gray_set_drawmode.c +gray_set_foreground.c +gray_setfont.c +gray_verline.c -- cgit v1.1