3 AUTOGENERATED_MAKEFILES=@OUTPUT_FILES@
15 DVDPLAYER_ARCHIVES=xbmc/cores/dvdplayer/DVDPlayer.a \
16 xbmc/cores/dvdplayer/DVDCodecs/DVDCodecs.a \
17 xbmc/cores/dvdplayer/DVDCodecs/Audio/Audio.a \
18 xbmc/cores/dvdplayer/DVDCodecs/Overlay/Overlay.a \
19 xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a \
20 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a \
21 xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreams.a \
22 xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitles.a
24 DIRECTORY_ARCHIVES=$(DVDPLAYER_ARCHIVES) \
25 lib/SlingboxLib/SlingboxLib.a \
27 lib/libXDAAP/libxdaap.a \
29 lib/libsquish/libsquish.a \
30 lib/xbmc-dll-symbols/dll-symbols.a \
31 xbmc/addons/addons.a \
33 xbmc/cores/AudioEngine/audioengine.a \
34 xbmc/cores/DllLoader/dllloader.a \
35 xbmc/cores/DllLoader/exports/exports.a \
36 xbmc/cores/DllLoader/exports/util/exports_utils.a \
37 xbmc/cores/ExternalPlayer/ExternalPlayer.a \
38 xbmc/cores/VideoRenderers/VideoRenderer.a \
39 xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a \
41 xbmc/cores/paplayer/paplayer.a \
42 xbmc/cores/playercorefactory/playercorefactory.a \
43 xbmc/dbwrappers/dbwrappers.a \
44 xbmc/dialogs/dialogs.a \
46 xbmc/filesystem/MusicDatabaseDirectory/musicdatabasedirectory.a \
47 xbmc/filesystem/VideoDatabaseDirectory/videodatabasedirectory.a \
48 xbmc/filesystem/filesystem.a \
49 xbmc/guilib/guilib.a \
51 xbmc/interfaces/info/info.a \
52 xbmc/interfaces/interfaces.a \
53 xbmc/interfaces/json-rpc/json-rpc.a \
55 xbmc/music/dialogs/musicdialogs.a \
56 xbmc/music/infoscanner/musicscanner.a \
57 xbmc/music/karaoke/karaoke.a \
59 xbmc/music/tags/musictags.a \
60 xbmc/music/windows/musicwindows.a \
61 xbmc/network/websocket/websocket.a \
62 xbmc/network/network.a \
63 xbmc/peripherals/bus/peripheral-bus.a \
64 xbmc/peripherals/devices/peripheral-devices.a \
65 xbmc/peripherals/dialogs/peripheral-dialogs.a \
66 xbmc/peripherals/peripherals.a \
67 xbmc/pictures/pictures.a \
68 xbmc/playlists/playlists.a \
69 xbmc/powermanagement/powermanagement.a \
70 xbmc/programs/programs.a \
71 xbmc/pvr/addons/pvraddons.a \
72 xbmc/pvr/channels/pvrchannels.a \
73 xbmc/pvr/dialogs/pvrdialogs.a \
75 xbmc/pvr/recordings/pvrrecordings.a \
76 xbmc/pvr/timers/pvrtimers.a \
77 xbmc/pvr/windows/pvrwindows.a \
78 xbmc/rendering/rendering.a \
79 xbmc/settings/settings.a \
80 xbmc/settings/dialogs/settings_dialogs.a \
81 xbmc/settings/windows/settings_windows.a \
82 xbmc/storage/storage.a \
84 xbmc/video/dialogs/videodialogs.a \
86 xbmc/video/windows/videowindows.a \
88 xbmc/windowing/windowing.a \
89 xbmc/windows/windows.a \
93 NWAOBJSXBMC= xbmc/threads/threads.a \
94 xbmc/commons/commons.a
97 ifeq (@USE_WEB_SERVER@,1)
98 DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a
101 DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/legacy.a
102 DIRECTORY_ARCHIVES += xbmc/interfaces/python/python_binding.a
104 ifeq (@USE_OPENGL@,1)
105 DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a
108 ifeq (@USE_OPENGLES@,1)
109 DIRECTORY_ARCHIVES += xbmc/rendering/gles/rendering_gles.a
110 DIRECTORY_ARCHIVES += xbmc/windowing/egl/windowing_egl.a
111 DIRECTORY_ARCHIVES += xbmc/visualizations/EGLHelpers/eglhelpers.a
115 DIRECTORY_ARCHIVES += lib/libUPnP/libupnp.a \
116 xbmc/network/upnp/upnp.a
119 ifeq ($(findstring osx,@ARCH@),osx)
120 DIRECTORY_ARCHIVES += xbmc/osx/osx.a
121 DIRECTORY_ARCHIVES += xbmc/network/osx/network.a
122 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
123 DIRECTORY_ARCHIVES += xbmc/powermanagement/osx/powermanagement.a
124 DIRECTORY_ARCHIVES += xbmc/storage/osx/storage.a
125 DIRECTORY_ARCHIVES += xbmc/windowing/osx/windowing_osx.a
127 ifeq (@USE_ANDROID@,1)
128 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
129 DIRECTORY_ARCHIVES += xbmc/input/touch/input_touch.a
130 DIRECTORY_ARCHIVES += xbmc/input/touch/generic/input_touch_generic.a
131 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
132 DIRECTORY_ARCHIVES += xbmc/powermanagement/android/powermanagement_android.a
133 DIRECTORY_ARCHIVES += xbmc/storage/android/storage_android.a
134 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
136 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
137 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
138 DIRECTORY_ARCHIVES += xbmc/powermanagement/linux/powermanagement_linux.a
139 DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
140 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
144 ifeq ($(findstring freebsd,@ARCH@),freebsd)
145 DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
148 ifeq (@HAVE_XBMC_NONFREE@,1)
149 DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
152 BIN_DIRS = $(dir $(DIRECTORY_ARCHIVES)) $(dir $(NWAOBJSXBMC))
154 ifeq (@USE_ANDROID@,1)
155 DIRECTORY_ARCHIVES += xbmc/android/loader/AndroidDyload.a
156 DIRECTORY_ARCHIVES += xbmc/windowing/android/windowing_android.a
157 DIRECTORY_ARCHIVES += xbmc/android/activity/activity.a
158 DIRECTORY_ARCHIVES += xbmc/android/bionic_supplement/bionic_supplement.a
161 ifeq (@USE_AMLPLAYER@,1)
162 DIRECTORY_ARCHIVES += xbmc/cores/amlplayer/amlplayer.a
165 ifeq (@USE_OMXPLAYER@,1)
166 DIRECTORY_ARCHIVES += xbmc/cores/omxplayer/omxplayer.a
174 lib/stsound/StSoundLibrary \
175 lib/snesapu/SNES/SNESAPU \
178 ifeq (@USE_ASAP_CODEC@,1)
191 LIB_DIRS += lib/cmyth
196 ifneq (@DISABLE_RSXS@,1)
197 SS_DIRS+= xbmc/screensavers/rsxs-0.9/xbmc
200 VIS_DIRS=xbmc/visualizations/OpenGLSpectrum \
201 xbmc/visualizations/WaveForm
203 ifneq (@DISABLE_FISHBMC@,1)
204 VIS_DIRS+= xbmc/visualizations/fishBMC
207 ifneq (@DISABLE_PROJECTM@,1)
208 VIS_DIRS+= xbmc/visualizations/XBMCProjectM
211 ifneq (@DISABLE_GOOM@,1)
212 VIS_DIRS+=xbmc/visualizations/Goom
216 lib/addons/library.xbmc.addon \
217 lib/addons/library.xbmc.pvr \
218 lib/addons/library.xbmc.gui \
220 CONFLUENCE_MEDIA=addons/skin.confluence/media
221 SKIN_DIRS=$(CONFLUENCE_MEDIA)
223 ifeq (@USE_SKIN_TOUCHED@,1)
224 TOUCHED_MEDIA=addons/skin.touched/media
225 SKIN_DIRS+=$(TOUCHED_MEDIA)
228 DIRS= $(BIN_DIRS) $(EC_DIRS) $(XBMCTEX_DIRS) $(DVDPCODECS_DIRS) $(PAPCODECS_DIRS) \
229 $(LIB_DIRS) $(SS_DIRS) $(VIS_DIRS) $(LIBADDON_DIRS) $(SKIN_DIRS)
235 INCLUDES=$(sort @INCLUDES@)
237 CLEAN_FILES=xbmc.bin xbmc-xrandr libxbmc.so
239 DISTCLEAN_FILES=config.h config.log config.status tools/Linux/xbmc.sh \
240 tools/Linux/xbmc-standalone.sh autom4te.cache config.h.in~ \
241 system/libcpluff-@ARCH@.so
243 ifeq (@USE_LIBXBMC@,1)
244 FINAL_TARGETS+=libxbmc.so
245 ifeq (@USE_ANDROID@,1)
249 FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
251 FINAL_TARGETS+=Makefile externals
253 GTEST_DIR = lib/gtest
254 GTEST_INCLUDES = -I$(GTEST_DIR)/include
255 GTEST_LIBS = $(GTEST_DIR)/lib/.libs/libgtest.a
257 CHECK_DIRS = xbmc/filesystem/test \
260 xbmc/interfaces/python/test \
262 CHECK_LIBS = xbmc/filesystem/test/filesystemTest.a \
263 xbmc/utils/test/utilsTest.a \
264 xbmc/threads/test/threadTest.a \
265 xbmc/interfaces/python/test/pythonSwigTest.a \
266 xbmc/test/xbmc-test.a
267 CHECK_PROGRAMS = xbmc-test
269 CLEAN_FILES += $(CHECK_PROGRAMS)
271 all : $(FINAL_TARGETS)
272 @echo '-----------------------'
273 @echo 'XBMC built successfully'
274 @echo '-----------------------'
276 include Makefile.include
278 .PHONY : dllloader exports visualizations screensavers eventclients papcodecs \
279 dvdpcodecs imagelib codecs externals force skins libaddon check \
280 testframework testsuite
282 # hack targets to keep build system up to date
283 Makefile : config.status $(addsuffix .in, $(AUTOGENERATED_MAKEFILES))
284 @echo "Regenerating Makefiles..."
285 @./config.status &> /dev/null
288 config.status: configure
291 ifeq (@USE_TEXTUREPACKER@,1)
292 skins: tools/TexturePacker/TexturePacker force
293 $(MAKE) -C $(CONFLUENCE_MEDIA)
294 ifeq (@USE_SKIN_TOUCHED@,1)
295 $(MAKE) -C $(TOUCHED_MEDIA)
301 # Setup some dependencies for subdir makes
302 xbmc/cores/paplayer/paplayer.a: papcodecs
303 $(DVDPLAYER_ARCHIVES) : dvdpcodecs
305 $(NWAOBJSXBMC): force
306 @$(MAKE) $(if $(V),,-s) -C $(@D)
308 $(DIRECTORY_ARCHIVES): force
309 @$(MAKE) $(if $(V),,-s) -C $(@D)
311 lib/cpluff/libcpluff/.libs/libcpluff.a: force
312 $(MAKE) -C lib/cpluff/libcpluff
313 system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a exports
314 ifeq ($(findstring osx,@ARCH@), osx)
315 ifeq (@ARCH@, arm-osx)
316 $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
318 $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
321 $(CXX) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $< \
322 -Wl,--no-whole-archive \
323 `cat xbmc/cores/DllLoader/exports/wrapper.def` xbmc/cores/DllLoader/exports/wrapper.o -lexpat
326 exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a
327 $(MAKE) -C xbmc/cores/DllLoader/exports wrapper.def
328 dllloader: exports xbmc/cores/DllLoader/dllloader.a
330 ifeq (@USE_OPENGLES@,1)
331 EGLHELPERS=xbmc/visualizations/EGLHelpers/eglhelpers.a
334 $(VIS_DIRS): force exports $(EGLHELPERS)
337 $(SS_DIRS): force exports
340 visualizations: $(VIS_DIRS)
342 screensavers: $(SS_DIRS)
345 $(MAKE) -C lib/addons/library.xbmc.addon
346 $(MAKE) -C lib/addons/library.xbmc.gui
347 $(MAKE) -C lib/addons/library.xbmc.pvr
348 dvdpcodecs: dllloader
350 $(MAKE) -C lib/libdvd
352 ifeq ($(findstring osx,@ARCH@), osx)
353 ifneq ($(findstring arm,@ARCH@), arm)
354 $(MAKE) -C tools/EventClients/Clients/OSXRemote
357 $(MAKE) -C tools/EventClients
360 $(MAKE) -C lib/libexif
363 libhdhomerun: dllloader
364 $(MAKE) -C lib/libhdhomerun
365 papcodecs: dllloader dvdpcodecs
366 test -d system/players/paplayer || mkdir system/players/paplayer
367 $(MAKE) -C lib/xbadpcm
368 $(MAKE) -C lib/vgmstream
369 $(MAKE) -C lib/timidity
370 $(MAKE) -C lib/nosefart
371 ifneq ($(findstring arm-osx,@ARCH@), arm-osx)
372 $(MAKE) -C lib/libsidplay2
374 ifeq (@USE_ASAP_CODEC@,1)
375 ifneq ($(findstring osx,@ARCH@), osx)
376 $(MAKE) -C lib/asap asap-xbmc
379 $(MAKE) -C lib/stsound/StSoundLibrary
380 ifeq ($(or $(findstring powerpc,@ARCH@),$(findstring x86_64-linux,@ARCH@),$(findstring arm, @ARCH@),$(findstring freebsd,@ARCH@)),)
381 $(MAKE) -C lib/snesapu/SNES/SNESAPU
384 $(MAKE) -C lib/cximage-6.0
387 ifeq (@USE_PVR_ADDONS@,1)
388 $(MAKE) -C pvr-addons
391 codecs: papcodecs dvdpcodecs
393 libs: libhdhomerun imagelib libexif system/libcpluff-@ARCH@.so $(CMYTH)
395 externals: codecs libs visualizations screensavers libaddon pvraddons
398 codecs libs visualizations screensavers eventclients skins libaddon \
399 lib/libsquish/libsquish.a \
400 lib/libRTV/librtv.a \
401 lib/libXDAAP/libxdaap.a \
402 lib/SlingboxLib/SlingboxLib.a
404 OBJSXBMC =$(DIRECTORY_ARCHIVES)
408 xbmc/network/network.a \
409 xbmc/video/windows/videowindows.a \
411 xbmc/cores/DllLoader/exports/util/exports_utils.a \
412 xbmc/cores/DllLoader/exports/exports.a \
413 xbmc/settings/settings.a \
415 xbmc/pvr/addons/pvraddons.a \
416 xbmc/pvr/windows/pvrwindows.a \
417 xbmc/guilib/guilib.a # must be dynamic to avoid linker errors
419 ifeq ($(findstring freebsd,@ARCH@),freebsd)
420 DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
423 OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))
425 libxbmc.so: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
426 ifeq ($(findstring osx,@ARCH@), osx)
427 $(SILENT_LD) $(CXX) $(LDFLAGS) -bundle -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS)
429 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive -Wl,--no-undefined $(NWAOBJSXBMC) $(LIBS)
432 xbmc.bin: xbmc/main/main.a $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
434 ifeq ($(findstring osx,@ARCH@), osx)
435 $(SILENT_LD) $(CXX) $(LDFLAGS) -o xbmc.bin -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) xbmc/main/main.a $(LIBS) -rdynamic
437 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o xbmc.bin -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) xbmc/main/main.a -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS) -rdynamic
440 xbmc/main/main.a: force
443 xbmc-xrandr: xbmc-xrandr.c
444 ifneq (1,@USE_XRANDR@)
445 # xbmc-xrandr.c gets picked up by the default make rules
446 @echo "excluding xbmc-xrandr"
448 $(SILENT_LD) $(CC) $(CFLAGS) $(LDFLAGS) -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lX11 -lm
451 tools/TexturePacker/TexturePacker: lib/libsquish/libsquish.a xbmc/guilib/XBTF.h
452 $(MAKE) -C tools/TexturePacker/
455 install-bin: xbmc.bin # developement convenience target
456 sudo install -d $(DESTDIR)$(libdir)
457 sudo install xbmc.bin $(DESTDIR)$(libdir)/xbmc
459 ifeq ($(findstring osx,@ARCH@), osx)
460 # TODO: add osx install
462 install: install-binaries install-arch install-datas
465 make -C tools/android/packaging
467 install-binaries: install-scripts
468 @echo "Copying XBMC binary to $(DESTDIR)$(libdir)/xbmc/"
469 @install -d $(DESTDIR)$(libdir)/xbmc
470 ifeq (1,@USE_XRANDR@)
471 @install xbmc-xrandr $(DESTDIR)$(libdir)/xbmc/xbmc-xrandr
473 ifeq (@USE_LIBXBMC@,1)
474 @install libxbmc.so $(DESTDIR)$(libdir)/xbmc/libxbmc.so
476 @install xbmc.bin $(DESTDIR)$(libdir)/xbmc/xbmc.bin
477 @echo "You can run XBMC with the command 'xbmc'"
482 @# Arch dependent files
483 ifeq (@USE_PVR_ADDONS@,1)
484 $(MAKE) -C pvr-addons install
486 ifeq ($(findstring freebsd,@ARCH@), freebsd)
487 @find -E system addons -type f -not -iregex ".*svn.*" \
488 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
489 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
491 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
492 -exec printf " -- %-75.75s\r" "{}" \;
494 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
495 @find -E system addons -type f -not -iregex ".*svn.*" \
496 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
497 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
499 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
500 -exec printf " -- %-75.75s\r" "{}" \;
502 @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*\.so|.*\.vis|.*\.xbs|.*\.pvr" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
507 @install -d $(DESTDIR)$(bindir)
508 @install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
509 @install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
510 @install -d $(DESTDIR)$(datarootdir)/xbmc
511 @install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
512 @install -d $(DESTDIR)$(datarootdir)/xsessions
513 @install -m 0644 tools/Linux/xbmc-xsession.desktop $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
515 install-datas: install-scripts
516 @echo "Copying support and legal files..."
517 @install -d $(DESTDIR)$(docdir)
518 @for FILE in `ls LICENSE.GPL *.txt`; do \
519 install -m 0644 "$$FILE" "$(DESTDIR)$(docdir)/$$FILE"; done
520 @install -m 0644 "docs/README.linux" "$(DESTDIR)$(docdir)/README.linux"
522 @echo "Copying system files to $(DESTDIR)$(datarootdir)/xbmc"
523 @install -d $(DESTDIR)$(datarootdir)/xbmc
524 @# Arch independent files
525 ifeq ($(findstring bsd,@ARCH@), bsd)
526 @find -E addons language media sounds userdata system -type f \
527 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
528 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
530 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
531 -exec printf " -- %-75.75s\r" "{}" \;
533 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
534 @find -E addons language media sounds userdata system -type f \
535 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
536 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
538 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
539 -exec printf " -- %-75.75s\r" "{}" \;
541 @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll|.*\.pvr" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
545 @install -d $(DESTDIR)$(datarootdir)/applications
546 @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop
547 @install -d $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps
548 @install -m 0644 tools/Linux/xbmc-48x48.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xbmc.png
549 @install -d $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps
550 @install -m 0644 media/icon.png $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps/xbmc.png
551 @test -z "$(DESTDIR)" && gtk-update-icon-cache -f -q -t $(datadir)/icons/hicolor || :
554 @echo "Removing XBMC..."
555 @rm -rf $(DESTDIR)$(libdir)/xbmc
556 @rm -rf $(DESTDIR)$(datarootdir)/xbmc $(DESTDIR)$(bindir)/xbmc
557 @rm -rf $(DESTDIR)$(bindir)/xbmc-standalone
558 @rm -rf $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
559 @rm -rf $(libdir)/libXBMC_*
560 @rm -rf $(prefix)/include/xbmc
565 for d in $(BIN_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
567 for d in $(EC_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
569 for d in $(XBMCTEX_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
571 for d in $(DVDPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
573 for d in $(PAPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
575 for d in $(LIB_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
577 for d in $(SS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
578 clean-visualisations:
579 for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
581 for d in $(LIBADDON_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
583 ifeq (@USE_PVR_ADDONS@,1)
584 if test -f pvr-addons/Makefile; then $(MAKE) -C pvr-addons clean; fi;
587 clean-codecs: clean-dvdpcodecs clean-papcodecs
589 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
590 clean-screensavers clean-visualisations clean-libaddons clean-pvraddons
592 ifeq (1,@GTEST_CONFIGURED@)
594 for check_program in $(CHECK_PROGRAMS); do $(CURDIR)/$$check_program; done
596 testsuite: $(CHECK_PROGRAMS)
598 testframework: $(GTEST_LIBS)
600 $(GTEST_LIBS): $(GTEST_DIR)/Makefile
602 $(GTEST_DIR)/Makefile: force
603 $(MAKE) -C $(GTEST_DIR)
606 @$(MAKE) $(if $(V),,-s) -C $(@D)
608 xbmc-test: $(CHECK_LIBS) $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(GTEST_LIBS)
609 ifeq ($(findstring osx,@ARCH@), osx)
610 $(SILENT_LD) $(CXX) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,-all_load,-ObjC $(CHECK_LIBS) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(GTEST_LIBS) $(LIBS) -rdynamic
612 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,--whole-archive $(CHECK_LIBS) $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(GTEST_LIBS) $(LIBS) -rdynamic
615 # Give a message that the framework is not configured, but don't fail.
616 check testsuite testframework:
617 @echo "Google Test Framework not configured, skipping testsuite check."