diff options
Diffstat (limited to 'apps/codecs/libgme/libhes.make')
-rw-r--r-- | apps/codecs/libgme/libhes.make | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/codecs/libgme/libhes.make b/apps/codecs/libgme/libhes.make new file mode 100644 index 0000000000..e0018565fb --- /dev/null +++ b/apps/codecs/libgme/libhes.make | |||
@@ -0,0 +1,21 @@ | |||
1 | |||
2 | # libhes | ||
3 | HESLIB := $(CODECDIR)/libhes.a | ||
4 | HESLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libgme/HESSOURCES) | ||
5 | HESLIB_OBJ := $(call c2obj, $(HESLIB_SRC)) | ||
6 | OTHER_SRC += $(HESLIB_SRC) | ||
7 | |||
8 | $(HESLIB): $(HESLIB_OBJ) | ||
9 | $(SILENT)$(shell rm -f $@) | ||
10 | $(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null | ||
11 | |||
12 | HESFLAGS = $(filter-out -O%,$(CODECFLAGS)) -fno-strict-aliasing -DGME_HES_TYPE | ||
13 | ifeq ($(CPU),arm) | ||
14 | HESFLAGS += -O3 | ||
15 | else | ||
16 | HESFLAGS += -O2 | ||
17 | endif | ||
18 | |||
19 | $(CODECDIR)/libgme/%.o: $(ROOTDIR)/apps/codecs/libgme/%.c | ||
20 | $(SILENT)mkdir -p $(dir $@) | ||
21 | $(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) $(HESFLAGS) -c $< -o $@ | ||