summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-18 15:17:25 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-18 15:17:25 +0000
commit46d7fb9b4a59dcebf9b68c38bc77b2c0f0761d33 (patch)
tree8165a373967a826ba67826b60f55911ac344c028
parent1466519bd8acb2ac9a26368c638ae42b01f5e890 (diff)
Roll back r30328. Sorry for any inconvenience.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30329 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/codecs.make23
-rw-r--r--apps/codecs/libgme/AYSOURCES6
-rw-r--r--apps/codecs/libgme/GBSSOURCES8
-rw-r--r--apps/codecs/libgme/HESSOURCES7
-rw-r--r--apps/codecs/libgme/KSSSOURCES13
-rw-r--r--apps/codecs/libgme/NSFSOURCES15
-rw-r--r--apps/codecs/libgme/SGCSOURCES10
-rw-r--r--apps/codecs/libgme/VGMSOURCES12
-rwxr-xr-xapps/codecs/libgme/ay/AYSOURCES6
-rwxr-xr-xapps/codecs/libgme/ay/libay.make21
-rw-r--r--apps/codecs/libgme/emu2413/EMU2413SOURCES3
-rw-r--r--apps/codecs/libgme/emu2413/libemu2413.make21
-rw-r--r--apps/codecs/libgme/gbs/GBSSOURCES8
-rw-r--r--apps/codecs/libgme/gbs/libgbs.make21
-rw-r--r--apps/codecs/libgme/hes/HESSOURCES7
-rw-r--r--apps/codecs/libgme/hes/libhes.make21
-rwxr-xr-xapps/codecs/libgme/kss/KSSSOURCES12
-rwxr-xr-xapps/codecs/libgme/kss/libkss.make21
-rw-r--r--apps/codecs/libgme/libgbs.make21
-rw-r--r--apps/codecs/libgme/libhes.make21
-rw-r--r--apps/codecs/libgme/libkss.make21
-rw-r--r--apps/codecs/libgme/libnsf.make21
-rw-r--r--apps/codecs/libgme/libsgc.make21
-rw-r--r--apps/codecs/libgme/libvgm.make21
-rw-r--r--apps/codecs/libgme/nsf/NSFSOURCES14
-rw-r--r--apps/codecs/libgme/nsf/libnsf.make21
-rw-r--r--apps/codecs/libgme/sgc/SGCSOURCES7
-rw-r--r--apps/codecs/libgme/sgc/libsgc.make21
-rw-r--r--apps/codecs/libgme/vgm/VGMSOURCES10
-rw-r--r--apps/codecs/libgme/vgm/libvgm.make21
30 files changed, 208 insertions, 247 deletions
diff --git a/apps/codecs/codecs.make b/apps/codecs/codecs.make
index 69c6600c30..19ff60ba3a 100644
--- a/apps/codecs/codecs.make
+++ b/apps/codecs/codecs.make
@@ -43,14 +43,13 @@ include $(APPSDIR)/codecs/librm/librm.make
include $(APPSDIR)/codecs/libatrac/libatrac.make
include $(APPSDIR)/codecs/libpcm/libpcm.make
include $(APPSDIR)/codecs/libtta/libtta.make
-include $(APPSDIR)/codecs/libgme/ay/libay.make
-include $(APPSDIR)/codecs/libgme/gbs/libgbs.make
-include $(APPSDIR)/codecs/libgme/hes/libhes.make
-include $(APPSDIR)/codecs/libgme/nsf/libnsf.make
-include $(APPSDIR)/codecs/libgme/sgc/libsgc.make
-include $(APPSDIR)/codecs/libgme/vgm/libvgm.make
-include $(APPSDIR)/codecs/libgme/kss/libkss.make
-include $(APPSDIR)/codecs/libgme/emu2413/libemu2413.make
+include $(APPSDIR)/codecs/libgme/libay.make
+include $(APPSDIR)/codecs/libgme/libgbs.make
+include $(APPSDIR)/codecs/libgme/libhes.make
+include $(APPSDIR)/codecs/libgme/libnsf.make
+include $(APPSDIR)/codecs/libgme/libsgc.make
+include $(APPSDIR)/codecs/libgme/libvgm.make
+include $(APPSDIR)/codecs/libgme/libkss.make
# compile flags for codecs
CODECFLAGS = $(CFLAGS) -fstrict-aliasing -I$(APPSDIR)/codecs \
@@ -104,10 +103,10 @@ $(CODECDIR)/tta.codec : $(CODECDIR)/libtta.a
$(CODECDIR)/ay.codec : $(CODECDIR)/libay.a
$(CODECDIR)/gbs.codec : $(CODECDIR)/libgbs.a
$(CODECDIR)/hes.codec : $(CODECDIR)/libhes.a
-$(CODECDIR)/nsf.codec : $(CODECDIR)/libnsf.a $(CODECDIR)/libemu2413.a
-$(CODECDIR)/sgc.codec : $(CODECDIR)/libsgc.a $(CODECDIR)/libemu2413.a
-$(CODECDIR)/vgm.codec : $(CODECDIR)/libvgm.a $(CODECDIR)/libemu2413.a
-$(CODECDIR)/kss.codec : $(CODECDIR)/libkss.a $(CODECDIR)/libemu2413.a
+$(CODECDIR)/nsf.codec : $(CODECDIR)/libnsf.a
+$(CODECDIR)/sgc.codec : $(CODECDIR)/libsgc.a
+$(CODECDIR)/vgm.codec : $(CODECDIR)/libvgm.a
+$(CODECDIR)/kss.codec : $(CODECDIR)/libkss.a
$(CODECS): $(CODECLIB) # this must be last in codec dependency list
diff --git a/apps/codecs/libgme/AYSOURCES b/apps/codecs/libgme/AYSOURCES
index e69de29bb2..51253fe2f1 100644
--- a/apps/codecs/libgme/AYSOURCES
+++ b/apps/codecs/libgme/AYSOURCES
@@ -0,0 +1,6 @@
+ay_apu.c
+ay_cpu.c
+ay_emu.c
+blip_buffer.c
+multi_buffer.c
+z80_cpu.c
diff --git a/apps/codecs/libgme/GBSSOURCES b/apps/codecs/libgme/GBSSOURCES
index e69de29bb2..5548fd85eb 100644
--- a/apps/codecs/libgme/GBSSOURCES
+++ b/apps/codecs/libgme/GBSSOURCES
@@ -0,0 +1,8 @@
+gb_apu.c
+gb_cpu.c
+gbs_cpu.c
+gb_oscs.c
+gbs_emu.c
+blip_buffer.c
+multi_buffer.c
+rom_data.c
diff --git a/apps/codecs/libgme/HESSOURCES b/apps/codecs/libgme/HESSOURCES
index e69de29bb2..58a38f2f5a 100644
--- a/apps/codecs/libgme/HESSOURCES
+++ b/apps/codecs/libgme/HESSOURCES
@@ -0,0 +1,7 @@
+hes_apu.c
+hes_apu_adpcm.c
+hes_cpu.c
+hes_emu.c
+blip_buffer.c
+multi_buffer.c
+rom_data.c
diff --git a/apps/codecs/libgme/KSSSOURCES b/apps/codecs/libgme/KSSSOURCES
index e69de29bb2..8e9c6601bb 100644
--- a/apps/codecs/libgme/KSSSOURCES
+++ b/apps/codecs/libgme/KSSSOURCES
@@ -0,0 +1,13 @@
+ay_apu.c
+kss_cpu.c
+kss_emu.c
+kss_scc_apu.c
+opl_apu.c
+sms_apu.c
+z80_cpu.c
+blip_buffer.c
+multi_buffer.c
+rom_data.c
+emu2413.c
+emu8950.c
+emuadpcm.c
diff --git a/apps/codecs/libgme/NSFSOURCES b/apps/codecs/libgme/NSFSOURCES
index e69de29bb2..d96e1d3f32 100644
--- a/apps/codecs/libgme/NSFSOURCES
+++ b/apps/codecs/libgme/NSFSOURCES
@@ -0,0 +1,15 @@
+nes_apu.c
+nes_cpu.c
+nes_fds_apu.c
+nes_fme7_apu.c
+nes_namco_apu.c
+nes_oscs.c
+nes_vrc6_apu.c
+nes_vrc7_apu.c
+nsf_cpu.c
+nsf_emu.c
+nsfe_info.c
+blip_buffer.c
+multi_buffer.c
+rom_data.c
+emu2413.c
diff --git a/apps/codecs/libgme/SGCSOURCES b/apps/codecs/libgme/SGCSOURCES
index e69de29bb2..72b06efef9 100644
--- a/apps/codecs/libgme/SGCSOURCES
+++ b/apps/codecs/libgme/SGCSOURCES
@@ -0,0 +1,10 @@
+sgc_cpu.c
+sgc_emu.c
+sms_apu.c
+sms_fm_apu.c
+ym2413_emu.c
+z80_cpu.c
+blip_buffer.c
+multi_buffer.c
+rom_data.c
+emu2413.c
diff --git a/apps/codecs/libgme/VGMSOURCES b/apps/codecs/libgme/VGMSOURCES
index e69de29bb2..ed32baca0d 100644
--- a/apps/codecs/libgme/VGMSOURCES
+++ b/apps/codecs/libgme/VGMSOURCES
@@ -0,0 +1,12 @@
+blip_buffer.c
+multi_buffer.c
+resampler.c
+sms_apu.c
+vgm_emu.c
+emu2413.c
+ym2413_emu.c
+ym2612_emu.c
+inflate/bbfuncs.c
+inflate/inflate.c
+inflate/mallocer.c
+inflate/mbreader.c
diff --git a/apps/codecs/libgme/ay/AYSOURCES b/apps/codecs/libgme/ay/AYSOURCES
deleted file mode 100755
index 51253fe2f1..0000000000
--- a/apps/codecs/libgme/ay/AYSOURCES
+++ /dev/null
@@ -1,6 +0,0 @@
-ay_apu.c
-ay_cpu.c
-ay_emu.c
-blip_buffer.c
-multi_buffer.c
-z80_cpu.c
diff --git a/apps/codecs/libgme/ay/libay.make b/apps/codecs/libgme/ay/libay.make
deleted file mode 100755
index 9ad661986d..0000000000
--- a/apps/codecs/libgme/ay/libay.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libay
-AYLIB := $(CODECDIR)/libay.a
-AYLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/ay/AYSOURCES)
-AYLIB_OBJ := $(call c2obj, $(AYLIB_SRC))
-OTHER_SRC += $(AYLIB_SRC)
-
-$(AYLIB): $(AYLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-AYFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_AY_TYPE
-ifeq ($(CPU),arm)
- AYFLAGS += -O1
-else
- AYFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/ay/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(AYFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/emu2413/EMU2413SOURCES b/apps/codecs/libgme/emu2413/EMU2413SOURCES
deleted file mode 100644
index dcde7ea719..0000000000
--- a/apps/codecs/libgme/emu2413/EMU2413SOURCES
+++ /dev/null
@@ -1,3 +0,0 @@
-sms_fm_apu.c
-ym2413_emu.c
-emu2413.c
diff --git a/apps/codecs/libgme/emu2413/libemu2413.make b/apps/codecs/libgme/emu2413/libemu2413.make
deleted file mode 100644
index 74f51c7664..0000000000
--- a/apps/codecs/libgme/emu2413/libemu2413.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libemu
-EMULIB := $(CODECDIR)/libemu2413.a
-EMULIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/emu2413/EMU2413SOURCES)
-EMULIB_OBJ := $(call c2obj, $(EMULIB_SRC))
-OTHER_SRC += $(EMULIB_SRC)
-
-$(EMULIB): $(EMULIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-EMUFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_EMU_TYPE
-ifeq ($(CPU),arm)
- EMUFLAGS += -O3
-else
- EMUFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/emu2413/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(EMUFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/gbs/GBSSOURCES b/apps/codecs/libgme/gbs/GBSSOURCES
deleted file mode 100644
index 5548fd85eb..0000000000
--- a/apps/codecs/libgme/gbs/GBSSOURCES
+++ /dev/null
@@ -1,8 +0,0 @@
-gb_apu.c
-gb_cpu.c
-gbs_cpu.c
-gb_oscs.c
-gbs_emu.c
-blip_buffer.c
-multi_buffer.c
-rom_data.c
diff --git a/apps/codecs/libgme/gbs/libgbs.make b/apps/codecs/libgme/gbs/libgbs.make
deleted file mode 100644
index 260e0bc324..0000000000
--- a/apps/codecs/libgme/gbs/libgbs.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libgbs
-GBSLIB := $(CODECDIR)/libgbs.a
-GBSLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/gbs/GBSSOURCES)
-GBSLIB_OBJ := $(call c2obj, $(GBSLIB_SRC))
-OTHER_SRC += $(GBSLIB_SRC)
-
-$(GBSLIB): $(GBSLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-GBSFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_GBS_TYPE
-ifeq ($(CPU),arm)
- GBSFLAGS += -O1
-else
- GBSFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/gbs/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(GBSFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/hes/HESSOURCES b/apps/codecs/libgme/hes/HESSOURCES
deleted file mode 100644
index 58a38f2f5a..0000000000
--- a/apps/codecs/libgme/hes/HESSOURCES
+++ /dev/null
@@ -1,7 +0,0 @@
-hes_apu.c
-hes_apu_adpcm.c
-hes_cpu.c
-hes_emu.c
-blip_buffer.c
-multi_buffer.c
-rom_data.c
diff --git a/apps/codecs/libgme/hes/libhes.make b/apps/codecs/libgme/hes/libhes.make
deleted file mode 100644
index 6d89eae248..0000000000
--- a/apps/codecs/libgme/hes/libhes.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libhes
-HESLIB := $(CODECDIR)/libhes.a
-HESLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/hes/HESSOURCES)
-HESLIB_OBJ := $(call c2obj, $(HESLIB_SRC))
-OTHER_SRC += $(HESLIB_SRC)
-
-$(HESLIB): $(HESLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-HESFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_HES_TYPE
-ifeq ($(CPU),arm)
- HESFLAGS += -O1
-else
- HESFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/hes/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(HESFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/kss/KSSSOURCES b/apps/codecs/libgme/kss/KSSSOURCES
deleted file mode 100755
index 61dd42ad51..0000000000
--- a/apps/codecs/libgme/kss/KSSSOURCES
+++ /dev/null
@@ -1,12 +0,0 @@
-ay_apu.c
-kss_cpu.c
-kss_emu.c
-kss_scc_apu.c
-opl_apu.c
-sms_apu.c
-z80_cpu.c
-blip_buffer.c
-multi_buffer.c
-rom_data.c
-emu8950.c
-emuadpcm.c
diff --git a/apps/codecs/libgme/kss/libkss.make b/apps/codecs/libgme/kss/libkss.make
deleted file mode 100755
index 115d28b557..0000000000
--- a/apps/codecs/libgme/kss/libkss.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libkss
-KSSLIB := $(CODECDIR)/libkss.a
-KSSLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/kss/KSSSOURCES)
-KSSLIB_OBJ := $(call c2obj, $(KSSLIB_SRC))
-OTHER_SRC += $(KSSLIB_SRC)
-
-$(KSSLIB): $(KSSLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-KSSFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_KSS_TYPE
-ifeq ($(CPU),arm)
- KSSFLAGS += -O1
-else
- KSSFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/kss/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(KSSFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/libgbs.make b/apps/codecs/libgme/libgbs.make
index e69de29bb2..cf6ff01274 100644
--- a/apps/codecs/libgme/libgbs.make
+++ b/apps/codecs/libgme/libgbs.make
@@ -0,0 +1,21 @@
+
+# libgbs
+GBSLIB := $(CODECDIR)/libgbs.a
+GBSLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/GBSSOURCES)
+GBSLIB_OBJ := $(call c2obj, $(GBSLIB_SRC))
+OTHER_SRC += $(GBSLIB_SRC)
+
+$(GBSLIB): $(GBSLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+GBSFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_GBS_TYPE
+ifeq ($(CPU),arm)
+ GBSFLAGS += -O3
+else
+ GBSFLAGS += -O2
+endif
+
+$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(GBSFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/libhes.make b/apps/codecs/libgme/libhes.make
index e69de29bb2..e0018565fb 100644
--- a/apps/codecs/libgme/libhes.make
+++ b/apps/codecs/libgme/libhes.make
@@ -0,0 +1,21 @@
+
+# libhes
+HESLIB := $(CODECDIR)/libhes.a
+HESLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/HESSOURCES)
+HESLIB_OBJ := $(call c2obj, $(HESLIB_SRC))
+OTHER_SRC += $(HESLIB_SRC)
+
+$(HESLIB): $(HESLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+HESFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_HES_TYPE
+ifeq ($(CPU),arm)
+ HESFLAGS += -O3
+else
+ HESFLAGS += -O2
+endif
+
+$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(HESFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/libkss.make b/apps/codecs/libgme/libkss.make
index e69de29bb2..0e2dd54bc2 100644
--- a/apps/codecs/libgme/libkss.make
+++ b/apps/codecs/libgme/libkss.make
@@ -0,0 +1,21 @@
+
+# libkss
+KSSLIB := $(CODECDIR)/libkss.a
+KSSLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/KSSSOURCES)
+KSSLIB_OBJ := $(call c2obj, $(KSSLIB_SRC))
+OTHER_SRC += $(KSSLIB_SRC)
+
+$(KSSLIB): $(KSSLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+KSSFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_KSS_TYPE
+ifeq ($(CPU),arm)
+ KSSFLAGS += -O3
+else
+ KSSFLAGS += -O2
+endif
+
+$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(KSSFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/libnsf.make b/apps/codecs/libgme/libnsf.make
index e69de29bb2..8b9df7526f 100644
--- a/apps/codecs/libgme/libnsf.make
+++ b/apps/codecs/libgme/libnsf.make
@@ -0,0 +1,21 @@
+
+# libnsf
+NSFLIB := $(CODECDIR)/libnsf.a
+NSFLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/NSFSOURCES)
+NSFLIB_OBJ := $(call c2obj, $(NSFLIB_SRC))
+OTHER_SRC += $(NSFLIB_SRC)
+
+$(NSFLIB): $(NSFLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+NSFFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_NSF_TYPE
+ifeq ($(CPU),arm)
+ NSFFLAGS += -O3
+else
+ NSFFLAGS += -O2
+endif
+
+$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(NSFFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/libsgc.make b/apps/codecs/libgme/libsgc.make
index e69de29bb2..0defe788c6 100644
--- a/apps/codecs/libgme/libsgc.make
+++ b/apps/codecs/libgme/libsgc.make
@@ -0,0 +1,21 @@
+
+# libsgc
+SGCLIB := $(CODECDIR)/libsgc.a
+SGCLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/SGCSOURCES)
+SGCLIB_OBJ := $(call c2obj, $(SGCLIB_SRC))
+OTHER_SRC += $(SGCLIB_SRC)
+
+$(SGCLIB): $(SGCLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+SGCFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_SGC_TYPE
+ifeq ($(CPU),arm)
+ SGCFLAGS += -O3
+else
+ SGCFLAGS += -O2
+endif
+
+$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(SGCFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/libvgm.make b/apps/codecs/libgme/libvgm.make
index e69de29bb2..f0e7cbb598 100644
--- a/apps/codecs/libgme/libvgm.make
+++ b/apps/codecs/libgme/libvgm.make
@@ -0,0 +1,21 @@
+
+# libvgm
+VGMLIB := $(CODECDIR)/libvgm.a
+VGMLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/VGMSOURCES)
+VGMLIB_OBJ := $(call c2obj, $(VGMLIB_SRC))
+OTHER_SRC += $(VGMLIB_SRC)
+
+$(VGMLIB): $(VGMLIB_OBJ)
+ $(SILENT)$(shell rm -f $@)
+ $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
+
+VGMFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_VGM_TYPE
+ifeq ($(CPU),arm)
+ VGMFLAGS += -O3
+else
+ VGMFLAGS += -O2
+endif
+
+$(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
+ $(SILENT)mkdir -p $(dir $@)
+ $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(VGMFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/nsf/NSFSOURCES b/apps/codecs/libgme/nsf/NSFSOURCES
deleted file mode 100644
index 54b4f82f60..0000000000
--- a/apps/codecs/libgme/nsf/NSFSOURCES
+++ /dev/null
@@ -1,14 +0,0 @@
-nes_apu.c
-nes_cpu.c
-nes_fds_apu.c
-nes_fme7_apu.c
-nes_namco_apu.c
-nes_oscs.c
-nes_vrc6_apu.c
-nes_vrc7_apu.c
-nsf_cpu.c
-nsf_emu.c
-nsfe_info.c
-blip_buffer.c
-multi_buffer.c
-rom_data.c
diff --git a/apps/codecs/libgme/nsf/libnsf.make b/apps/codecs/libgme/nsf/libnsf.make
deleted file mode 100644
index 644aa7408c..0000000000
--- a/apps/codecs/libgme/nsf/libnsf.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libnsf
-NSFLIB := $(CODECDIR)/libnsf.a
-NSFLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/nsf/NSFSOURCES)
-NSFLIB_OBJ := $(call c2obj, $(NSFLIB_SRC))
-OTHER_SRC += $(NSFLIB_SRC)
-
-$(NSFLIB): $(NSFLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-NSFFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_NSF_TYPE
-ifeq ($(CPU),arm)
- NSFFLAGS += -O1
-else
- NSFFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/nsf/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(NSFFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/sgc/SGCSOURCES b/apps/codecs/libgme/sgc/SGCSOURCES
deleted file mode 100644
index 624d1cb897..0000000000
--- a/apps/codecs/libgme/sgc/SGCSOURCES
+++ /dev/null
@@ -1,7 +0,0 @@
-sgc_cpu.c
-sgc_emu.c
-sms_apu.c
-z80_cpu.c
-blip_buffer.c
-multi_buffer.c
-rom_data.c
diff --git a/apps/codecs/libgme/sgc/libsgc.make b/apps/codecs/libgme/sgc/libsgc.make
deleted file mode 100644
index 6984cdc4bb..0000000000
--- a/apps/codecs/libgme/sgc/libsgc.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libsgc
-SGCLIB := $(CODECDIR)/libsgc.a
-SGCLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/sgc/SGCSOURCES)
-SGCLIB_OBJ := $(call c2obj, $(SGCLIB_SRC))
-OTHER_SRC += $(SGCLIB_SRC)
-
-$(SGCLIB): $(SGCLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-SGCFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_SGC_TYPE
-ifeq ($(CPU),arm)
- SGCFLAGS += -O1
-else
- SGCFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/sgc/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(SGCFLAGS) -c $< -o $@
diff --git a/apps/codecs/libgme/vgm/VGMSOURCES b/apps/codecs/libgme/vgm/VGMSOURCES
deleted file mode 100644
index 32a8b356a1..0000000000
--- a/apps/codecs/libgme/vgm/VGMSOURCES
+++ /dev/null
@@ -1,10 +0,0 @@
-blip_buffer.c
-multi_buffer.c
-resampler.c
-sms_apu.c
-vgm_emu.c
-ym2612_emu.c
-inflate/bbfuncs.c
-inflate/inflate.c
-inflate/mallocer.c
-inflate/mbreader.c
diff --git a/apps/codecs/libgme/vgm/libvgm.make b/apps/codecs/libgme/vgm/libvgm.make
deleted file mode 100644
index 2ff7f94fab..0000000000
--- a/apps/codecs/libgme/vgm/libvgm.make
+++ /dev/null
@@ -1,21 +0,0 @@
-
-# libvgm
-VGMLIB := $(CODECDIR)/libvgm.a
-VGMLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/vgm/VGMSOURCES)
-VGMLIB_OBJ := $(call c2obj, $(VGMLIB_SRC))
-OTHER_SRC += $(VGMLIB_SRC)
-
-$(VGMLIB): $(VGMLIB_OBJ)
- $(SILENT)$(shell rm -f $@)
- $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
-
-VGMFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_VGM_TYPE
-ifeq ($(CPU),arm)
- VGMFLAGS += -O1
-else
- VGMFLAGS += -O2
-endif
-
-$(CODECDIR)/libgme/vgm/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c
- $(SILENT)mkdir -p $(dir $@)
- $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(VGMFLAGS) -c $< -o $@