From 0e419987e48b006104748118fa28161484b7dfa1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 9 Jan 2006 11:22:36 +0000 Subject: SDL simulator brought by Nathan Hand and Nick Lanham. This is added as a third simulator with the hope that once it works fine, we can remove the other two and only have one unified simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8312 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/Makefile | 17 +++++++++++++++++ apps/plugins/databox/Makefile | 18 +++++++++++++++++- apps/plugins/rockboy/Makefile | 18 +++++++++++++++++- apps/plugins/searchengine/Makefile | 18 +++++++++++++++++- 4 files changed, 68 insertions(+), 3 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 019a459..98c66c6 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile @@ -86,6 +86,22 @@ else endif else # end of x11-simulator +ifeq ($(SIMVER), sdl) +################################################### +# This is the SDL simulator version + +$(OBJDIR)/%.rock : $(OBJDIR)/%.o $(BUILDDIR)/libplugin.a + @echo "LD "`basename $@` + @$(CC) $(CFLAGS) -shared $< -L$(BUILDDIR) $(CODECLIBS) -lplugin -o $@ +ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) +# 'x' must be kept or you'll have "Win32 error 5" +# $ fgrep 5 /usr/include/w32api/winerror.h | head -1 +# #define ERROR_ACCESS_DENIED 5L +else + @chmod -x $@ +endif + +else # end of sdl-simulator ################################################### # This is the win32 simulator version DLLTOOLFLAGS = --export-all @@ -104,6 +120,7 @@ else @chmod -x $@ endif endif # end of win32-simulator +endif endif # end of simulator section diff --git a/apps/plugins/databox/Makefile b/apps/plugins/databox/Makefile index 12b211d..78387fd 100644 --- a/apps/plugins/databox/Makefile +++ b/apps/plugins/databox/Makefile @@ -56,6 +56,22 @@ else endif else # end of x11-simulator +ifeq ($(SIMVER), sdl) +################################################### +# This is the SDL simulator version + +$(OUTPUT): $(OBJS) + @echo "LD $<" + @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ +ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) +# 'x' must be kept or you'll have "Win32 error 5" +# $ fgrep 5 /usr/include/w32api/winerror.h | head -1 +# #define ERROR_ACCESS_DENIED 5L +else + @chmod -x $@ +endif + +else # end of sdl-simulator ################################################### # This is the win32 simulator version DLLTOOLFLAGS = --export-all @@ -74,7 +90,7 @@ else @chmod -x $@ endif endif # end of win32-simulator - +endif endif # end of simulator section diff --git a/apps/plugins/rockboy/Makefile b/apps/plugins/rockboy/Makefile index 23c6142..3657e8d 100644 --- a/apps/plugins/rockboy/Makefile +++ b/apps/plugins/rockboy/Makefile @@ -72,6 +72,22 @@ else endif else # end of x11-simulator +ifeq ($(SIMVER), sdl) +################################################### +# This is the sdl simulator version + +$(OUTPUT): $(OBJS) + @echo "LD $@" + @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ +ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) +# 'x' must be kept or you'll have "Win32 error 5" +# $ fgrep 5 /usr/include/w32api/winerror.h | head -1 +# #define ERROR_ACCESS_DENIED 5L +else + @chmod -x $@ +endif + +else # end of sdl-simulator ################################################### # This is the win32 simulator version DLLTOOLFLAGS = --export-all @@ -90,7 +106,7 @@ else @chmod -x $@ endif endif # end of win32-simulator - +endif endif # end of simulator section diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile index 26e8517..efa7d95 100644 --- a/apps/plugins/searchengine/Makefile +++ b/apps/plugins/searchengine/Makefile @@ -56,6 +56,22 @@ else endif else # end of x11-simulator +ifeq ($(SIMVER), sdl) +################################################### +# This is the SDL simulator version + +$(OUTPUT): $(OBJS) + @echo "LD $<" + @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ +ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) +# 'x' must be kept or you'll have "Win32 error 5" +# $ fgrep 5 /usr/include/w32api/winerror.h | head -1 +# #define ERROR_ACCESS_DENIED 5L +else + @chmod -x $@ +endif + +else # end of sdl-simulator ################################################### # This is the win32 simulator version DLLTOOLFLAGS = --export-all @@ -74,7 +90,7 @@ else @chmod -x $@ endif endif # end of win32-simulator - +endif endif # end of simulator section -- cgit v1.1