diff options
Diffstat (limited to 'apps/plugins/zxbox/Makefile')
-rw-r--r-- | apps/plugins/zxbox/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugins/zxbox/Makefile b/apps/plugins/zxbox/Makefile index cb78ce961b..8668c3f4e7 100644 --- a/apps/plugins/zxbox/Makefile +++ b/apps/plugins/zxbox/Makefile | |||
@@ -12,6 +12,11 @@ INCLUDES = -I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \ | |||
12 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ | 12 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ |
13 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN $(OPT_FLAGS) $(PROFILE_OPTS) | 13 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN $(OPT_FLAGS) $(PROFILE_OPTS) |
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))) |
@@ -59,7 +64,7 @@ ifeq ($(SIMVER), sdl) | |||
59 | 64 | ||
60 | $(OUTPUT): $(OBJS) | 65 | $(OUTPUT): $(OBJS) |
61 | @echo "LD $<" | 66 | @echo "LD $<" |
62 | @$(CC) $(CFLAGS) -shared $(OBJS) -L$(BUILDDIR) -lplugin -o $@ | 67 | @$(CC) $(CFLAGS) $(SHARED_FLAG) $(OBJS) -L$(BUILDDIR) -lplugin -o $@ |
63 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) | 68 | ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) |
64 | # 'x' must be kept or you'll have "Win32 error 5" | 69 | # 'x' must be kept or you'll have "Win32 error 5" |
65 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 | 70 | # $ fgrep 5 /usr/include/w32api/winerror.h | head -1 |