[4cef72]: Makefile.include.in  Maximize  Restore  History

Repo status: analyzing...

Download this file

112 lines (94 with data), 3.0 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
AR=ar
ARFLAGS=rus
RM=rm -f
ARCH=@ARCH@
abs_top_srcdir=@abs_top_srcdir@
prefix=@prefix@
CXX=@CXX@
CC=@CC@
CFLAGS+=@DEBUG_FLAGS@
CFLAGS+=@LZO_INCLUDES@
INCLUDES+=@INCLUDES@
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@
ifeq (linux,$(findstring linux, $(ARCH)))
ifeq ($(ARCH), x86_64-linux)
DEFINES+=-DDLL_PATH_LIBCURL="\"/usr/lib64/libcurl.so\""
else
DEFINES+=-DDLL_PATH_LIBCURL="\"/usr/lib/libcurl.so\""
endif
endif
ifeq ($(ARCH), osx)
export MACOSX_DEPLOYMENT_TARGET=10.4
endif
SHELL=/bin/bash
.cpp.o:
@rm -f ${<:.cpp=.o}
$(CXX) -MD -c $(CFLAGS) $(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}
$(CXX) -MD -c $(CFLAGS) $(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}
$(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}
$(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}
$(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.S=.o}
%.h.gch : %.h
$(CXX) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@
.m.o:
@rm -f ${<:.m=.o}
$(CXX) -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o ${<:.m=.o}
@cp $*.d $*.P; \
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
rm -f $*.d
#$(CXX) -c $(CFLAGS) $<
OBJS+=$(filter %.o,$(SRCS:.cpp=.o))
OBJS+=$(filter %.o,$(SRCS:.c=.o))
OBJS+=$(filter %.o,$(SRCS:.S=.o))
OBJS+=$(filter %.o,$(SRCS:.m=.o))
.PHONY : lib pch clean distclean distclean_evil
lib: $(OBJS)
pch: $(PCH:.h=.h.gch)
for d in $(DIRS); do (cd $$d; $(MAKE) pch ); done
clean:
$(RM) $(OBJS) *.o $(LIB) $(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_evil:
@echo "Removing all object files (.o)"
@find . -name "*.o" -exec echo 'Removing "{}"' \; -exec rm -f "{}" \;
@echo "Removing all precompiled header files (.h.gch)"
@find . -name "*.h.gch" -exec echo 'Removing "{}"' \; -exec rm -f "{}" \;
@echo "Removing all dependency files (.P)"
@find . -name "*.P" -exec echo 'Removing "{}"' \; -exec rm -f "{}" \;
@echo "Done."
distclean:
$(RM) $(OBJS) *.o $(LIB) $(CLEAN_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