summaryrefslogtreecommitdiff
path: root/apps/codecs/libgme/kss/libkss.make
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libgme/kss/libkss.make')
-rwxr-xr-xapps/codecs/libgme/kss/libkss.make21
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/codecs/libgme/kss/libkss.make b/apps/codecs/libgme/kss/libkss.make
new file mode 100755
index 0000000000..115d28b557
--- /dev/null
+++ b/apps/codecs/libgme/kss/libkss.make
@@ -0,0 +1,21 @@
+
+# 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 $@