summaryrefslogtreecommitdiff
path: root/apps/plugins/sudoku/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sudoku/Makefile')
-rw-r--r--apps/plugins/sudoku/Makefile10
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)))
18endif 18endif
19 19
20ifeq ($(UNAME), Darwin)
21SHARED_FLAG=-dynamiclib -Wl,-single_module
22else
23SHARED_FLAG=-shared
24endif
25
20LINKFILE := $(OBJDIR)/link.lds 26LINKFILE := $(OBJDIR)/link.lds
21DEPFILE = $(OBJDIR)/dep-sudoku 27DEPFILE = $(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 $@
57ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 63ifeq ($(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 $@
73ifeq ($(findstring CYGWIN,$(UNAME)),CYGWIN) 79ifeq ($(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