Merge pull request #2948 from ace20022/blu_lang_fix
[vuplus_xbmc] / lib / addons / library.xbmc.codec / Makefile.in
1 ARCH=@ARCH@
2 INCLUDES=-I. -I../../../xbmc/addons/include
3 DEFINES+=
4 CXXFLAGS=-fPIC
5 LIBNAME=libXBMC_codec
6 OBJS=$(LIBNAME).o
7
8 LIB_SHARED=../../../addons/library.xbmc.codec/$(LIBNAME)-$(ARCH).so
9
10 all: $(LIB_SHARED)
11
12 $(LIB_SHARED): $(OBJS)
13 ifeq ($(findstring osx,$(ARCH)), osx)
14         $(CXX) $(LDFLAGS) -Wl,-alias_list,@abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper_mach_alias \
15         -bundle -undefined dynamic_lookup -o $@ \
16         @abs_top_srcdir@/xbmc/cores/DllLoader/exports/wrapper.o $(OBJS)
17 else
18         $(CXX) $(CFLAGS) $(LDFLAGS) -shared -g -o $(LIB_SHARED) $(OBJS)
19 endif
20
21 CLEAN_FILES = \
22         $(LIB_SHARED) \
23
24 DISTCLEAN_FILES= \
25         Makefile \
26
27 include ../../../Makefile.include