Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 142 lines (120 sloc) 3.775 kB
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
1 AR=ar
2 ARFLAGS=crus
3 RM=rm -rf
eb7c46e remove all /bin/bash and replace them by @SHELL@ macro
Fneufneu authored
4 SHELL=@SHELL@
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
5 ARCH=@ARCH@
6 abs_top_srcdir=@abs_top_srcdir@
5b351f2 @elupus changed: reduce some of the entering / leaving directory clutter duri…
elupus authored
7 rel_top_srcdir=$(subst $(abspath $(abs_top_srcdir))/,,$(abspath $(CURDIR))/)
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
8 prefix=@prefix@
e51acb4 Allow the installation of files to be more configurable. Also fix the…
ceros7 authored
9 exec_prefix=@exec_prefix@
10 bindir=@bindir@
11 sbindir=@sbindir@
12 libexecdir=@libexecdir@
13 sysconfdir=@sysconfdir@
14 sharedstatedir=@sharedstatedir@
15 localstatedir=@localstatedir@
ee850c9 Merge branch 'fhs'
ceros7 authored
16 libdir=@libdir@
e51acb4 Allow the installation of files to be more configurable. Also fix the…
ceros7 authored
17 includedir=@includedir@
18 oldincludedir=@oldincludedir@
19 datarootdir=@datarootdir@
20 datadir=@datadir@
21 infodir=@infodir@
22 localedir=@localedir@
23 mandir=@mandir@
3334222 fixed: set $PACKAGE_TARNAME as it may be referenced by @docdir@
anssih authored
24 PACKAGE_TARNAME=@PACKAGE_TARNAME@
e51acb4 Allow the installation of files to be more configurable. Also fix the…
ceros7 authored
25 docdir=@docdir@
26 htmldir=@htmldir@
27 dvidir=@dvidir@
28 pdfdir=@pdfdir@
29 psdir=@psdir@
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
30 CXX=@CXX@
31 CC=@CC@
32 CXXFLAGS+=@CXXFLAGS@
33 CFLAGS+=@CFLAGS@
2cc18ed fixed: missing LDFLAGS/CFLAGS when removed from environment
anssih authored
34 LDFLAGS+=@LDFLAGS@
7ee0bda remove duplicate lib/include paths using sort
davilla authored
35 INCLUDES+=$(sort @INCLUDES@)
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
36 INCLUDES+=-I@abs_top_srcdir@/lib
37 INCLUDES+=-I@abs_top_srcdir@/xbmc
e227b81 @anssih removed: internal ffmpeg from includes when external is used
anssih authored
38 ifneq (@USE_EXTERNAL_FFMPEG@,1)
39 INCLUDES+=-I@abs_top_srcdir@/lib/ffmpeg
40 endif
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
41 INCLUDES+=-I@abs_top_srcdir@/xbmc/linux
993b743 @elupus changed: win32 has dvdplayer root in include dir, so let's have that …
elupus authored
42 INCLUDES+=-I@abs_top_srcdir@/xbmc/cores/dvdplayer
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
43 DEFINES+= \
5fb6323 @davilla prep for TARGET_xxx, move _LINUX into ARCH_DEFINES
davilla authored
44 @ARCH_DEFINES@ \
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
45 -D_FILE_DEFINED \
35f0a98 changed: updated ffmpeg to r23426
spiff_ authored
46 -D__STDC_CONSTANT_MACROS \
ee850c9 Merge branch 'fhs'
ceros7 authored
47 -DBIN_INSTALL_PATH="\"$(libdir)/xbmc\"" \
e51acb4 Allow the installation of files to be more configurable. Also fix the…
ceros7 authored
48 -DINSTALL_PATH="\"$(datarootdir)/xbmc\"" \
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
49 @SDL_DEFINES@ \
50 @DEFS@ \
51
52 ifeq ($(findstring osx,$(ARCH)), osx)
53 export MACOSX_DEPLOYMENT_TARGET=10.4
c51b118 Merged cptspiff's code-reshuffle branch.
theuni authored
54 INCLUDES+=-I@abs_top_srcdir@/xbmc/osx
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
55 endif
56
57 ifeq ($(ARCH), powerpc-osx)
58 BUNDLE1_O=-lbundle1.o
59 endif
60
2a9841b @elupus changed: silence compile output on linux
elupus authored
61 ifneq ($(V), 1)
5b351f2 @elupus changed: reduce some of the entering / leaving directory clutter duri…
elupus authored
62 SILENT_CPP=@echo "CPP $(rel_top_srcdir)$@";
63 SILENT_CC =@echo "CC $(rel_top_srcdir)$@";
64 SILENT_S =@echo "S $(rel_top_srcdir)$@";
65 SILENT_GCH=@echo "GCH $(rel_top_srcdir)$@";
66 SILENT_MM =@echo "MM $(rel_top_srcdir)$@";
67 SILENT_AR =@echo "AR $(rel_top_srcdir)$@";
68 SILENT_LD =@echo "LD $(rel_top_srcdir)$@";
2a9841b @elupus changed: silence compile output on linux
elupus authored
69 endif
70
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
71 OBJS+=$(filter %.o,$(SRCS:.cpp=.o))
72 OBJS+=$(filter %.o,$(SRCS:.c=.o))
73 OBJS+=$(filter %.o,$(SRCS:.S=.o))
74 OBJS+=$(filter %.o,$(SRCS:.mm=.o))
75 OBJS+=$(filter %.o,$(SRCS:.m=.o))
76
77 DEPS+=$(filter %.P,$(OBJS:.o=.P))
78
79 GEN_DEPS=\
80 cp $*.d $*.P \
81 && sed -e 's/\#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
82 -e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P \
83 && rm -f $*.d \
1f28471 @elupus fixed: on compile failure we must still error code so make aborts
elupus authored
84 || ( rm -f $*.P $@ && exit 1 )
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
85
86 %.o: %.cpp
87 @rm -f $@
b4157b3 @theuni fixed: linux build
theuni authored
88 $(SILENT_CPP) $(CXX) -MF $*.d -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ \
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
89 && $(GEN_DEPS)
90
91 %.o: %.cc
92 @rm -f $@
05e6b24 @theuni Use and display the correct compilers
theuni authored
93 $(SILENT_CPP) $(CXX) -MF $*.d -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ \
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
94 && $(GEN_DEPS)
95
96 %.o: %.c
97 @rm -f $@
b4157b3 @theuni fixed: linux build
theuni authored
98 $(SILENT_CC) $(CC) -MF $*.d -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ \
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
99 && $(GEN_DEPS)
100
101 %.o: %.C
102 @rm -f $@
05e6b24 @theuni Use and display the correct compilers
theuni authored
103 $(SILENT_CPP) $(CXX) -MF $*.d -MD -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ \
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
104 && $(GEN_DEPS)
105
106 %.o: %.S
107 @rm -f $@
108 $(SILENT_CC) $(CC) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@
2a9841b @elupus changed: silence compile output on linux
elupus authored
109
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
110
111 %.h.gch : %.h
2a9841b @elupus changed: silence compile output on linux
elupus authored
112 $(SILENT_GCH) $(CXX) -c $(CFLAGS) $(DEFINES) $(INCLUDES) $< -o $@
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
113
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
114 %.o: %.m
115 @rm -f $@
b4157b3 @theuni fixed: linux build
theuni authored
116 $(SILENT_MM) $(CXX) -MF $*.d -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ \
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
117 && $(GEN_DEPS)
118
119 %.o: %.mm
120 @rm -f $@
b4157b3 @theuni fixed: linux build
theuni authored
121 $(SILENT_MM) $(CXX) -MF $*.d -MD -c $(CXXFLAGS) $(DEFINES) $(INCLUDES) $< -o $@ \
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
122 && $(GEN_DEPS)
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
123
124
125 .PHONY : lib pch clean distclean distclean_evil
126
127 $(LIB): $(OBJS)
0c8bd21 @elupus fixed: forgot to silence ar command
elupus authored
128 $(SILENT_AR) $(AR) $(ARFLAGS) $(LIB) $(OBJS)
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
129
130 pch: $(PCH:.h=.h.gch)
131 for d in $(DIRS); do (cd "$$d"; $(MAKE) pch ); done
132
133 clean:
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
134 $(RM) $(OBJS) *.o $(LIB) $(SLIB) $(CLEAN_FILES) $(PCH:.h=.h.gch) $(DEPS)
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
135 for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" clean); fi ); done
136
137 distclean:
afc1bf8 @elupus fixed: make sure .P files get deleted on ctrl+C
elupus authored
138 $(RM) $(OBJS) *.o $(LIB) $(SLIB) $(STATICLIB) $(CLEAN_FILES) $(DISTCLEAN_FILES) $(PCH:.h=.h.gch) $(DEPS)
45285e8 step 3/4: Move linuxport to trunk. How'd I get roped into this?
AlTheKiller authored
139 for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" distclean || $(MAKE) -C "$$d" clean); fi ); done
88b2c26 Merge remote branch 'origin/gpl-compat'
ceros7 authored
140 if [ "$(shell pwd -P)" = "$(abs_top_srcdir)" ] || \
141 [ "$(shell pwd)" = "$(abs_top_srcdir)" ]; then rm -f $(AUTOGENERATED_MAKEFILES) Makefile.include Makefile; fi
Something went wrong with that request. Please try again.