summaryrefslogtreecommitdiff
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
parent235b50b42d85c2723bd1df2636edab876fea37c1 (diff)
downloadrockbox-9c859417864becc547ec147a736151ed733f6dcf.tar.gz
rockbox-9c859417864becc547ec147a736151ed733f6dcf.zip
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
-rw-r--r--apps/Makefile8
-rw-r--r--apps/SOURCES42
-rw-r--r--apps/plugins/Makefile9
-rw-r--r--apps/plugins/SOURCES41
-rw-r--r--apps/plugins/lib/Makefile4
-rw-r--r--apps/plugins/lib/SOURCES30
-rw-r--r--firmware/Makefile19
-rw-r--r--firmware/SOURCES59
8 files changed, 188 insertions, 24 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 912b5ed143..12d4c85fd9 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -18,21 +18,19 @@ ifdef DEBUG
18 CFLAGS += -g 18 CFLAGS += -g
19endif 19endif
20 20
21SRC := $(wildcard *.c) 21SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
22DIRS = . 22DIRS = .
23 23
24# set the ROMTARGET here 24# set the ROMTARGET here
25ROMTARGET := $(ARCHOSROM) 25ROMTARGET := $(ARCHOSROM)
26 26
27ifdef APPEXTRA 27ifdef APPEXTRA
28 SRC += $(wildcard $(APPEXTRA)/*.c)
29 DIRS += $(APPEXTRA) 28 DIRS += $(APPEXTRA)
30 INCLUDES += -I$(APPEXTRA) 29 INCLUDES += -I$(APPEXTRA)
31endif 30endif
32 31
33CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 32CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \
34-fomit-frame-pointer -fschedule-insns $(INCLUDES) $(TARGET) $(DEFINES) \ 33 -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
35-DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
36 34
37OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) 35OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o)
38SOURCES = $(SRC) 36SOURCES = $(SRC)
diff --git a/apps/SOURCES b/apps/SOURCES
new file mode 100644
index 0000000000..9cc336c4ef
--- /dev/null
+++ b/apps/SOURCES
@@ -0,0 +1,42 @@
1alarm_menu.c
2bookmark.c
3credits.c
4debug_menu.c
5filetypes.c
6language.c
7main.c
8main_menu.c
9menu.c
10misc.c
11onplay.c
12playlist.c
13playlist_menu.c
14playlist_viewer.c
15plugin.c
16screens.c
17settings.c
18settings_menu.c
19sleeptimer.c
20sound_menu.c
21status.c
22talk.c
23tree.c
24wps-display.c
25wps.c
26#ifdef HAVE_LCD_CHARCELLS
27player/icons.c
28player/keyboard.c
29#endif
30#ifdef HAVE_LCD_BITMAP
31recorder/bmp.c
32recorder/icons.c
33recorder/keyboard.c
34recorder/peakmeter.c
35recorder/widgets.c
36#endif
37#ifdef CONFIG_TUNER
38recorder/radio.c
39#endif
40#ifdef HAVE_RECORDING
41recorder/recording.c
42#endif
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 @@
8# 8#
9 9
10INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \ 10INCLUDES = -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/common \
11-I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib 11 -I$(FIRMDIR)/drivers -I$(APPSDIR) -Ilib
12CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
13$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} -DPLUGIN 13 -DMEM=${MEMORYSIZE} -DPLUGIN
14 14
15ifdef APPEXTRA 15ifdef APPEXTRA
16 INCLUDES += -I$(APPSDIR)/$(APPEXTRA) 16 INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
@@ -20,7 +20,8 @@ LDS := plugin.lds
20LINKFILE := $(OBJDIR)/pluginlink.lds 20LINKFILE := $(OBJDIR)/pluginlink.lds
21DEPFILE = $(OBJDIR)/dep-plugins 21DEPFILE = $(OBJDIR)/dep-plugins
22 22
23SRC := $(wildcard *.c) 23SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) \
24 $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
24ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock) 25ROCKS := $(SRC:%.c=$(OBJDIR)/%.rock)
25SOURCES = $(SRC) 26SOURCES = $(SRC)
26ELFS := $(SRC:%.c=$(OBJDIR)/%.elf) 27ELFS := $(SRC:%.c=$(OBJDIR)/%.elf)
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
new file mode 100644
index 0000000000..c5923ae843
--- /dev/null
+++ b/apps/plugins/SOURCES
@@ -0,0 +1,41 @@
1battery_test.c
2bounce.c
3calculator.c
4calendar.c
5chessclock.c
6chip8.c
7clock.c
8cube.c
9euroconverter.c
10favorites.c
11firmware_flash.c
12flipit.c
13grayscale.c
14helloworld.c
15jackpot.c
16jpeg.c
17mandelbrot.c
18metronome.c
19minesweeper.c
20mosaique.c
21nim.c
22oscillograph.c
23pong.c
24rockblox.c
25rockbox_flash.c
26search.c
27sliding_puzzle.c
28snake.c
29snake2.c
30snow.c
31sokoban.c
32solitaire.c
33sort.c
34splitedit.c
35star.c
36stopwatch.c
37vbrfix.c
38video.c
39viewer.c
40vu_meter.c
41wormlet.c
diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile
index 2cc7974770..562d1fc931 100644
--- a/apps/plugins/lib/Makefile
+++ b/apps/plugins/lib/Makefile
@@ -17,7 +17,7 @@ ifdef APPEXTRA
17INCLUDES += -I$(APPSDIR)/$(APPEXTRA) 17INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
18endif 18endif
19 19
20CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 20CFLAGS = $(GCCOPTS) \
21$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} 21$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
22 22
23ifdef DEBUG 23ifdef DEBUG
@@ -26,7 +26,7 @@ else
26CFLAGS += -fomit-frame-pointer -fschedule-insns 26CFLAGS += -fomit-frame-pointer -fschedule-insns
27endif 27endif
28 28
29SRC := $(wildcard *.c) 29SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
30SOURCES = $(SRC) 30SOURCES = $(SRC)
31OBJS := $(SRC:%.c=$(OBJDIR)/%.o) 31OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
32DEPFILE = $(OBJDIR)/dep-pluginlib 32DEPFILE = $(OBJDIR)/dep-pluginlib
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES
new file mode 100644
index 0000000000..31467cca50
--- /dev/null
+++ b/apps/plugins/lib/SOURCES
@@ -0,0 +1,30 @@
1configfile.c
2gray_black_display.c
3gray_blockfuncs.c
4gray_clear_display.c
5gray_core.c
6gray_deferred_update.c
7gray_drawbitmap.c
8gray_drawgraymap.c
9gray_drawline.c
10gray_drawpixel.c
11gray_drawrect.c
12gray_fillrect.c
13gray_getstringsize.c
14gray_horline.c
15gray_pixelfuncs.c
16gray_position_display.c
17gray_putsxy.c
18gray_screendump.c
19gray_scroll_down.c
20gray_scroll_down8.c
21gray_scroll_left.c
22gray_scroll_right.c
23gray_scroll_up.c
24gray_scroll_up8.c
25gray_set_background.c
26gray_set_drawinfo.c
27gray_set_drawmode.c
28gray_set_foreground.c
29gray_setfont.c
30gray_verline.c
diff --git a/firmware/Makefile b/firmware/Makefile
index bb4a30f101..e3364d4387 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -9,19 +9,12 @@
9 9
10INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers 10INCLUDES=-Iinclude -I$(FIRMDIR) -Iexport -Icommon -Idrivers
11 11
12CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 12CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE}
13$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} 13
14 14SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) $(TARGET) $(DEFINES) -E -P -include "config.h" - )
15ifdef DEBUG 15SOURCES = $(SRC)
16CFLAGS += -g -DDEBUG 16OBJS2 := $(patsubst %.c, $(OBJDIR)/%.o, $(SRC)) $(OBJDIR)/sysfont.o
17else 17OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2))
18CFLAGS += -fomit-frame-pointer -fschedule-insns
19endif
20
21SRC := $(wildcard drivers/*.c common/*.c *.c)
22SRC_S := $(wildcard drivers/*.S common/*.S *.S)
23SOURCES = $(SRC) $(SRC_S)
24OBJS := $(SRC:%.c=$(OBJDIR)/%.o) $(SRC_S:%.S=$(OBJDIR)/%.o) $(OBJDIR)/sysfont.o
25DIRS:=. drivers common 18DIRS:=. drivers common
26OUTPUT = $(OBJDIR)/librockbox.a 19OUTPUT = $(OBJDIR)/librockbox.a
27DEPFILE = $(OBJDIR)/dep-firmware 20DEPFILE = $(OBJDIR)/dep-firmware
diff --git a/firmware/SOURCES b/firmware/SOURCES
new file mode 100644
index 0000000000..04fa25de34
--- /dev/null
+++ b/firmware/SOURCES
@@ -0,0 +1,59 @@
1backlight.c
2buffer.c
3common/atoi.c
4common/ctype.c
5common/dir.c
6common/disk.c
7common/errno.c
8common/file.c
9common/memcmp.c
10common/qsort.c
11common/random.c
12common/sprintf.c
13common/strcasecmp.c
14common/strcat.c
15common/strchr.c
16common/strcmp.c
17common/strcpy.c
18common/strlen.c
19common/strncmp.c
20common/strncpy.c
21common/strrchr.c
22common/strtok.c
23common/timefuncs.c
24debug.c
25drivers/adc.c
26drivers/ata.c
27drivers/ata_mmc.c
28drivers/button.c
29drivers/dac.c
30drivers/fat.c
31drivers/fmradio.c
32drivers/i2c.c
33drivers/lcd-player-charset.c
34drivers/lcd-player.c
35drivers/lcd-recorder.c
36drivers/led.c
37drivers/mas.c
38drivers/power.c
39drivers/rtc.c
40drivers/serial.c
41font.c
42hwcompat.c
43id3.c
44kernel.c
45mp3_playback.c
46mp3data.c
47mpeg.c
48panic.c
49powermgmt.c
50rolo.c
51system.c
52thread.c
53usb.c
54bitswap.S
55common/memcpy.S
56common/memset.S
57crt0.S
58descramble.S
59drivers/lcd.S