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/pacbox | |
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/pacbox')
-rw-r--r-- | apps/plugins/pacbox/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/plugins/pacbox/Makefile b/apps/plugins/pacbox/Makefile index 4a5442c25f..fbff8b5109 100644 --- a/apps/plugins/pacbox/Makefile +++ b/apps/plugins/pacbox/Makefile | |||
@@ -12,6 +12,11 @@ INCLUDES = -I$(APPSDIR) -I.. -I. $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR) | |||
12 | CFLAGS = $(INCLUDES) $(GCCOPTS) -O2 $(TARGET) $(EXTRA_DEFINES) \ | 12 | CFLAGS = $(INCLUDES) $(GCCOPTS) -O2 $(TARGET) $(EXTRA_DEFINES) \ |
13 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN | 13 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN |
14 | 14 | ||
15 | ifeq ($(UNAME), Darwin) | ||
16 | SHARED_FLAG=-dynamiclib -Wl,-single_module | ||
17 | else | ||
18 | SHARED_FLAG=-shared | ||
19 | endif | ||
15 | 20 | ||
16 | ifdef APPEXTRA | 21 | ifdef APPEXTRA |
17 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 22 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
@@ -50,7 +55,7 @@ ifeq ($(SIMVER), x11) | |||
50 | 55 | ||
51 | $(OUTPUT): $(OBJS) | 56 | $(OUTPUT): $(OBJS) |
52 | @echo "LD $<" | 57 | @echo "LD $<" |
53 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ | 58 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ |
54 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 59 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
55 | # 'x' must be kept or you'll have "Win32 error 5" | 60 | # 'x' must be kept or you'll have "Win32 error 5" |
56 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 61 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |
@@ -66,7 +71,7 @@ ifeq ($(SIMVER), sdl) | |||
66 | 71 | ||
67 | $(OUTPUT): $(OBJS) | 72 | $(OUTPUT): $(OBJS) |
68 | @echo "LD $<" | 73 | @echo "LD $<" |
69 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ | 74 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ |
70 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 75 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
71 | # 'x' must be kept or you'll have "Win32 error 5" | 76 | # 'x' must be kept or you'll have "Win32 error 5" |
72 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 77 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |