diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-09-29 16:15:11 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-09-29 16:15:11 +0000 |
commit | 64f949f2954db85968850f6e157e5c3b10df6b7d (patch) | |
tree | 14003f384ae848d98473494a74618609ddf04c5f /apps/plugins/sudoku | |
parent | b692fb11b3bb081f51a7bab7351ccbfc78df6617 (diff) | |
download | rockbox-64f949f2954db85968850f6e157e5c3b10df6b7d.tar.gz rockbox-64f949f2954db85968850f6e157e5c3b10df6b7d.zip |
Allow UI simulator to be build on OS (Slightly updated version of FS5767)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11094 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sudoku')
-rw-r--r-- | apps/plugins/sudoku/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/plugins/sudoku/Makefile b/apps/plugins/sudoku/Makefile index 8a1d8b189d..713d31bcb2 100644 --- a/apps/plugins/sudoku/Makefile +++ b/apps/plugins/sudoku/Makefile | |||
@@ -17,6 +17,12 @@ ifdef APPEXTRA | |||
17 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 17 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
18 | endif | 18 | endif |
19 | 19 | ||
20 | ifeq ($(UNAME), Darwin) | ||
21 | SHARED_FLAG=-dynamiclib -Wl,-single_module | ||
22 | else | ||
23 | SHARED_FLAG=-shared | ||
24 | endif | ||
25 | |||
20 | LINKFILE := $(OBJDIR)/link.lds | 26 | LINKFILE := $(OBJDIR)/link.lds |
21 | DEPFILE = $(OBJDIR)/dep-sudoku | 27 | DEPFILE = $(OBJDIR)/dep-sudoku |
22 | 28 | ||
@@ -53,7 +59,7 @@ ifeq ($(SIMVER), x11) | |||
53 | 59 | ||
54 | $(OUTPUT): $(OBJS) | 60 | $(OUTPUT): $(OBJS) |
55 | @echo "LD $<" | 61 | @echo "LD $<" |
56 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin $(LINKBITMAPS) -o $@ | 62 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin $(LINKBITMAPS) -o $@ |
57 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 63 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
58 | # 'x' must be kept or you'll have "Win32 error 5" | 64 | # 'x' must be kept or you'll have "Win32 error 5" |
59 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 65 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
@@ -69,7 +75,7 @@ ifeq ($(SIMVER), sdl) | |||
69 | 75 | ||
70 | $(OUTPUT): $(OBJS) | 76 | $(OUTPUT): $(OBJS) |
71 | @echo "LD $<" | 77 | @echo "LD $<" |
72 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin $(LINKBITMAPS) -o $@ | 78 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin $(LINKBITMAPS) -o $@ |
73 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 79 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
74 | # 'x' must be kept or you'll have "Win32 error 5" | 80 | # 'x' must be kept or you'll have "Win32 error 5" |
75 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 81 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |