ARCH=@ARCH@ INCLUDES=-I. -I../../../xbmc/addons/include DEFINES+= CXXFLAGS=-fPIC LIBNAME=libXBMC_codec OBJS=$(LIBNAME).o LIB_SHARED=../../../addons/library.xbmc.codec/$(LIBNAME)-$(ARCH).so all: $(LIB_SHARED) $(LIB_SHARED): $(OBJS) ifeq ($(findstring osx,$(ARCH)), osx) $(CXX) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \ -bundle -undefined dynamic_lookup -o $@ \ @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS) else $(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS) endif CLEAN_FILES = \ $(LIB_SHARED) \ DISTCLEAN_FILES= \ Makefile \ include ../../../Makefile.include