diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-09-29 20:04:36 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-09-29 20:04:36 +0000 |
commit | ce74dc074355dcf8db9bd0c09ee2624089d3c3e7 (patch) | |
tree | 423ac7b5e98b4d7754e48b950160f638471c4ac8 /apps/plugins | |
parent | 64f949f2954db85968850f6e157e5c3b10df6b7d (diff) | |
download | rockbox-ce74dc074355dcf8db9bd0c09ee2624089d3c3e7.tar.gz rockbox-ce74dc074355dcf8db9bd0c09ee2624089d3c3e7.zip |
Cleaner implementation of the recent OSX simulator build fix. No need to define SHARED_FLAG in each Makefile. Just have configure create it in the root Makefile instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11095 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/chessbox/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/databox/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/doom/Makefile | 11 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/pacbox/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/rockboy/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/searchengine/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/sudoku/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/zxbox/Makefile | 6 |
10 files changed, 4 insertions, 61 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index adc7895da0..975aa7106c 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile | |||
@@ -13,12 +13,6 @@ INCLUDES = $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR)/export -I$(FIRMDIR)/c | |||
13 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ | 13 | CFLAGS = $(INCLUDES) $(GCCOPTS) $(TARGET) $(EXTRA_DEFINES) \ |
14 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN | 14 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN |
15 | 15 | ||
16 | ifeq ($(UNAME), Darwin) | ||
17 | SHARED_FLAG=-dynamiclib -Wl,-single_module | ||
18 | else | ||
19 | SHARED_FLAG=-shared | ||
20 | endif | ||
21 | |||
22 | ifdef APPEXTRA | 16 | ifdef APPEXTRA |
23 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 17 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
24 | endif | 18 | endif |
diff --git a/apps/plugins/chessbox/Makefile b/apps/plugins/chessbox/Makefile index 9d13a2e12d..b79b0eae70 100644 --- a/apps/plugins/chessbox/Makefile +++ b/apps/plugins/chessbox/Makefile | |||
@@ -12,12 +12,6 @@ INCLUDES = -I$(APPSDIR) -I.. -I. $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR) | |||
12 | CFLAGS = $(GCCOPTS) -O2 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ | 12 | CFLAGS = $(GCCOPTS) -O2 $(INCLUDES) $(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 | ||
20 | |||
21 | ifdef APPEXTRA | 15 | ifdef APPEXTRA |
22 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
23 | endif | 17 | endif |
diff --git a/apps/plugins/databox/Makefile b/apps/plugins/databox/Makefile index dba5597c8d..e47ae1e839 100644 --- a/apps/plugins/databox/Makefile +++ b/apps/plugins/databox/Makefile | |||
@@ -12,12 +12,6 @@ INCLUDES = -I$(APPSDIR) -I.. -I. $(TARGET_INC) -I$(FIRMDIR)/include -I$(FIRMDIR) | |||
12 | CFLAGS = $(INCLUDES) $(GCCOPTS) -O3 $(TARGET) $(EXTRA_DEFINES) \ | 12 | CFLAGS = $(INCLUDES) $(GCCOPTS) -O3 $(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 | ||
20 | |||
21 | ifdef APPEXTRA | 15 | ifdef APPEXTRA |
22 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
23 | endif | 17 | endif |
diff --git a/apps/plugins/doom/Makefile b/apps/plugins/doom/Makefile index a94a26a544..678e283427 100644 --- a/apps/plugins/doom/Makefile +++ b/apps/plugins/doom/Makefile | |||
@@ -3,7 +3,10 @@ | |||
3 | # $Id$ | 3 | # $Id$ |
4 | # | 4 | # |
5 | # $Log$ | 5 | # $Log$ |
6 | # Revision 1.5 2006/09/29 16:15:08 barrywardell | 6 | # Revision 1.6 2006/09/29 20:04:35 barrywardell |
7 | # Cleaner implementation of the recent OSX simulator build fix. No need to define SHARED_FLAG in each Makefile. Just have configure create it in the root Makefile instead. | ||
8 | # | ||
9 | # Revision 1.5 2006-09-29 16:15:08 barrywardell | ||
7 | # Allow UI simulator to be build on OS (Slightly updated version of FS5767) | 10 | # Allow UI simulator to be build on OS (Slightly updated version of FS5767) |
8 | # | 11 | # |
9 | # Revision 1.4 2006-07-27 13:27:19 linus | 12 | # Revision 1.4 2006-07-27 13:27:19 linus |
@@ -26,12 +29,6 @@ CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ | |||
26 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN \ | 29 | -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN \ |
27 | -Wno-strict-prototypes -O2 $(PROFILE_OPTS) | 30 | -Wno-strict-prototypes -O2 $(PROFILE_OPTS) |
28 | 31 | ||
29 | ifeq ($(UNAME), Darwin) | ||
30 | SHARED_FLAG=-dynamiclib -Wl,-single_module | ||
31 | else | ||
32 | SHARED_FLAG=-shared | ||
33 | endif | ||
34 | |||
35 | ifdef APPEXTRA | 32 | ifdef APPEXTRA |
36 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 33 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
37 | endif | 34 | endif |
diff --git a/apps/plugins/mpegplayer/Makefile b/apps/plugins/mpegplayer/Makefile index 5982884700..215223dafa 100644 --- a/apps/plugins/mpegplayer/Makefile +++ b/apps/plugins/mpegplayer/Makefile | |||
@@ -12,12 +12,6 @@ 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 | ||
20 | |||
21 | ifdef APPEXTRA | 15 | ifdef APPEXTRA |
22 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
23 | endif | 17 | endif |
diff --git a/apps/plugins/pacbox/Makefile b/apps/plugins/pacbox/Makefile index fbff8b5109..174d33f5bb 100644 --- a/apps/plugins/pacbox/Makefile +++ b/apps/plugins/pacbox/Makefile | |||
@@ -12,12 +12,6 @@ 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 | ||
20 | |||
21 | ifdef APPEXTRA | 15 | ifdef APPEXTRA |
22 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
23 | endif | 17 | endif |
diff --git a/apps/plugins/rockboy/Makefile b/apps/plugins/rockboy/Makefile index 91fdf67c31..b849c32dcf 100644 --- a/apps/plugins/rockboy/Makefile +++ b/apps/plugins/rockboy/Makefile | |||
@@ -16,12 +16,6 @@ ifdef APPEXTRA | |||
16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
17 | endif | 17 | endif |
18 | 18 | ||
19 | ifeq ($(UNAME), Darwin) | ||
20 | SHARED_FLAG=-dynamiclib -Wl,-single_module | ||
21 | else | ||
22 | SHARED_FLAG=-shared | ||
23 | endif | ||
24 | |||
25 | LINKFILE := $(OBJDIR)/link.lds | 19 | LINKFILE := $(OBJDIR)/link.lds |
26 | DEPFILE = $(OBJDIR)/dep-rockboy | 20 | DEPFILE = $(OBJDIR)/dep-rockboy |
27 | SRC = cpu.c emu.c events.c exports.c fastmem.c hw.c lcd.c lcdc.c loader.c \ | 21 | SRC = cpu.c emu.c events.c exports.c fastmem.c hw.c lcd.c lcdc.c loader.c \ |
diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile index d397f315f4..bc8f19d136 100644 --- a/apps/plugins/searchengine/Makefile +++ b/apps/plugins/searchengine/Makefile | |||
@@ -16,12 +16,6 @@ ifdef APPEXTRA | |||
16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
17 | endif | 17 | endif |
18 | 18 | ||
19 | ifeq ($(UNAME), Darwin) | ||
20 | SHARED_FLAG=-dynamiclib -Wl,-single_module | ||
21 | else | ||
22 | SHARED_FLAG=-shared | ||
23 | endif | ||
24 | |||
25 | LINKFILE := $(OBJDIR)/link.lds | 19 | LINKFILE := $(OBJDIR)/link.lds |
26 | DEPFILE = $(OBJDIR)/dep-searchengine | 20 | DEPFILE = $(OBJDIR)/dep-searchengine |
27 | SRC = searchengine.c parser.c token.c dbinterface.c | 21 | SRC = searchengine.c parser.c token.c dbinterface.c |
diff --git a/apps/plugins/sudoku/Makefile b/apps/plugins/sudoku/Makefile index 713d31bcb2..eab09fd5b5 100644 --- a/apps/plugins/sudoku/Makefile +++ b/apps/plugins/sudoku/Makefile | |||
@@ -17,12 +17,6 @@ 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 | |||
26 | LINKFILE := $(OBJDIR)/link.lds | 20 | LINKFILE := $(OBJDIR)/link.lds |
27 | DEPFILE = $(OBJDIR)/dep-sudoku | 21 | DEPFILE = $(OBJDIR)/dep-sudoku |
28 | 22 | ||
diff --git a/apps/plugins/zxbox/Makefile b/apps/plugins/zxbox/Makefile index 8668c3f4e7..055bf6e967 100644 --- a/apps/plugins/zxbox/Makefile +++ b/apps/plugins/zxbox/Makefile | |||
@@ -12,12 +12,6 @@ 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 | ||
20 | |||
21 | ifdef APPEXTRA | 15 | ifdef APPEXTRA |
22 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) | 16 | INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA))) |
23 | endif | 17 | endif |