diff options
Diffstat (limited to 'apps/plugins/sudoku/Makefile')
-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 |