Last? Externals to new make methods
[xbmc:paulepanters-xbmc.git] / XBMC / xbmc / lib / libass / xbmc / Makefile.in
1 ARCH=@ARCH@
2 SYSDIR=../../../../system/players/dvdplayer
3 SO=libass-$(ARCH).so
4 SLIB=$(SYSDIR)/$(SO)
5
6 .PHONY: compile
7
8 ifeq ($(findstring osx,$(ARCH)), osx)
9 $(SLIB): ../libass/.libs/libass.dylib
10         gcc -bundle -flat_namespace -undefined suppress -shared -fPIC \
11         -mmacosx-version-min=10.4 -o $@ ../libass/.libs/*.o
12         ../../../../tools/Mach5/wrapper.rb $@;mv output.so $@
13         chmod +x $@
14
15 ../libass/.libs/libass.dylib: compile
16         export MACOSX_DEPLOYMENT_TARGET=10.4
17         $(MAKE) -C ..
18 else
19 $(SLIB): ../libass/.libs/libass.so
20         cp ../libass/.libs/libass.so $@
21
22 ../libass/.libs/libass.so: compile
23         CFLAGS="-D_LINUX -D_DLL -fPIC -O2" $(MAKE) -C ..
24 endif
25
26 include ../../../../Makefile.include