forked from len0rd/rockbox
New language/string handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2327 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a24bd9a894
commit
505eca76e6
20 changed files with 962 additions and 270 deletions
|
|
@ -13,9 +13,11 @@ AR = sh-elf-ar
|
|||
AS = sh-elf-as
|
||||
OC = sh-elf-objcopy
|
||||
|
||||
LANGUAGE = english
|
||||
|
||||
FIRMWARE := ../firmware
|
||||
|
||||
INCLUDES= -I$(FIRMWARE)/include -I$(FIRMWARE) -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers -I$(FIRMWARE)/malloc -I.
|
||||
INCLUDES= -I$(FIRMWARE)/include -I$(FIRMWARE) -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers -I$(FIRMWARE)/malloc -I. -I$(OBJDIR)
|
||||
|
||||
# store output files in this directory:
|
||||
OBJDIR = .
|
||||
|
|
@ -47,7 +49,7 @@ else
|
|||
OUTNAME = archos.mod
|
||||
endif
|
||||
|
||||
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
|
||||
OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o)
|
||||
|
||||
all : $(OBJDIR)/$(OUTNAME)
|
||||
|
||||
|
|
@ -70,6 +72,10 @@ $(OBJDIR)/%.o: %.c
|
|||
@mkdir -p `dirname $@`
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
$(OBJDIR)/lang.o: lang/$(LANGUAGE).lang
|
||||
../tools/genlang -p=$(OBJDIR)/lang $<
|
||||
$(CC) $(CFLAGS) -c $(OBJDIR)/lang.c -o $@
|
||||
|
||||
dist:
|
||||
tar czvf dist.tar.gz Makefile main.c start.s app.lds
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue