diff options
author | Felix Arends <edx@rockbox.org> | 2002-09-21 21:13:31 +0000 |
---|---|---|
committer | Felix Arends <edx@rockbox.org> | 2002-09-21 21:13:31 +0000 |
commit | 2d33e90e874570f593e83d150f270ec6d5a96727 (patch) | |
tree | 890976dbb23c8c277c5ddfe688480b8cb5110432 /apps/win32.mak | |
parent | ba93850ee30b3a2d8227735690546c7f8843f621 (diff) |
updated makefile supporting fonts and .lang files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2364 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/win32.mak')
-rw-r--r-- | apps/win32.mak | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/apps/win32.mak b/apps/win32.mak index 839c0cc972..bfa5448892 100644 --- a/apps/win32.mak +++ b/apps/win32.mak @@ -28,6 +28,7 @@ AS = sh-elf-as OC = sh-elf-objcopy FIRMWARE := ../firmware +TOOLS := ../tools INCLUDES= -I$(FIRMWARE)/include -I$(FIRMWARE) -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers -I$(FIRMWARE)/malloc -I. @@ -80,12 +81,12 @@ else OUTNAME = archos.mod endif -OBJS := $(SRC:%.c=$(OBJDIR)/%.o) +OBJS := $(OBJDIR)/lang.o $(SRC:%.c=$(OBJDIR)/%.o) all : $(OBJDIR)/$(OUTNAME) $(OBJDIR)/librockbox.a: - make -C $(FIRMWARE) -f win32.mak TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) + make -C $(FIRMWARE) -f win32.mak TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) PLAYER=$(PLAYER) PLAYER_OLD=$(PLAYER_OLD) $(OBJDIR)/archos.elf : $(OBJS) $(LDS) $(OBJDIR)/librockbox.a $(CC) -Os -nostdlib -o $(OBJDIR)/archos.elf $(OBJS) -L$(OBJDIR) -lrockbox -lgcc -L$(FIRMWARE) -T$(LDS) -Wl,-Map,$(OBJDIR)/archos.map @@ -97,19 +98,26 @@ $(OBJDIR)/archos.asm: $(OBJDIR)/archos.bin ../tools/sh2d -sh1 $(OBJDIR)/archos.bin > $(OBJDIR)/archos.asm $(OBJDIR)/$(OUTNAME) : $(OBJDIR)/archos.bin - scramble $(OBJDIR)/archos.bin $(OBJDIR)/$(OUTNAME) + $(TOOLS)/scramble $(OBJDIR)/archos.bin $(OBJDIR)/$(OUTNAME) $(OBJDIR)/%.o: %.c $(CC) $(CFLAGS) $(TARGET) -c $< -o $@ +$(OBJDIR)/build.lang: lang/$(LANGUAGE).lang + perl ../tools/uplang lang/english.lang $< > $@ + +$(OBJDIR)/lang.o: $(OBJDIR)/build.lang + perl -s ../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 clean: -rm -f $(OBJS) $(OBJDIR)/$(OUTNAME) $(OBJDIR)/archos.asm \ - $(OBJDIR)/archos.bin $(OBJDIR)/archos.elf $(OBJDIR)/archos.map - -$(RM) -r $(OBJDIR)/$(DEPS) - make -f ../firmware/win32.mak clean + $(OBJDIR)/archos.bin $(OBJDIR)/archos.elf $(OBJDIR)/archos.map \ + $(OBJDIR)/lang.o $(OBJDIR)/build.lang $(OBJDIR)/lang.[ch] + make -C $(FIRMWARE) -f win32.mak TARGET=$(TARGET) DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) clean DEPS:=.deps DEPDIRS:=$(DEPS) $(DEPS)/recorder |