Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
155 lines (138 sloc) 3.91 KB
AR=@AR@
RANLIB=@RANLIB@
ARFLAGS=crus
LD=@LD@
RM=rm -rf
SHELL=/bin/bash
ARCH=@ARCH@
PLATFORM=@PLATFORM@
abs_top_srcdir=@abs_top_srcdir@
prefix=@prefix@
CXX=@CXX@
CC=@CC@
CXXFLAGS+=@CXXFLAGS@
CXXFLAGS+=@DEBUG_FLAGS@
CFLAGS+=@CFLAGS@
CFLAGS+=@DEBUG_FLAGS@
INCLUDES+=@INCLUDES@
LDFLAGS=@LDFLAGS@
DEFINES+= \
-D_LINUX \
-D_FILE_DEFINED \
-D_REENTRANT \
-D_LARGEFILE64_SOURCE \
-D_FILE_OFFSET_BITS=64 \
-DINSTALL_PATH="\"@prefix@/share/xbmc\"" \
@SDL_DEFINES@ \
@ARCH_DEFINES@ \
@DEFS@ \
ifeq ($(findstring osx,$(ARCH)), osx)
export MACOSX_DEPLOYMENT_TARGET=@OSX@
endif
ifeq ($(ARCH), powerpc-osx)
BUNDLE1_O=-lbundle1.o
endif
.cpp.o:
@rm -f ${<:.cpp=.o}
ifeq ($(V), 1)
$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cpp=.o}
else
@echo " CXX ${<:.cpp=.o}"
@$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cpp=.o}
endif
@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}
ifeq ($(V), 1)
$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cc=.o}
else
@echo " CXX ${<:.cpp=.o}"
@$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.cc=.o}
endif
@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}
ifeq ($(V), 1)
$(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.c=.o}
else
@echo " CC ${<:.cpp=.o}"
@$(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.c=.o}
endif
@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}
ifeq ($(V), 1)
$(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.C=.o}
else
@echo " CC ${<:.cpp=.o}"
@$(CC) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.C=.o}
endif
@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}
ifeq ($(V), 1)
$(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.S=.o}
else
@echo " CC ${<:.cpp=.o}"
@$(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.S=.o}
endif
%.h.gch : %.h
$(CXX) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@
.m.o:
@rm -f ${<:.m=.o}
ifeq ($(V), 1)
$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.m=.o}
else
@echo " OBJC ${<:.cpp=.o}"
@$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.m=.o}
endif
@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}
ifeq ($(V), 1)
$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.mm=.o}
else
@echo " OBJC ${<:.cpp=.o}"
@$(CXX) -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.mm=.o}
endif
@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)
ifeq ($(V), 1)
-$(AR) $(ARFLAGS) $(LIB) $(OBJS)
else
@echo " AR ${LIB}"
-$(AR) $(ARFLAGS) $(LIB) $(OBJS)
endif
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)" = "$(abs_top_srcdir)" ]; then rm -f $(AUTOGENERATED_MAKEFILES) Makefile.include Makefile; fi
Something went wrong with that request. Please try again.