diff options
author | Björn Stenberg <bjorn@haxx.se> | 2003-06-29 16:43:15 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2003-06-29 16:43:15 +0000 |
commit | 3f54121fde834041970ddeda09edd06ba1939850 (patch) | |
tree | 289b2a511d23bb7b7580a9017639d6f2538c48f9 /uisimulator/x11/Makefile | |
parent | ba371fb595affd68c823926b85718d1d613dc7d3 (diff) | |
download | rockbox-3f54121fde834041970ddeda09edd06ba1939850.tar.gz rockbox-3f54121fde834041970ddeda09edd06ba1939850.zip |
Added plugin loader. Moved games, demos and the text viewer to loadable plugins. Copy your *.rock files to /.rockbox/rocks/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3770 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/Makefile')
-rw-r--r-- | uisimulator/x11/Makefile | 41 |
1 files changed, 15 insertions, 26 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile index 14b204bb62..4a95046ea0 100644 --- a/uisimulator/x11/Makefile +++ b/uisimulator/x11/Makefile | |||
@@ -92,27 +92,34 @@ FIRMSRCS = $(LCDSRSC) id3.c debug.c usb.c mpeg.c power.c\ | |||
92 | 92 | ||
93 | APPS = main.c tree.c menu.c credits.c main_menu.c language.c\ | 93 | APPS = main.c tree.c menu.c credits.c main_menu.c language.c\ |
94 | playlist.c wps.c wps-display.c settings.c status.c icons.c\ | 94 | playlist.c wps.c wps-display.c settings.c status.c icons.c\ |
95 | screens.c peakmeter.c viewer.c sleeptimer.c keyboard.c onplay.c\ | 95 | screens.c peakmeter.c sleeptimer.c keyboard.c onplay.c\ |
96 | misc.c | 96 | misc.c plugin.c |
97 | 97 | ||
98 | MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c | 98 | MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c |
99 | 99 | ||
100 | ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP) | 100 | ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP) |
101 | APPS += tetris.c sokoban.c bounce.c snow.c bmp.c widgets.c wormlet.c cube.c | 101 | APPS += bmp.c widgets.c |
102 | endif | 102 | endif |
103 | 103 | ||
104 | SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \ | 104 | SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \ |
105 | button-x11.c io.c thread.c sim_icons.c $(APPS) $(MENUS) $(FIRMSRCS) | 105 | button-x11.c io.c thread.c sim_icons.c $(APPS) $(MENUS) $(FIRMSRCS) |
106 | 106 | ||
107 | ROCKSRC := $(wildcard $(APPDIR)/plugins/*.c) | ||
108 | ROCKS := $(ROCKSRC:$(APPDIR)/plugins/%.c=$(OBJDIR)/%.rock) | ||
109 | |||
107 | OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o) | 110 | OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o) |
108 | 111 | ||
109 | all: $(TARGET) $(EXTRA_TARGETS) | 112 | all: $(TARGET) $(EXTRA_TARGETS) $(ROCKS) |
110 | 113 | ||
111 | clean: | 114 | clean: |
112 | $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \ | 115 | $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \ |
113 | $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c | 116 | $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c \ |
117 | $(ROCKS) $(OBJDIR)/credits.raw | ||
114 | $(RM) -r $(DEPS) | 118 | $(RM) -r $(DEPS) |
115 | 119 | ||
120 | $(OBJDIR)/%.rock: $(APPDIR)/plugins/%.c $(APPDIR)/plugin.h | ||
121 | $(CC) $(APPCFLAGS) -DPLUGIN -shared $< -o $@ | ||
122 | |||
116 | distclean: clean | 123 | distclean: clean |
117 | $(RM) config.cache | 124 | $(RM) config.cache |
118 | 125 | ||
@@ -128,6 +135,9 @@ $(OBJDIR)/menu.o: $(APPDIR)/menu.c | |||
128 | $(OBJDIR)/main_menu.o: $(APPDIR)/main_menu.c | 135 | $(OBJDIR)/main_menu.o: $(APPDIR)/main_menu.c |
129 | $(CC) $(APPCFLAGS) -c $< -o $@ | 136 | $(CC) $(APPCFLAGS) -c $< -o $@ |
130 | 137 | ||
138 | $(OBJDIR)/plugin.o: $(APPDIR)/plugin.c | ||
139 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
140 | |||
131 | $(OBJDIR)/keyboard.o: $(MACHINEDIR)/keyboard.c | 141 | $(OBJDIR)/keyboard.o: $(MACHINEDIR)/keyboard.c |
132 | $(CC) $(APPCFLAGS) -c $< -o $@ | 142 | $(CC) $(APPCFLAGS) -c $< -o $@ |
133 | 143 | ||
@@ -152,24 +162,6 @@ $(OBJDIR)/icons.o: $(MACHINEDIR)/icons.c | |||
152 | $(OBJDIR)/widgets.o: $(RECDIR)/widgets.c | 162 | $(OBJDIR)/widgets.o: $(RECDIR)/widgets.c |
153 | $(CC) $(APPCFLAGS) -c $< -o $@ | 163 | $(CC) $(APPCFLAGS) -c $< -o $@ |
154 | 164 | ||
155 | $(OBJDIR)/tetris.o: $(RECDIR)/tetris.c | ||
156 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
157 | |||
158 | $(OBJDIR)/wormlet.o: $(RECDIR)/wormlet.c | ||
159 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
160 | |||
161 | $(OBJDIR)/sokoban.o: $(RECDIR)/sokoban.c | ||
162 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
163 | |||
164 | $(OBJDIR)/bounce.o: $(RECDIR)/bounce.c | ||
165 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
166 | |||
167 | $(OBJDIR)/cube.o: $(RECDIR)/cube.c | ||
168 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
169 | |||
170 | $(OBJDIR)/snow.o: $(RECDIR)/snow.c | ||
171 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
172 | |||
173 | $(OBJDIR)/main.o: $(APPDIR)/main.c | 165 | $(OBJDIR)/main.o: $(APPDIR)/main.c |
174 | $(CC) $(APPCFLAGS) -c $< -o $@ | 166 | $(CC) $(APPCFLAGS) -c $< -o $@ |
175 | 167 | ||
@@ -182,9 +174,6 @@ $(OBJDIR)/wps.o: $(APPDIR)/wps.c | |||
182 | $(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c | 174 | $(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c |
183 | $(CC) $(APPCFLAGS) -c $< -o $@ | 175 | $(CC) $(APPCFLAGS) -c $< -o $@ |
184 | 176 | ||
185 | $(OBJDIR)/viewer.o: $(APPDIR)/viewer.c | ||
186 | $(CC) $(APPCFLAGS) -c $< -o $@ | ||
187 | |||
188 | $(OBJDIR)/wps-display.o: $(APPDIR)/wps-display.c | 177 | $(OBJDIR)/wps-display.o: $(APPDIR)/wps-display.c |
189 | $(CC) $(APPCFLAGS) -c $< -o $@ | 178 | $(CC) $(APPCFLAGS) -c $< -o $@ |
190 | 179 | ||