summaryrefslogtreecommitdiff
path: root/uisimulator/x11/Makefile
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-06-29 16:43:15 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-06-29 16:43:15 +0000
commit3f54121fde834041970ddeda09edd06ba1939850 (patch)
tree289b2a511d23bb7b7580a9017639d6f2538c48f9 /uisimulator/x11/Makefile
parentba371fb595affd68c823926b85718d1d613dc7d3 (diff)
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/Makefile41
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\
APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
playlist.c wps.c wps-display.c settings.c status.c icons.c\
- screens.c peakmeter.c viewer.c sleeptimer.c keyboard.c onplay.c\
- misc.c
+ screens.c peakmeter.c sleeptimer.c keyboard.c onplay.c\
+ misc.c plugin.c
MENUS = games_menu.c demo_menu.c settings_menu.c sound_menu.c
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
- APPS += tetris.c sokoban.c bounce.c snow.c bmp.c widgets.c wormlet.c cube.c
+ APPS += bmp.c widgets.c
endif
SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \
button-x11.c io.c thread.c sim_icons.c $(APPS) $(MENUS) $(FIRMSRCS)
+ROCKSRC := $(wildcard $(APPDIR)/plugins/*.c)
+ROCKS := $(ROCKSRC:$(APPDIR)/plugins/%.c=$(OBJDIR)/%.rock)
+
OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o)
-all: $(TARGET) $(EXTRA_TARGETS)
+all: $(TARGET) $(EXTRA_TARGETS) $(ROCKS)
clean:
$(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \
- $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c
+ $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c \
+ $(ROCKS) $(OBJDIR)/credits.raw
$(RM) -r $(DEPS)
+$(OBJDIR)/%.rock: $(APPDIR)/plugins/%.c $(APPDIR)/plugin.h
+ $(CC) $(APPCFLAGS) -DPLUGIN -shared $< -o $@
+
distclean: clean
$(RM) config.cache
@@ -128,6 +135,9 @@ $(OBJDIR)/menu.o: $(APPDIR)/menu.c
$(OBJDIR)/main_menu.o: $(APPDIR)/main_menu.c
$(CC) $(APPCFLAGS) -c $< -o $@
+$(OBJDIR)/plugin.o: $(APPDIR)/plugin.c
+ $(CC) $(APPCFLAGS) -c $< -o $@
+
$(OBJDIR)/keyboard.o: $(MACHINEDIR)/keyboard.c
$(CC) $(APPCFLAGS) -c $< -o $@
@@ -152,24 +162,6 @@ $(OBJDIR)/icons.o: $(MACHINEDIR)/icons.c
$(OBJDIR)/widgets.o: $(RECDIR)/widgets.c
$(CC) $(APPCFLAGS) -c $< -o $@
-$(OBJDIR)/tetris.o: $(RECDIR)/tetris.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
-$(OBJDIR)/wormlet.o: $(RECDIR)/wormlet.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
-$(OBJDIR)/sokoban.o: $(RECDIR)/sokoban.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
-$(OBJDIR)/bounce.o: $(RECDIR)/bounce.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
-$(OBJDIR)/cube.o: $(RECDIR)/cube.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
-$(OBJDIR)/snow.o: $(RECDIR)/snow.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
$(OBJDIR)/main.o: $(APPDIR)/main.c
$(CC) $(APPCFLAGS) -c $< -o $@
@@ -182,9 +174,6 @@ $(OBJDIR)/wps.o: $(APPDIR)/wps.c
$(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c
$(CC) $(APPCFLAGS) -c $< -o $@
-$(OBJDIR)/viewer.o: $(APPDIR)/viewer.c
- $(CC) $(APPCFLAGS) -c $< -o $@
-
$(OBJDIR)/wps-display.o: $(APPDIR)/wps-display.c
$(CC) $(APPCFLAGS) -c $< -o $@