2011-08-18 15:17:25 +00:00
|
|
|
|
|
|
|
# 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 $@
|