diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-12 13:33:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-12 13:33:04 +0000 |
commit | ca710622210c6832ca8402472c1023538aff41a8 (patch) | |
tree | 8112f441cc08da4f20b1ece431dc58aca4521c3f /apps/Makefile | |
parent | da6d7e9b44bce4007ba0d1c8e0d44e5a900ac75e (diff) | |
download | rockbox-ca710622210c6832ca8402472c1023538aff41a8.tar.gz rockbox-ca710622210c6832ca8402472c1023538aff41a8.zip |
Rockbox on Neo support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4137 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/Makefile')
-rw-r--r-- | apps/Makefile | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/apps/Makefile b/apps/Makefile index ee406e208a..bb7625b1c2 100644 --- a/apps/Makefile +++ b/apps/Makefile | |||
@@ -46,20 +46,30 @@ endif | |||
46 | SRC := $(wildcard *.c) | 46 | SRC := $(wildcard *.c) |
47 | 47 | ||
48 | ifeq ($(TARGET), -DARCHOS_FMRECORDER) | 48 | ifeq ($(TARGET), -DARCHOS_FMRECORDER) |
49 | SCRAMBLE_OPT = -fm | 49 | TOOL_OPT = -fm |
50 | endif | 50 | endif |
51 | ifeq ($(TARGET), -DARCHOS_RECORDERV2) | 51 | ifeq ($(TARGET), -DARCHOS_RECORDERV2) |
52 | SCRAMBLE_OPT = -v2 | 52 | TOOL_OPT = -v2 |
53 | endif | 53 | endif |
54 | 54 | ||
55 | ifeq ($(ANYREC), RECORDER) | 55 | ifeq ($(ANYREC), RECORDER) |
56 | SRC += $(wildcard recorder/*.c) | 56 | SRC += $(wildcard recorder/*.c) |
57 | CFLAGS += -Irecorder | 57 | CFLAGS += -Irecorder |
58 | OUTNAME = ajbrec.ajz | 58 | OUTNAME = ajbrec.ajz |
59 | TOOL = scramble | ||
59 | else | 60 | else |
61 | ifeq ($(TARGET), -DARCHOS_PLAYER) | ||
60 | SRC += $(wildcard player/*.c) | 62 | SRC += $(wildcard player/*.c) |
61 | CFLAGS += -Iplayer | 63 | CFLAGS += -Iplayer |
62 | OUTNAME = archos.mod | 64 | OUTNAME = archos.mod |
65 | TOOL = scramble | ||
66 | else | ||
67 | # some kind of Neo | ||
68 | SRC += $(wildcard neo/*.c) | ||
69 | CFLAGS += -Ineo | ||
70 | OUTNAME = Rockbox.bin | ||
71 | TOOL = mkneofile | ||
72 | endif | ||
63 | endif | 73 | endif |
64 | 74 | ||
65 | OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) | 75 | OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) |
@@ -90,7 +100,7 @@ $(OBJDIR)/librockbox.a: | |||
90 | # MEM should be passed on to this makefile with the chosen memory size given | 100 | # MEM should be passed on to this makefile with the chosen memory size given |
91 | # in number of MB | 101 | # in number of MB |
92 | $(LINKFILE): $(LDS) | 102 | $(LINKFILE): $(LDS) |
93 | cat $< | $(CC) -DMEMORYSIZE=$(MEM) $(DEFINES) -E -P - >$@ | 103 | $(CC) -DMEMORYSIZE=$(MEM) $(INCLUDES) $(TARGET) $(DEFINES) -E -P - < $< >$@ |
94 | 104 | ||
95 | $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a | 105 | $(OBJDIR)/rockbox.elf : $(OBJS) $(LINKFILE) $(OBJDIR)/librockbox.a |
96 | $(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map | 106 | $(CC) -Os -nostdlib -o $@ $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LINKFILE) -Wl,-Map,$(OBJDIR)/rockbox.map |
@@ -102,7 +112,7 @@ $(OBJDIR)/rockbox.asm: $(OBJDIR)/rockbox.bin | |||
102 | $(TOOLSDIR)/sh2d -sh1 $< > $@ | 112 | $(TOOLSDIR)/sh2d -sh1 $< > $@ |
103 | 113 | ||
104 | $(OBJDIR)/$(OUTNAME) : $(OBJDIR)/rockbox.bin | 114 | $(OBJDIR)/$(OUTNAME) : $(OBJDIR)/rockbox.bin |
105 | $(TOOLSDIR)/scramble $(SCRAMBLE_OPT) $< $@ | 115 | $(TOOLSDIR)/$(TOOL) $(TOOL_OPT) $< $@ |
106 | 116 | ||
107 | $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin | 117 | $(OBJDIR)/rockbox.ucl: $(OBJDIR)/rockbox.bin |
108 | @a=`uclpack -h 2>/dev/null`; \ | 118 | @a=`uclpack -h 2>/dev/null`; \ |
@@ -145,7 +155,12 @@ DEPDIRS:=$(DEPS) | |||
145 | ifeq ($(ANYREC), RECORDER) | 155 | ifeq ($(ANYREC), RECORDER) |
146 | DEPDIRS += $(DEPS)/recorder | 156 | DEPDIRS += $(DEPS)/recorder |
147 | else | 157 | else |
158 | ifeq ($(TARGET), -DARCHOS_PLAYER) | ||
148 | DEPDIRS += $(DEPS)/player | 159 | DEPDIRS += $(DEPS)/player |
160 | else | ||
161 | # some kind of Neo | ||
162 | DEPDIRS += $(DEPS)/neo | ||
163 | endif | ||
149 | endif | 164 | endif |
150 | 165 | ||
151 | DIRS = $(subst $(DEPS),".",$(DEPDIRS)) | 166 | DIRS = $(subst $(DEPS),".",$(DEPDIRS)) |