summaryrefslogtreecommitdiff
path: root/uisimulator/x11/Makefile
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-06-20 22:00:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-06-20 22:00:21 +0000
commit4df35e5f78a21f2990ec4c31fc38db0d2bea2695 (patch)
treee900f3ced0dd109d0953c4c8be6b7e5ec7305578 /uisimulator/x11/Makefile
parent74eb64257ace75c290e7eb504774a39764529d1d (diff)
downloadrockbox-4df35e5f78a21f2990ec4c31fc38db0d2bea2695.tar.gz
rockbox-4df35e5f78a21f2990ec4c31fc38db0d2bea2695.zip
provide libplugin support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4779 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/x11/Makefile')
-rw-r--r--uisimulator/x11/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 03b23acef3..c095885baa 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -20,6 +20,7 @@
20APPDIR = ../../apps 20APPDIR = ../../apps
21RECDIR = $(APPDIR)/recorder 21RECDIR = $(APPDIR)/recorder
22PLAYDIR = $(APPDIR)/player 22PLAYDIR = $(APPDIR)/player
23PLUGINDIR = $(APPDIR)/plugins
23 24
24ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP) 25ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
25 MACHINEDIR = $(RECDIR) 26 MACHINEDIR = $(RECDIR)
@@ -126,6 +127,9 @@ all: $(TOOLSDIR)/convbdf $(TARGET) $(EXTRA_TARGETS) $(ROCKS)
126$(TOOLSDIR)/convbdf: 127$(TOOLSDIR)/convbdf:
127 $(MAKE) -C $(TOOLSDIR) 128 $(MAKE) -C $(TOOLSDIR)
128 129
130$(OBJDIR)/libplugin.a:
131 $(MAKE) -C $(PLUGINDIR)/lib DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" SIMULATOR=1
132
129clean: 133clean:
130 $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \ 134 $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \
131 $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c \ 135 $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c \
@@ -133,7 +137,7 @@ clean:
133 $(RM) -r $(DEPS) 137 $(RM) -r $(DEPS)
134 138
135$(OBJDIR)/%.rock: $(APPDIR)/plugins/%.c $(APPDIR)/plugin.h 139$(OBJDIR)/%.rock: $(APPDIR)/plugins/%.c $(APPDIR)/plugin.h
136 $(CC) $(APPCFLAGS) -DPLUGIN -shared $< -o $@ 140 $(CC) $(APPCFLAGS) -DPLUGIN -L$(OBJDIR) -lplugin -shared $< -o $@
137 141
138distclean: clean 142distclean: clean
139 $(RM) config.cache 143 $(RM) config.cache
@@ -314,10 +318,10 @@ $(OBJDIR)/%.o: %.c
314 $(CC) $(CFLAGS) -c $< -o $@ 318 $(CC) $(CFLAGS) -c $< -o $@
315 319
316ifeq ($(UNAME),CYGWIN) 320ifeq ($(UNAME),CYGWIN)
317$(TARGET): $(OBJS) 321$(TARGET): $(OBJS) $(OBJDIR)/libplugin.a
318 $(CC) -g -o $(TARGET) $(OBJS) $(LIBDIRS) $(LDFLAGS) $(LIBS) 322 $(CC) -g -o $(TARGET) $(OBJS) $(LIBDIRS) $(LDFLAGS) $(LIBS)
319else 323else
320$(TARGET): $(OBJS) 324$(TARGET): $(OBJS) $(OBJDIR)/libplugin.a
321 $(CC) -g -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS) $(LIBS) 325 $(CC) -g -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS) $(LIBS)
322endif 326endif
323 327