diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/codecs/codecs.make | 6 | ||||
-rw-r--r-- | apps/codecs/lib/tlsf/libtlsf.make | 2 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libwmapro.make | 2 | ||||
-rw-r--r-- | apps/plugins/doom/doom.make | 2 | ||||
-rw-r--r-- | apps/plugins/goban/goban.make | 2 | ||||
-rw-r--r-- | apps/plugins/lua/Makefile | 6 | ||||
-rw-r--r-- | apps/plugins/lua/lua.make | 2 | ||||
-rw-r--r-- | apps/plugins/pdbox/pdbox.make | 4 | ||||
-rw-r--r-- | apps/plugins/pictureflow/pictureflow.make | 2 | ||||
-rw-r--r-- | apps/plugins/plugins.make | 6 | ||||
-rw-r--r-- | apps/plugins/zxbox/zxbox.make | 2 |
11 files changed, 18 insertions, 18 deletions
diff --git a/apps/codecs/codecs.make b/apps/codecs/codecs.make index aab23b01a2..c137426591 100644 --- a/apps/codecs/codecs.make +++ b/apps/codecs/codecs.make | |||
@@ -47,7 +47,7 @@ include $(APPSDIR)/codecs/libtta/libtta.make | |||
47 | CODECFLAGS = $(CFLAGS) -fstrict-aliasing -I$(APPSDIR)/codecs \ | 47 | CODECFLAGS = $(CFLAGS) -fstrict-aliasing -I$(APPSDIR)/codecs \ |
48 | -I$(APPSDIR)/codecs/lib -DCODEC | 48 | -I$(APPSDIR)/codecs/lib -DCODEC |
49 | 49 | ||
50 | ifndef SIMVER | 50 | ifndef APP_TYPE |
51 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h | 51 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h |
52 | CODEC_LDS := $(APPSDIR)/plugins/plugin.lds # codecs and plugins use same file | 52 | CODEC_LDS := $(APPSDIR)/plugins/plugin.lds # codecs and plugins use same file |
53 | CODECLINK_LDS := $(CODECDIR)/codec.link | 53 | CODECLINK_LDS := $(CODECDIR)/codec.link |
@@ -115,7 +115,7 @@ $(CODECDIR)/%.o: $(ROOTDIR)/apps/codecs/%.S | |||
115 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \ | 115 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) \ |
116 | -I$(dir $<) $(CODECFLAGS) -c $< -o $@ | 116 | -I$(dir $<) $(CODECFLAGS) -c $< -o $@ |
117 | 117 | ||
118 | ifdef SIMVER | 118 | ifdef APP_TYPE |
119 | CODECLDFLAGS = $(SHARED_FLAG) # <-- from Makefile | 119 | CODECLDFLAGS = $(SHARED_FLAG) # <-- from Makefile |
120 | else | 120 | else |
121 | CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map | 121 | CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map |
@@ -135,7 +135,7 @@ $(CODECDIR)/%.codec: $(CODECDIR)/%.o | |||
135 | $(filter %.o, $^) \ | 135 | $(filter %.o, $^) \ |
136 | $(filter %.a, $+) \ | 136 | $(filter %.a, $+) \ |
137 | -lgcc $(CODECLDFLAGS) | 137 | -lgcc $(CODECLDFLAGS) |
138 | ifdef SIMVER | 138 | ifdef APP_TYPE |
139 | $(SILENT)cp $(CODECDIR)/$*.elf $@ | 139 | $(SILENT)cp $(CODECDIR)/$*.elf $@ |
140 | else | 140 | else |
141 | $(SILENT)$(OC) -O binary $(CODECDIR)/$*.elf $@ | 141 | $(SILENT)$(OC) -O binary $(CODECDIR)/$*.elf $@ |
diff --git a/apps/codecs/lib/tlsf/libtlsf.make b/apps/codecs/lib/tlsf/libtlsf.make index 464487f87f..7d37d29b21 100644 --- a/apps/codecs/lib/tlsf/libtlsf.make +++ b/apps/codecs/lib/tlsf/libtlsf.make | |||
@@ -18,7 +18,7 @@ $(TLSFLIB): $(TLSFLIB_OBJ) | |||
18 | 18 | ||
19 | TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections | 19 | TLSFLIBFLAGS = $(CODECFLAGS) -ffunction-sections |
20 | 20 | ||
21 | ifdef SIMVER | 21 | ifdef APP_TYPE |
22 | TLSFLIBFLAGS += -DTLSF_STATISTIC=1 | 22 | TLSFLIBFLAGS += -DTLSF_STATISTIC=1 |
23 | endif | 23 | endif |
24 | 24 | ||
diff --git a/apps/codecs/libwmapro/libwmapro.make b/apps/codecs/libwmapro/libwmapro.make index 42086a637a..0e8df7e9cb 100644 --- a/apps/codecs/libwmapro/libwmapro.make +++ b/apps/codecs/libwmapro/libwmapro.make | |||
@@ -17,7 +17,7 @@ $(WMAPROLIB): $(WMAPROLIB_OBJ) | |||
17 | $(SILENT)$(shell rm -f $@) | 17 | $(SILENT)$(shell rm -f $@) |
18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null | 18 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null |
19 | 19 | ||
20 | ifdef SIMVER | 20 | ifdef APP_TYPE |
21 | # wmapro needs libm in the simulator | 21 | # wmapro needs libm in the simulator |
22 | $(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o | 22 | $(CODECDIR)/wmapro.codec: $(CODECDIR)/wmapro.o |
23 | $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \ | 23 | $(call PRINTS,LD $(@F))$(CC) $(CODECFLAGS) -o $(CODECDIR)/wmapro.elf \ |
diff --git a/apps/plugins/doom/doom.make b/apps/plugins/doom/doom.make index 2f52da4a4e..58a4708819 100644 --- a/apps/plugins/doom/doom.make +++ b/apps/plugins/doom/doom.make | |||
@@ -21,7 +21,7 @@ OTHER_SRC += $(DOOM_SRC) | |||
21 | 21 | ||
22 | DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing | 22 | DOOMCFLAGS = $(PLUGINFLAGS) -Wno-strict-prototypes -O2 -fno-strict-aliasing |
23 | 23 | ||
24 | ifndef SIMVER | 24 | ifndef APP_TYPE |
25 | ifeq ($(TARGET), IRIVER_H100) | 25 | ifeq ($(TARGET), IRIVER_H100) |
26 | DOOMCCFLAGS += -mstructure-size-boundary=8 | 26 | DOOMCCFLAGS += -mstructure-size-boundary=8 |
27 | endif | 27 | endif |
diff --git a/apps/plugins/goban/goban.make b/apps/plugins/goban/goban.make index 03f2276659..2bc85ad8e1 100644 --- a/apps/plugins/goban/goban.make +++ b/apps/plugins/goban/goban.make | |||
@@ -15,7 +15,7 @@ GOBAN_OBJ := $(call c2obj, $(GOBAN_SRC)) | |||
15 | 15 | ||
16 | OTHER_SRC += $(GOBAN_SRC) | 16 | OTHER_SRC += $(GOBAN_SRC) |
17 | 17 | ||
18 | ifndef SIMVER | 18 | ifndef APP_TYPE |
19 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) | 19 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) |
20 | ### lowmem targets | 20 | ### lowmem targets |
21 | ROCKS += $(GOBAN_BUILDDIR)/goban.ovl | 21 | ROCKS += $(GOBAN_BUILDDIR)/goban.ovl |
diff --git a/apps/plugins/lua/Makefile b/apps/plugins/lua/Makefile index 6a4e497801..09535ac530 100644 --- a/apps/plugins/lua/Makefile +++ b/apps/plugins/lua/Makefile | |||
@@ -27,7 +27,7 @@ OBJS2 := $(SRC:%.c=$(OBJDIR)/%.o) | |||
27 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | 27 | OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) |
28 | DIRS = . | 28 | DIRS = . |
29 | 29 | ||
30 | ifndef SIMVER | 30 | ifndef APP_TYPE |
31 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) | 31 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) |
32 | LDS := archos.lds | 32 | LDS := archos.lds |
33 | OUTPUT = $(OUTDIR)/lua.ovl | 33 | OUTPUT = $(OUTDIR)/lua.ovl |
@@ -41,7 +41,7 @@ endif | |||
41 | 41 | ||
42 | all: $(OUTPUT) | 42 | all: $(OUTPUT) |
43 | 43 | ||
44 | ifndef SIMVER | 44 | ifndef APP_TYPE |
45 | $(OBJDIR)/lua.elf: $(OBJS) $(LINKFILE) | 45 | $(OBJDIR)/lua.elf: $(OBJS) $(LINKFILE) |
46 | $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ | 46 | $(call PRINTS,LD $(@F))$(CC) $(CFLAGS) -o $@ $(OBJS) -L$(BUILDDIR) -lplugin -lgcc \ |
47 | -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/lua.map | 47 | -T$(LINKFILE) -Wl,--gc-sections -Wl,-Map,$(OBJDIR)/lua.map |
@@ -50,7 +50,7 @@ $(OUTPUT): $(OBJDIR)/lua.elf | |||
50 | $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ | 50 | $(call PRINTS,OBJCOPY $(@F))$(OC) -O binary $< $@ |
51 | else | 51 | else |
52 | 52 | ||
53 | ifeq ($(SIMVER), sdl) | 53 | ifdef APP_TYPE |
54 | ################################################### | 54 | ################################################### |
55 | # This is the SDL simulator version | 55 | # This is the SDL simulator version |
56 | 56 | ||
diff --git a/apps/plugins/lua/lua.make b/apps/plugins/lua/lua.make index 93139dc8d4..f4dd7710c9 100644 --- a/apps/plugins/lua/lua.make +++ b/apps/plugins/lua/lua.make | |||
@@ -15,7 +15,7 @@ LUA_OBJ := $(call c2obj, $(LUA_SRC)) | |||
15 | 15 | ||
16 | OTHER_SRC += $(LUA_SRC) | 16 | OTHER_SRC += $(LUA_SRC) |
17 | 17 | ||
18 | ifndef SIMVER | 18 | ifndef APP_TYPE |
19 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) | 19 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) |
20 | ### lowmem targets | 20 | ### lowmem targets |
21 | ROCKS += $(LUA_BUILDDIR)/lua.ovl | 21 | ROCKS += $(LUA_BUILDDIR)/lua.ovl |
diff --git a/apps/plugins/pdbox/pdbox.make b/apps/plugins/pdbox/pdbox.make index d39d9fde1e..d2c836f513 100644 --- a/apps/plugins/pdbox/pdbox.make +++ b/apps/plugins/pdbox/pdbox.make | |||
@@ -22,7 +22,7 @@ $(PDBOXBUILDDIR)/pdbox.rock: $(PDBOX_OBJ) $(MPEG_OBJ) $(CODECDIR)/libtlsf.a | |||
22 | 22 | ||
23 | PDBOXFLAGS = $(PLUGINFLAGS) | 23 | PDBOXFLAGS = $(PLUGINFLAGS) |
24 | PDBOXLDFLAGS = $(PLUGINLDFLAGS) | 24 | PDBOXLDFLAGS = $(PLUGINLDFLAGS) |
25 | ifdef SIMVER | 25 | ifdef APP_TYPE |
26 | PDBOXLDFLAGS += -lm | 26 | PDBOXLDFLAGS += -lm |
27 | endif | 27 | endif |
28 | 28 | ||
@@ -36,7 +36,7 @@ $(PDBOXBUILDDIR)/pdbox.rock: | |||
36 | $(filter %.o, $^) \ | 36 | $(filter %.o, $^) \ |
37 | $(filter %.a, $+) \ | 37 | $(filter %.a, $+) \ |
38 | -lgcc $(PDBOXLDFLAGS) | 38 | -lgcc $(PDBOXLDFLAGS) |
39 | ifdef SIMVER | 39 | ifdef APP_TYPE |
40 | $(SILENT)cp $*.elf $@ | 40 | $(SILENT)cp $*.elf $@ |
41 | else | 41 | else |
42 | $(SILENT)$(OC) -O binary $*.elf $@ | 42 | $(SILENT)$(OC) -O binary $*.elf $@ |
diff --git a/apps/plugins/pictureflow/pictureflow.make b/apps/plugins/pictureflow/pictureflow.make index 28ad2aa39e..e3d4544e07 100644 --- a/apps/plugins/pictureflow/pictureflow.make +++ b/apps/plugins/pictureflow/pictureflow.make | |||
@@ -15,7 +15,7 @@ PICTUREFLOW_OBJ := $(call c2obj, $(PICTUREFLOW_SRC)) | |||
15 | 15 | ||
16 | OTHER_SRC += $(PICTUREFLOW_SRC) | 16 | OTHER_SRC += $(PICTUREFLOW_SRC) |
17 | 17 | ||
18 | ifndef SIMVER | 18 | ifndef APP_TYPE |
19 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) | 19 | ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) |
20 | ### lowmem targets | 20 | ### lowmem targets |
21 | ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.ovl | 21 | ROCKS += $(PICTUREFLOW_OBJDIR)/pictureflow.ovl |
diff --git a/apps/plugins/plugins.make b/apps/plugins/plugins.make index 4bd0cc952e..d3c66c34ca 100644 --- a/apps/plugins/plugins.make +++ b/apps/plugins/plugins.make | |||
@@ -27,7 +27,7 @@ PLUGINLIB_OBJ := $(PLUGINLIB_OBJ:.S=.o) | |||
27 | PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ)) | 27 | PLUGINLIB_OBJ := $(subst $(ROOTDIR),$(BUILDDIR),$(PLUGINLIB_OBJ)) |
28 | 28 | ||
29 | ### build data / rules | 29 | ### build data / rules |
30 | ifndef SIMVER | 30 | ifndef APP_TYPE |
31 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h | 31 | CONFIGFILE := $(FIRMDIR)/export/config/$(MODELNAME).h |
32 | PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds | 32 | PLUGIN_LDS := $(APPSDIR)/plugins/plugin.lds |
33 | PLUGINLINK_LDS := $(BUILDDIR)/apps/plugins/plugin.link | 33 | PLUGINLINK_LDS := $(BUILDDIR)/apps/plugins/plugin.link |
@@ -81,7 +81,7 @@ $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c | |||
81 | $(SILENT)mkdir -p $(dir $@) | 81 | $(SILENT)mkdir -p $(dir $@) |
82 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@ | 82 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@ |
83 | 83 | ||
84 | ifdef SIMVER | 84 | ifdef APP_TYPE |
85 | PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile | 85 | PLUGINLDFLAGS = $(SHARED_FLAG) # <-- from Makefile |
86 | else | 86 | else |
87 | PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map | 87 | PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map |
@@ -94,7 +94,7 @@ $(BUILDDIR)/%.rock: | |||
94 | $(filter %.o, $^) \ | 94 | $(filter %.o, $^) \ |
95 | $(filter %.a, $+) \ | 95 | $(filter %.a, $+) \ |
96 | -lgcc $(PLUGINLDFLAGS) | 96 | -lgcc $(PLUGINLDFLAGS) |
97 | ifdef SIMVER | 97 | ifdef APP_TYPE |
98 | $(SILENT)cp $(BUILDDIR)/$*.elf $@ | 98 | $(SILENT)cp $(BUILDDIR)/$*.elf $@ |
99 | else | 99 | else |
100 | $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ | 100 | $(SILENT)$(OC) -O binary $(BUILDDIR)/$*.elf $@ |
diff --git a/apps/plugins/zxbox/zxbox.make b/apps/plugins/zxbox/zxbox.make index de7312e009..a04801aa31 100644 --- a/apps/plugins/zxbox/zxbox.make +++ b/apps/plugins/zxbox/zxbox.make | |||
@@ -15,7 +15,7 @@ ZXBOX_OBJ := $(call c2obj, $(ZXBOX_SRC)) | |||
15 | 15 | ||
16 | OTHER_SRC += $(ZXBOX_SRC) | 16 | OTHER_SRC += $(ZXBOX_SRC) |
17 | 17 | ||
18 | ifndef SIMVER | 18 | ifndef APP_TYPE |
19 | ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES) | 19 | ifeq ($(findstring YES, $(call preprocess, $(APPSDIR)/plugins/BUILD_OVERLAY)), YES) |
20 | ## lowmem targets | 20 | ## lowmem targets |
21 | ROCKS += $(ZXBOX_OBJDIR)/zxbox.ovl | 21 | ROCKS += $(ZXBOX_OBJDIR)/zxbox.ovl |