AR=ar ARFLAGS=crus RM=rm -rf SHELL=@SHELL@ ARCH=@ARCH@ abs_top_srcdir=@abs_top_srcdir@ prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ sbindir=@sbindir@ libexecdir=@libexecdir@ sysconfdir=@sysconfdir@ sharedstatedir=@sharedstatedir@ localstatedir=@localstatedir@ libdir=@libdir@ includedir=@includedir@ oldincludedir=@oldincludedir@ datarootdir=@datarootdir@ datadir=@datadir@ infodir=@infodir@ localedir=@localedir@ mandir=@mandir@ PACKAGE_TARNAME=@PACKAGE_TARNAME@ docdir=@docdir@ htmldir=@htmldir@ dvidir=@dvidir@ pdfdir=@pdfdir@ psdir=@psdir@ CXX=@CXX@ CC=@CC@ CXXFLAGS+=@CXXFLAGS@ CFLAGS+=@CFLAGS@ LDFLAGS+=@LDFLAGS@ INCLUDES+=$(sort @INCLUDES@) INCLUDES+=-I@abs_top_srcdir@/lib INCLUDES+=-I@abs_top_srcdir@/xbmc ifneq (@USE_EXTERNAL_FFMPEG@,1) INCLUDES+=-I@abs_top_srcdir@/lib/ffmpeg endif INCLUDES+=-I@abs_top_srcdir@/xbmc/linux DEFINES+= \ -D_LINUX \ -D_FILE_DEFINED \ -D__STDC_CONSTANT_MACROS \ -DBIN_INSTALL_PATH="\"$(libdir)/xbmc\"" \ -DINSTALL_PATH="\"$(datarootdir)/xbmc\"" \ @SDL_DEFINES@ \ @ARCH_DEFINES@ \ @DEFS@ \ ifeq ($(findstring osx,$(ARCH)), osx) export MACOSX_DEPLOYMENT_TARGET=10.4 INCLUDES+=-I@abs_top_srcdir@/xbmc/osx endif ifeq ($(ARCH), powerpc-osx) BUNDLE1_O=-lbundle1.o endif ifneq ($(V), 1) SILENT_CPP=@echo "CPP $@"; SILENT_CC =@echo "CC $@"; SILENT_S =@echo "S $@"; SILENT_GCH=@echo "GCH $@"; SILENT_MM =@echo "MM $@"; SILENT_AR =@echo "AR $@"; endif .cpp.o: @rm -f ${<:.cpp=.o} $(SILENT_CPP) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cpp=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d .cc.o: @rm -f ${<:.cc=.o} $(SILENT_CC) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cc=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d .c.o: @rm -f ${<:.c=.o} $(SILENT_CC) $(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.c=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d .C.o: @rm -f ${<:.C=.o} $(SILENT_CC) $(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.C=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d .S.o: @rm -f ${<:.S=.o} $(SILENT_CC) $(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.S=.o} %.h.gch : %.h $(SILENT_GCH) $(CXX) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ .m.o: @rm -f ${<:.m=.o} $(SILENT_MM) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.m=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d .mm.o: @rm -f ${<:.mm=.o} $(SILENT_MM) $(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.mm=.o} @cp $*.d $*.P; \ sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \ rm -f $*.d OBJS+=$(filter %.o,$(SRCS:.cpp=.o)) OBJS+=$(filter %.o,$(SRCS:.c=.o)) OBJS+=$(filter %.o,$(SRCS:.S=.o)) OBJS+=$(filter %.o,$(SRCS:.mm=.o)) OBJS+=$(filter %.o,$(SRCS:.m=.o)) .PHONY : lib pch clean distclean distclean_evil $(LIB): $(OBJS) $(SILENT_AR) $(AR) $(ARFLAGS) $(LIB) $(OBJS) pch: $(PCH:.h=.h.gch) for d in $(DIRS); do (cd "$$d"; $(MAKE) pch ); done clean: $(RM) $(OBJS) *.o $(LIB) $(SLIB) $(CLEAN_FILES) $(PCH:.h=.h.gch) $(OBJS:.o=.P) for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" clean); fi ); done distclean: $(RM) $(OBJS) *.o $(LIB) $(SLIB) $(STATICLIB) $(CLEAN_FILES) $(DISTCLEAN_FILES) $(PCH:.h=.h.gch) $(OBJS:.o=.P) for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" distclean || $(MAKE) -C "$$d" clean); fi ); done if [ "$(shell pwd -P)" = "$(abs_top_srcdir)" ] || \ [ "$(shell pwd)" = "$(abs_top_srcdir)" ]; then rm -f $(AUTOGENERATED_MAKEFILES) Makefile.include Makefile; fi