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/libscrobbler/scrobbler.a \
62 xbmc/network/websocket/websocket.a \
63 xbmc/network/network.a \
64 xbmc/peripherals/bus/peripheral-bus.a \
65 xbmc/peripherals/devices/peripheral-devices.a \
66 xbmc/peripherals/dialogs/peripheral-dialogs.a \
67 xbmc/peripherals/peripherals.a \
68 xbmc/pictures/pictures.a \
69 xbmc/playlists/playlists.a \
70 xbmc/powermanagement/powermanagement.a \
71 xbmc/programs/programs.a \
72 xbmc/pvr/addons/pvraddons.a \
73 xbmc/pvr/channels/pvrchannels.a \
74 xbmc/pvr/dialogs/pvrdialogs.a \
76 xbmc/pvr/recordings/pvrrecordings.a \
77 xbmc/pvr/timers/pvrtimers.a \
78 xbmc/pvr/windows/pvrwindows.a \
79 xbmc/rendering/rendering.a \
80 xbmc/settings/settings.a \
81 xbmc/storage/storage.a \
83 xbmc/video/dialogs/videodialogs.a \
85 xbmc/video/windows/videowindows.a \
86 xbmc/windowing/windowing.a \
87 xbmc/windows/windows.a \
91 NWAOBJSXBMC= xbmc/threads/threads.a \
92 xbmc/commons/commons.a
95 ifeq (@USE_WEB_SERVER@,1)
96 DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a
99 DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/legacy.a
100 DIRECTORY_ARCHIVES += xbmc/interfaces/python/python_binding.a
102 ifeq (@USE_OPENGL@,1)
103 DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a
106 ifeq (@USE_OPENGLES@,1)
107 DIRECTORY_ARCHIVES += xbmc/rendering/gles/rendering_gles.a
108 DIRECTORY_ARCHIVES += xbmc/windowing/egl/windowing_egl.a
109 DIRECTORY_ARCHIVES += xbmc/visualizations/EGLHelpers/eglhelpers.a
113 DIRECTORY_ARCHIVES += lib/libUPnP/libupnp.a \
114 xbmc/network/upnp/upnp.a
117 ifeq ($(findstring osx,@ARCH@),osx)
118 DIRECTORY_ARCHIVES += xbmc/osx/osx.a
119 DIRECTORY_ARCHIVES += xbmc/network/osx/network.a
120 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
121 DIRECTORY_ARCHIVES += xbmc/powermanagement/osx/powermanagement.a
122 DIRECTORY_ARCHIVES += xbmc/storage/osx/storage.a
123 DIRECTORY_ARCHIVES += xbmc/windowing/osx/windowing_osx.a
125 ifeq (@USE_ANDROID@,1)
126 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
127 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
128 DIRECTORY_ARCHIVES += xbmc/powermanagement/android/powermanagement_android.a
129 DIRECTORY_ARCHIVES += xbmc/storage/android/storage_android.a
130 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
132 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
133 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
134 DIRECTORY_ARCHIVES += xbmc/powermanagement/linux/powermanagement_linux.a
135 DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
136 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
140 ifeq ($(findstring freebsd,@ARCH@),freebsd)
141 DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
144 ifeq (@HAVE_XBMC_NONFREE@,1)
145 DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
148 BIN_DIRS = $(dir $(DIRECTORY_ARCHIVES)) $(dir $(NWAOBJSXBMC))
150 ifeq (@USE_ANDROID@,1)
151 DIRECTORY_ARCHIVES += xbmc/android/loader/AndroidDyload.a
152 DIRECTORY_ARCHIVES += xbmc/windowing/android/windowing_android.a
153 DIRECTORY_ARCHIVES += xbmc/android/activity/activity.a
154 DIRECTORY_ARCHIVES += xbmc/android/bionic_supplement/bionic_supplement.a
157 ifeq (@USE_AMLPLAYER@,1)
158 DIRECTORY_ARCHIVES += xbmc/cores/amlplayer/amlplayer.a
161 ifeq (@USE_OMXPLAYER@,1)
162 DIRECTORY_ARCHIVES += xbmc/cores/omxplayer/omxplayer.a
170 lib/stsound/StSoundLibrary \
171 lib/snesapu/SNES/SNESAPU \
174 ifeq (@USE_ASAP_CODEC@,1)
187 LIB_DIRS += lib/cmyth
192 ifneq (@DISABLE_RSXS@,1)
193 SS_DIRS+= xbmc/screensavers/rsxs-0.9/xbmc
196 VIS_DIRS=xbmc/visualizations/OpenGLSpectrum \
197 xbmc/visualizations/WaveForm
199 ifneq (@DISABLE_PROJECTM@,1)
200 VIS_DIRS+= xbmc/visualizations/XBMCProjectM
203 ifneq (@DISABLE_GOOM@,1)
204 VIS_DIRS+=xbmc/visualizations/Goom
208 lib/addons/library.xbmc.addon \
209 lib/addons/library.xbmc.pvr \
210 lib/addons/library.xbmc.gui \
212 CONFLUENCE_MEDIA=addons/skin.confluence/media
213 SKIN_DIRS=$(CONFLUENCE_MEDIA)
215 ifeq (@USE_SKIN_TOUCHED@,1)
216 TOUCHED_MEDIA=addons/skin.touched/media
217 SKIN_DIRS+=$(TOUCHED_MEDIA)
220 DIRS= $(BIN_DIRS) $(EC_DIRS) $(XBMCTEX_DIRS) $(DVDPCODECS_DIRS) $(PAPCODECS_DIRS) \
221 $(LIB_DIRS) $(SS_DIRS) $(VIS_DIRS) $(LIBADDON_DIRS) $(SKIN_DIRS)
227 INCLUDES=$(sort @INCLUDES@)
229 CLEAN_FILES=xbmc.bin xbmc-xrandr libxbmc.so
231 DISTCLEAN_FILES=config.h config.log config.status tools/Linux/xbmc.sh \
232 tools/Linux/xbmc-standalone.sh autom4te.cache config.h.in~ \
233 system/libcpluff-@ARCH@.so
235 ifeq (@USE_LIBXBMC@,1)
236 FINAL_TARGETS+=libxbmc.so
237 ifeq (@USE_ANDROID@,1)
241 FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
243 FINAL_TARGETS+=Makefile externals
245 GTEST_DIR = lib/gtest
246 GTEST_INCLUDES = -I$(GTEST_DIR)/include
247 GTEST_LIBS = $(GTEST_DIR)/lib/.libs/libgtest.a
249 CHECK_DIRS = xbmc/filesystem/test \
252 xbmc/interfaces/python/test \
254 CHECK_LIBS = xbmc/filesystem/test/filesystemTest.a \
255 xbmc/utils/test/utilsTest.a \
256 xbmc/threads/test/threadTest.a \
257 xbmc/interfaces/python/test/pythonSwigTest.a \
258 xbmc/test/xbmc-test.a
259 CHECK_PROGRAMS = xbmc-test
261 CLEAN_FILES += $(CHECK_PROGRAMS)
263 all : $(FINAL_TARGETS)
264 @echo '-----------------------'
265 @echo 'XBMC built successfully'
266 @echo '-----------------------'
268 include Makefile.include
270 .PHONY : dllloader exports visualizations screensavers eventclients papcodecs \
271 dvdpcodecs imagelib codecs externals force skins libaddon check \
272 testframework testsuite
274 # hack targets to keep build system up to date
275 Makefile : config.status $(addsuffix .in, $(AUTOGENERATED_MAKEFILES))
276 @echo "Regenerating Makefiles..."
277 @./config.status &> /dev/null
280 config.status: configure
283 ifeq (@USE_TEXTUREPACKER@,1)
284 skins: tools/TexturePacker/TexturePacker force
285 $(MAKE) -C $(CONFLUENCE_MEDIA)
286 ifeq (@USE_SKIN_TOUCHED@,1)
287 $(MAKE) -C $(TOUCHED_MEDIA)
293 # Setup some dependencies for subdir makes
294 xbmc/cores/paplayer/paplayer.a: papcodecs
295 $(DVDPLAYER_ARCHIVES) : dvdpcodecs
297 $(NWAOBJSXBMC): force
298 @$(MAKE) $(if $(V),,-s) -C $(@D)
300 $(DIRECTORY_ARCHIVES): force
301 @$(MAKE) $(if $(V),,-s) -C $(@D)
303 lib/cpluff/libcpluff/.libs/libcpluff.a: force
304 $(MAKE) -C lib/cpluff/libcpluff
305 system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a exports
306 ifeq ($(findstring osx,@ARCH@), osx)
307 ifeq (@ARCH@, arm-osx)
308 $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
310 $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
313 $(CXX) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $< \
314 -Wl,--no-whole-archive \
315 `cat xbmc/cores/DllLoader/exports/wrapper.def` xbmc/cores/DllLoader/exports/wrapper.o -lexpat
318 exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a
319 $(MAKE) -C xbmc/cores/DllLoader/exports wrapper.def
320 dllloader: exports xbmc/cores/DllLoader/dllloader.a
322 ifeq (@USE_OPENGLES@,1)
323 EGLHELPERS=xbmc/visualizations/EGLHelpers/eglhelpers.a
326 $(VIS_DIRS): force exports $(EGLHELPERS)
329 $(SS_DIRS): force exports
332 visualizations: $(VIS_DIRS)
334 screensavers: $(SS_DIRS)
337 $(MAKE) -C lib/addons/library.xbmc.addon
338 $(MAKE) -C lib/addons/library.xbmc.gui
339 $(MAKE) -C lib/addons/library.xbmc.pvr
340 dvdpcodecs: dllloader
342 $(MAKE) -C lib/libdvd
344 ifeq ($(findstring osx,@ARCH@), osx)
345 ifneq ($(findstring arm,@ARCH@), arm)
346 $(MAKE) -C tools/EventClients/Clients/OSXRemote
349 $(MAKE) -C tools/EventClients
352 $(MAKE) -C lib/libexif
355 libhdhomerun: dllloader
356 $(MAKE) -C lib/libhdhomerun
357 papcodecs: dllloader dvdpcodecs
358 test -d system/players/paplayer || mkdir system/players/paplayer
359 $(MAKE) -C lib/xbadpcm
360 $(MAKE) -C lib/vgmstream
361 $(MAKE) -C lib/timidity
362 $(MAKE) -C lib/nosefart
363 ifneq ($(findstring arm-osx,@ARCH@), arm-osx)
364 $(MAKE) -C lib/libsidplay2
366 ifeq (@USE_ASAP_CODEC@,1)
367 ifneq ($(findstring osx,@ARCH@), osx)
368 $(MAKE) -C lib/asap asap-xbmc
371 $(MAKE) -C lib/stsound/StSoundLibrary
372 ifeq ($(or $(findstring powerpc,@ARCH@),$(findstring x86_64-linux,@ARCH@),$(findstring arm, @ARCH@),$(findstring freebsd,@ARCH@)),)
373 $(MAKE) -C lib/snesapu/SNES/SNESAPU
376 $(MAKE) -C lib/cximage-6.0
379 ifeq (@USE_PVR_ADDONS@,1)
380 $(MAKE) -C pvr-addons
383 codecs: papcodecs dvdpcodecs
385 libs: libhdhomerun imagelib libexif system/libcpluff-@ARCH@.so $(CMYTH)
387 externals: codecs libs visualizations screensavers libaddon pvraddons
390 codecs libs visualizations screensavers eventclients skins libaddon \
391 lib/libsquish/libsquish.a \
392 lib/libRTV/librtv.a \
393 lib/libXDAAP/libxdaap.a \
394 lib/SlingboxLib/SlingboxLib.a
396 OBJSXBMC =$(DIRECTORY_ARCHIVES)
400 xbmc/network/network.a \
401 xbmc/video/windows/videowindows.a \
403 xbmc/cores/DllLoader/exports/util/exports_utils.a \
404 xbmc/cores/DllLoader/exports/exports.a \
405 xbmc/settings/settings.a \
407 xbmc/pvr/addons/pvraddons.a \
408 xbmc/pvr/windows/pvrwindows.a \
409 xbmc/guilib/guilib.a # must be dynamic to avoid linker errors
411 ifeq ($(findstring freebsd,@ARCH@),freebsd)
412 DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
415 OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))
417 libxbmc.so: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
418 ifeq ($(findstring osx,@ARCH@), osx)
419 $(SILENT_LD) $(CXX) $(LDFLAGS) -bundle -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS)
421 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive -Wl,--no-undefined $(NWAOBJSXBMC) $(LIBS)
424 xbmc.bin: xbmc/main/main.a $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
426 ifeq ($(findstring osx,@ARCH@), osx)
427 $(SILENT_LD) $(CXX) $(LDFLAGS) -o xbmc.bin -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) xbmc/main/main.a $(LIBS) -rdynamic
429 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o xbmc.bin -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) xbmc/main/main.a -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS) -rdynamic
432 xbmc/main/main.a: force
435 xbmc-xrandr: xbmc-xrandr.c
436 ifneq (1,@USE_XRANDR@)
437 # xbmc-xrandr.c gets picked up by the default make rules
438 @echo "excluding xbmc-xrandr"
440 $(SILENT_LD) $(CC) $(CFLAGS) $(LDFLAGS) -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lX11 -lm
443 tools/TexturePacker/TexturePacker: lib/libsquish/libsquish.a xbmc/guilib/XBTF.h
444 $(MAKE) -C tools/TexturePacker/
447 install-bin: xbmc.bin # developement convenience target
448 sudo install -d $(DESTDIR)$(libdir)
449 sudo install xbmc.bin $(DESTDIR)$(libdir)/xbmc
451 ifeq ($(findstring osx,@ARCH@), osx)
452 # TODO: add osx install
454 install: install-binaries install-arch install-datas
457 make -C tools/android/packaging
459 install-binaries: install-scripts
460 @echo "Copying XBMC binary to $(DESTDIR)$(libdir)/xbmc/"
461 @install -d $(DESTDIR)$(libdir)/xbmc
462 ifeq (1,@USE_XRANDR@)
463 @install xbmc-xrandr $(DESTDIR)$(libdir)/xbmc/xbmc-xrandr
465 ifeq (@USE_LIBXBMC@,1)
466 @install libxbmc.so $(DESTDIR)$(libdir)/xbmc/libxbmc.so
468 @install xbmc.bin $(DESTDIR)$(libdir)/xbmc/xbmc.bin
469 @echo "You can run XBMC with the command 'xbmc'"
474 @# Arch dependent files
475 ifeq (@USE_PVR_ADDONS@,1)
476 $(MAKE) -C pvr-addons install
478 ifeq ($(findstring freebsd,@ARCH@), freebsd)
479 @find -E system addons -type f -not -iregex ".*svn.*" \
480 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
481 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
483 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
484 -exec printf " -- %-75.75s\r" "{}" \;
486 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
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 @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"
499 @install -d $(DESTDIR)$(bindir)
500 @install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
501 @install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
502 @install -d $(DESTDIR)$(datarootdir)/xbmc
503 @install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
504 @install -d $(DESTDIR)$(datarootdir)/xsessions
505 @install -m 0644 tools/Linux/xbmc-xsession.desktop $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
507 install-datas: install-scripts
508 @echo "Copying support and legal files..."
509 @install -d $(DESTDIR)$(docdir)
510 @for FILE in `ls LICENSE.GPL *.txt`; do \
511 install -m 0644 "$$FILE" "$(DESTDIR)$(docdir)/$$FILE"; done
512 @install -m 0644 "docs/README.linux" "$(DESTDIR)$(docdir)/README.linux"
514 @echo "Copying system files to $(DESTDIR)$(datarootdir)/xbmc"
515 @install -d $(DESTDIR)$(datarootdir)/xbmc
516 @# Arch independent files
517 ifeq ($(findstring bsd,@ARCH@), bsd)
518 @find -E addons language media sounds userdata system -type f \
519 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
520 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
522 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
523 -exec printf " -- %-75.75s\r" "{}" \;
525 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
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 @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"
537 @install -d $(DESTDIR)$(datarootdir)/applications
538 @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop
539 @install -d $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps
540 @install -m 0644 tools/Linux/xbmc-48x48.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xbmc.png
541 @install -d $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps
542 @install -m 0644 media/icon.png $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps/xbmc.png
543 @test -z "$(DESTDIR)" && gtk-update-icon-cache -f -q -t $(datadir)/icons/hicolor || :
546 @echo "Removing XBMC..."
547 @rm -rf $(DESTDIR)$(libdir)/xbmc
548 @rm -rf $(DESTDIR)$(datarootdir)/xbmc $(DESTDIR)$(bindir)/xbmc
549 @rm -rf $(DESTDIR)$(bindir)/xbmc-standalone
550 @rm -rf $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
551 @rm -rf $(libdir)/libXBMC_*
552 @rm -rf $(prefix)/include/xbmc
557 for d in $(BIN_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
559 for d in $(EC_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
561 for d in $(XBMCTEX_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
563 for d in $(DVDPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
565 for d in $(PAPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
567 for d in $(LIB_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
569 for d in $(SS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
570 clean-visualisations:
571 for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
573 for d in $(LIBADDON_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
575 ifeq (@USE_PVR_ADDONS@,1)
576 if test -f pvr-addons/Makefile; then $(MAKE) -C pvr-addons clean; fi;
579 clean-codecs: clean-dvdpcodecs clean-papcodecs
581 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
582 clean-screensavers clean-visualisations clean-libaddons clean-pvraddons
584 ifeq (1,@GTEST_CONFIGURED@)
586 for check_program in $(CHECK_PROGRAMS); do $(CURDIR)/$$check_program; done
588 testsuite: $(CHECK_PROGRAMS)
590 testframework: $(GTEST_LIBS)
592 $(GTEST_LIBS): $(GTEST_DIR)/Makefile
594 $(GTEST_DIR)/Makefile: force
595 $(MAKE) -C $(GTEST_DIR)
598 @$(MAKE) $(if $(V),,-s) -C $(@D)
600 xbmc-test: $(CHECK_LIBS) $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(GTEST_LIBS)
601 ifeq ($(findstring osx,@ARCH@), osx)
602 $(SILENT_LD) $(CXX) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,-all_load,-ObjC $(CHECK_LIBS) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(GTEST_LIBS) $(LIBS) -rdynamic
604 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,--whole-archive $(CHECK_LIBS) $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(GTEST_LIBS) $(LIBS) -rdynamic
607 # Give a message that the framework is not configured, but don't fail.
608 check testsuite testframework:
609 @echo "Google Test Framework not configured, skipping testsuite check."