1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Daniel Stenberg 2004-10-04 13:03:33 +00:00
parent 235b50b42d
commit 9c85941786
8 changed files with 187 additions and 23 deletions

View file

@ -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

30
apps/plugins/lib/SOURCES Normal file
View file

@ -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