diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-09-18 14:08:05 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-09-18 14:08:05 +0000 |
commit | 505eca76e661df673ae3ff77863936e6a533f663 (patch) | |
tree | c09f07ca4eaf5c4433af9a4365ccb136e02f3d5a /uisimulator/win32 | |
parent | a24bd9a894c1d8594e99f95e470cbd8296e5b3d2 (diff) | |
download | rockbox-505eca76e661df673ae3ff77863936e6a533f663.tar.gz rockbox-505eca76e661df673ae3ff77863936e6a533f663.zip |
New language/string handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2327 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/win32')
-rw-r--r-- | uisimulator/win32/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile index c3a585e64e..c852088588 100644 --- a/uisimulator/win32/Makefile +++ b/uisimulator/win32/Makefile | |||
@@ -40,6 +40,7 @@ DEBUG = -g | |||
40 | 40 | ||
41 | # where to put all output files | 41 | # where to put all output files |
42 | OBJDIR = . | 42 | OBJDIR = . |
43 | LANGUAGE = english | ||
43 | 44 | ||
44 | TARGET = $(OBJDIR)/uisw32.exe | 45 | TARGET = $(OBJDIR)/uisw32.exe |
45 | 46 | ||
@@ -49,7 +50,7 @@ $(KEYPAD) $(DISPLAY) -DAPPSVERSION=\"$(VERSION)\" | |||
49 | LDFLAGS = -lgdi32 -luser32 -mwindows | 50 | LDFLAGS = -lgdi32 -luser32 -mwindows |
50 | 51 | ||
51 | # Use this for simulator-only files | 52 | # Use this for simulator-only files |
52 | INCLUDES = -I. -I$(DRIVERS) -I$(COMMON) -I$(FIRMWAREDIR) -I$(APPDIR) -I$(MACHINEDIR) -I../common -I$(MACHINEDIR) | 53 | INCLUDES = -I. -I$(DRIVERS) -I$(COMMON) -I$(FIRMWAREDIR) -I$(APPDIR) -I$(MACHINEDIR) -I../common -I$(MACHINEDIR) -I$(OBJDIR) |
53 | 54 | ||
54 | # The true Rockbox Applications should use this include path: | 55 | # The true Rockbox Applications should use this include path: |
55 | APPINCLUDES = -I$(FIRMWAREDIR)/include $(INCLUDES) | 56 | APPINCLUDES = -I$(FIRMWAREDIR)/include $(INCLUDES) |
@@ -64,8 +65,7 @@ FIRMSRCS = lcd.c power.c sprintf.c id3.c usb.c \ | |||
64 | mpeg.c powermgmt.c font.c loadfont.c X5x8.c | 65 | mpeg.c powermgmt.c font.c loadfont.c X5x8.c |
65 | 66 | ||
66 | APPS = main.c tree.c menu.c credits.c main_menu.c icons.c \ | 67 | APPS = main.c tree.c menu.c credits.c main_menu.c icons.c \ |
67 | playlist.c showtext.c wps.c wps-display.c settings.c status.c \ | 68 | playlist.c showtext.c wps.c wps-display.c settings.c status.c |
68 | lang.c | ||
69 | 69 | ||
70 | MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c | 70 | MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c |
71 | 71 | ||
@@ -78,7 +78,7 @@ SRCS = button.c dir-win32.c lcd-win32.c panic-win32.c thread-win32.c \ | |||
78 | debug-win32.c kernel.c string-win32.c uisw32.c stubs.c \ | 78 | debug-win32.c kernel.c string-win32.c uisw32.c stubs.c \ |
79 | $(APPS) $(MENUS) $(FIRMSRCS) strtok.c sim_icons.c | 79 | $(APPS) $(MENUS) $(FIRMSRCS) strtok.c sim_icons.c |
80 | 80 | ||
81 | OBJS := $(SRCS:%.c=$(OBJDIR)/%.o) $(OBJDIR)/uisw32-res.o | 81 | OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o) $(OBJDIR)/uisw32-res.o |
82 | 82 | ||
83 | all: $(TARGET) | 83 | all: $(TARGET) |
84 | 84 | ||
@@ -161,8 +161,9 @@ $(OBJDIR)/playlist.o: $(APPDIR)/playlist.c | |||
161 | $(OBJDIR)/showtext.o: $(APPDIR)/showtext.c | 161 | $(OBJDIR)/showtext.o: $(APPDIR)/showtext.c |
162 | $(CC) $(APPCFLAGS) -c $< -o $@ | 162 | $(CC) $(APPCFLAGS) -c $< -o $@ |
163 | 163 | ||
164 | $(OBJDIR)/lang.o: $(APPDIR)/lang.c | 164 | $(OBJDIR)/lang.o: $(APPDIR)/lang/$(LANGUAGE).lang |
165 | $(CC) $(APPCFLAGS) -c $< -o $@ | 165 | $(TOOLSDIR)/genlang -p=$(OBJDIR)/lang $< |
166 | $(CC) $(CFLAGS) -c $(OBJDIR)/lang.c -o $@ | ||
166 | 167 | ||
167 | $(OBJDIR)/lcd.o: $(DRIVERS)/lcd.c | 168 | $(OBJDIR)/lcd.o: $(DRIVERS)/lcd.c |
168 | $(CC) $(APPCFLAGS) -c $< -o $@ | 169 | $(CC) $(APPCFLAGS) -c $< -o $@ |