From 4df35e5f78a21f2990ec4c31fc38db0d2bea2695 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 20 Jun 2004 22:00:21 +0000 Subject: provide libplugin support git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4779 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/x11/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'uisimulator/x11') 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 @@ APPDIR = ../../apps RECDIR = $(APPDIR)/recorder PLAYDIR = $(APPDIR)/player +PLUGINDIR = $(APPDIR)/plugins ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP) MACHINEDIR = $(RECDIR) @@ -126,6 +127,9 @@ all: $(TOOLSDIR)/convbdf $(TARGET) $(EXTRA_TARGETS) $(ROCKS) $(TOOLSDIR)/convbdf: $(MAKE) -C $(TOOLSDIR) +$(OBJDIR)/libplugin.a: + $(MAKE) -C $(PLUGINDIR)/lib DEBUG=$(DEBUG) OBJDIR=$(OBJDIR) VERSION=$(VERSION) EXTRA_DEFINES="$(EXTRA_DEFINES)" SIMULATOR=1 + clean: $(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \ $(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c \ @@ -133,7 +137,7 @@ clean: $(RM) -r $(DEPS) $(OBJDIR)/%.rock: $(APPDIR)/plugins/%.c $(APPDIR)/plugin.h - $(CC) $(APPCFLAGS) -DPLUGIN -shared $< -o $@ + $(CC) $(APPCFLAGS) -DPLUGIN -L$(OBJDIR) -lplugin -shared $< -o $@ distclean: clean $(RM) config.cache @@ -314,10 +318,10 @@ $(OBJDIR)/%.o: %.c $(CC) $(CFLAGS) -c $< -o $@ ifeq ($(UNAME),CYGWIN) -$(TARGET): $(OBJS) +$(TARGET): $(OBJS) $(OBJDIR)/libplugin.a $(CC) -g -o $(TARGET) $(OBJS) $(LIBDIRS) $(LDFLAGS) $(LIBS) else -$(TARGET): $(OBJS) +$(TARGET): $(OBJS) $(OBJDIR)/libplugin.a $(CC) -g -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS) $(LIBS) endif -- cgit