1 AUTOGENERATED_MAKEFILES=@OUTPUT_FILES@
13 DVDPLAYER_ARCHIVES=xbmc/cores/dvdplayer/DVDPlayer.a \
14 xbmc/cores/dvdplayer/DVDCodecs/DVDCodecs.a \
15 xbmc/cores/dvdplayer/DVDCodecs/Audio/Audio.a \
16 xbmc/cores/dvdplayer/DVDCodecs/Overlay/Overlay.a \
17 xbmc/cores/dvdplayer/DVDCodecs/Video/Video.a \
18 xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxers.a \
19 xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreams.a \
20 xbmc/cores/dvdplayer/DVDSubtitles/DVDSubtitles.a
22 DIRECTORY_ARCHIVES=$(DVDPLAYER_ARCHIVES) \
23 lib/SlingboxLib/SlingboxLib.a \
25 lib/libXDAAP/libxdaap.a \
27 lib/libsquish/libsquish.a \
28 lib/xbmc-dll-symbols/dll-symbols.a \
29 xbmc/addons/addons.a \
31 xbmc/cores/AudioEngine/audioengine.a \
32 xbmc/cores/DllLoader/dllloader.a \
33 xbmc/cores/DllLoader/exports/exports.a \
34 xbmc/cores/DllLoader/exports/util/exports_utils.a \
35 xbmc/cores/ExternalPlayer/ExternalPlayer.a \
36 xbmc/cores/VideoRenderers/VideoRenderer.a \
37 xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a \
39 xbmc/cores/paplayer/paplayer.a \
40 xbmc/cores/playercorefactory/playercorefactory.a \
41 xbmc/dbwrappers/dbwrappers.a \
42 xbmc/dialogs/dialogs.a \
44 xbmc/filesystem/MusicDatabaseDirectory/musicdatabasedirectory.a \
45 xbmc/filesystem/VideoDatabaseDirectory/videodatabasedirectory.a \
46 xbmc/filesystem/filesystem.a \
47 xbmc/guilib/guilib.a \
49 xbmc/interfaces/http-api/http-api.a \
50 xbmc/interfaces/info/info.a \
51 xbmc/interfaces/interfaces.a \
52 xbmc/interfaces/json-rpc/json-rpc.a \
54 xbmc/music/dialogs/musicdialogs.a \
55 xbmc/music/infoscanner/musicscanner.a \
56 xbmc/music/karaoke/karaoke.a \
58 xbmc/music/tags/musictags.a \
59 xbmc/music/windows/musicwindows.a \
60 xbmc/network/libscrobbler/scrobbler.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/storage/storage.a \
82 xbmc/video/dialogs/videodialogs.a \
84 xbmc/video/windows/videowindows.a \
85 xbmc/windowing/windowing.a \
86 xbmc/windows/windows.a \
90 NWAOBJSXBMC= xbmc/threads/threads.a \
91 xbmc/commons/commons.a
94 ifeq (@USE_WEB_SERVER@,1)
95 DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a
98 DIRECTORY_ARCHIVES += xbmc/interfaces/legacy/legacy.a
99 DIRECTORY_ARCHIVES += xbmc/interfaces/python/python_binding.a
101 ifeq (@USE_OPENGL@,1)
102 DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a
105 ifeq (@USE_OPENGLES@,1)
106 DIRECTORY_ARCHIVES += xbmc/rendering/gles/rendering_gles.a
107 DIRECTORY_ARCHIVES += xbmc/windowing/egl/windowing_egl.a
108 DIRECTORY_ARCHIVES += xbmc/visualizations/EGLHelpers/eglhelpers.a
112 DIRECTORY_ARCHIVES += lib/libUPnP/libupnp.a \
113 xbmc/network/upnp/upnp.a
116 ifeq ($(findstring osx,@ARCH@),osx)
117 DIRECTORY_ARCHIVES += xbmc/osx/osx.a
118 DIRECTORY_ARCHIVES += xbmc/network/osx/network.a
119 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
120 DIRECTORY_ARCHIVES += xbmc/powermanagement/osx/powermanagement.a
121 DIRECTORY_ARCHIVES += xbmc/storage/osx/storage.a
122 DIRECTORY_ARCHIVES += xbmc/windowing/osx/windowing_osx.a
124 ifeq (@USE_ANDROID@,1)
125 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
126 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
127 DIRECTORY_ARCHIVES += xbmc/powermanagement/android/powermanagement_android.a
128 DIRECTORY_ARCHIVES += xbmc/storage/android/storage_android.a
129 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
131 DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
132 DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
133 DIRECTORY_ARCHIVES += xbmc/powermanagement/linux/powermanagement_linux.a
134 DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
135 DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
139 ifeq ($(findstring freebsd,@ARCH@),freebsd)
140 DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
143 ifeq (@HAVE_XBMC_NONFREE@,1)
144 DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
147 BIN_DIRS = $(dir $(DIRECTORY_ARCHIVES)) $(dir $(NWAOBJSXBMC))
149 ifeq (@USE_ANDROID@,1)
150 DIRECTORY_ARCHIVES += xbmc/android/loader/AndroidDyload.a
151 DIRECTORY_ARCHIVES += xbmc/windowing/android/windowing_android.a
152 DIRECTORY_ARCHIVES += xbmc/android/activity/activity.a
155 ifeq (@USE_AMLPLAYER@,1)
156 DIRECTORY_ARCHIVES += xbmc/cores/amlplayer/amlplayer.a
159 ifeq (@USE_OMXPLAYER@,1)
160 DIRECTORY_ARCHIVES += xbmc/cores/omxplayer/omxplayer.a
168 lib/stsound/StSoundLibrary \
169 lib/snesapu/SNES/SNESAPU \
172 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 ifeq (($(findstring osx,@ARCH@), osx),(@USE_OPENGL@,1))
204 VIS_DIRS+=xbmc/visualizations/iTunes
207 ifneq (@DISABLE_GOOM@,1)
208 VIS_DIRS+=xbmc/visualizations/Goom
212 lib/addons/library.xbmc.addon \
213 lib/addons/library.xbmc.pvr \
214 lib/addons/library.xbmc.gui \
216 CONFLUENCE_MEDIA=addons/skin.confluence/media
217 SKIN_DIRS=$(CONFLUENCE_MEDIA)
219 ifeq (@USE_SKIN_TOUCHED@,1)
220 TOUCHED_MEDIA=addons/skin.touched/media
221 SKIN_DIRS+=$(TOUCHED_MEDIA)
224 DIRS= $(BIN_DIRS) $(EC_DIRS) $(XBMCTEX_DIRS) $(DVDPCODECS_DIRS) $(PAPCODECS_DIRS) \
225 $(LIB_DIRS) $(SS_DIRS) $(VIS_DIRS) $(LIBADDON_DIRS) $(SKIN_DIRS)
231 INCLUDES=$(sort @INCLUDES@)
233 CLEAN_FILES=xbmc.bin xbmc-xrandr libxbmc.so
235 DISTCLEAN_FILES=config.h config.log config.status tools/Linux/xbmc.sh \
236 tools/Linux/xbmc-standalone.sh autom4te.cache config.h.in~ \
237 system/libcpluff-@ARCH@.so
239 ifeq (@USE_LIBXBMC@,1)
240 FINAL_TARGETS+=libxbmc.so
241 ifeq (@USE_ANDROID@,1)
245 FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
247 FINAL_TARGETS+=Makefile externals
249 GTEST_DIR = lib/gtest
250 GTEST_INCLUDES = -I$(GTEST_DIR)/include
251 GTEST_LIBS = $(GTEST_DIR)/lib/.libs/libgtest.a
253 CHECK_DIRS = xbmc/filesystem/test \
256 xbmc/interfaces/python/test \
258 CHECK_LIBS = xbmc/filesystem/test/filesystemTest.a \
259 xbmc/utils/test/utilsTest.a \
260 xbmc/threads/test/threadTest.a \
261 xbmc/interfaces/python/test/pythonSwigTest.a \
262 xbmc/test/xbmc-test.a
263 CHECK_PROGRAMS = xbmc-test
265 CLEAN_FILES += $(CHECK_PROGRAMS)
267 all : $(FINAL_TARGETS)
268 @echo '-----------------------'
269 @echo 'XBMC built successfully'
270 @echo '-----------------------'
272 include Makefile.include
274 .PHONY : dllloader exports visualizations screensavers eventclients papcodecs \
275 dvdpcodecs imagelib codecs externals force skins libaddon check \
276 testframework testsuite
278 # hack targets to keep build system up to date
279 Makefile : config.status $(addsuffix .in, $(AUTOGENERATED_MAKEFILES))
280 @echo "Regenerating Makefiles..."
281 @./config.status &> /dev/null
284 config.status: configure
285 @echo "Build system configuration is stale."
286 @echo "Please (re)run configure."
287 @test -n "$$XBMC_IGNORE_STALE"
289 configure: configure.in
290 @echo 'configure is outdated, regenerating...'
294 ifeq (@USE_TEXTUREPACKER@,1)
295 skins: tools/TexturePacker/TexturePacker force
296 $(MAKE) -C $(CONFLUENCE_MEDIA)
297 ifeq (@USE_SKIN_TOUCHED@,1)
298 $(MAKE) -C $(TOUCHED_MEDIA)
304 # Setup some dependencies for subdir makes
305 xbmc/cores/paplayer/paplayer.a: papcodecs
306 $(DVDPLAYER_ARCHIVES) : dvdpcodecs
308 $(NWAOBJSXBMC): force
309 @$(MAKE) $(if $(V),,-s) -C $(@D)
311 $(DIRECTORY_ARCHIVES): force
312 @$(MAKE) $(if $(V),,-s) -C $(@D)
314 lib/libapetag/.libs/libapetag.a: force
315 $(MAKE) -C lib/libapetag
316 lib/cpluff/libcpluff/.libs/libcpluff.a: force
317 $(MAKE) -C lib/cpluff/libcpluff
318 system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a exports
319 ifeq ($(findstring osx,@ARCH@), osx)
320 ifeq (@ARCH@, arm-osx)
321 $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
323 $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
326 $(CXX) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $< \
327 -Wl,--no-whole-archive \
328 `cat xbmc/cores/DllLoader/exports/wrapper.def` xbmc/cores/DllLoader/exports/wrapper.o -lexpat
331 exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a
332 $(MAKE) -C xbmc/cores/DllLoader/exports wrapper.def
333 dllloader: exports xbmc/cores/DllLoader/dllloader.a
335 ifeq (@USE_OPENGLES@,1)
336 EGLHELPERS=xbmc/visualizations/EGLHelpers/eglhelpers.a
339 $(VIS_DIRS): force exports $(EGLHELPERS)
342 $(SS_DIRS): force exports
345 visualizations: $(VIS_DIRS)
347 screensavers: $(SS_DIRS)
350 $(MAKE) -C lib/addons/library.xbmc.addon
351 $(MAKE) -C lib/addons/library.xbmc.gui
352 $(MAKE) -C lib/addons/library.xbmc.pvr
353 dvdpcodecs: dllloader
355 $(MAKE) -C lib/libdvd
357 ifeq ($(findstring osx,@ARCH@), osx)
358 ifneq ($(findstring arm,@ARCH@), arm)
359 $(MAKE) -C tools/EventClients/Clients/OSXRemote
362 $(MAKE) -C tools/EventClients
365 $(MAKE) -C lib/libexif
368 libhdhomerun: dllloader
369 $(MAKE) -C lib/libhdhomerun
371 $(MAKE) -C lib/libid3tag
372 papcodecs: dllloader dvdpcodecs
373 test -d system/players/paplayer || mkdir system/players/paplayer
374 $(MAKE) -C lib/xbadpcm
375 $(MAKE) -C lib/vgmstream
376 $(MAKE) -C lib/timidity
377 $(MAKE) -C lib/nosefart
378 ifneq ($(findstring arm-osx,@ARCH@), arm-osx)
379 $(MAKE) -C lib/libsidplay2
381 ifeq (@USE_ASAP_CODEC@,1)
382 ifneq ($(findstring osx,@ARCH@), osx)
383 $(MAKE) -C lib/asap asap-xbmc
386 $(MAKE) -C lib/stsound/StSoundLibrary
387 ifeq ($(or $(findstring powerpc,@ARCH@),$(findstring x86_64-linux,@ARCH@),$(findstring arm, @ARCH@),$(findstring freebsd,@ARCH@)),)
388 $(MAKE) -C lib/snesapu/SNES/SNESAPU
391 $(MAKE) -C lib/cximage-6.0
394 ifeq (@USE_PVR_ADDONS@,1)
395 $(MAKE) -C pvr-addons
398 codecs: papcodecs dvdpcodecs
400 libs: libhdhomerun libid3tag imagelib libexif system/libcpluff-@ARCH@.so $(CMYTH)
402 externals: codecs libs visualizations screensavers libaddon pvraddons
405 codecs libs visualizations screensavers eventclients skins libaddon \
406 lib/libsquish/libsquish.a \
407 lib/libapetag/.libs/libapetag.a \
408 lib/libRTV/librtv.a \
409 lib/libXDAAP/libxdaap.a \
410 lib/SlingboxLib/SlingboxLib.a
412 OBJSXBMC =$(DIRECTORY_ARCHIVES)
413 OBJSXBMC+=lib/libapetag/.libs/libapetag.a
417 xbmc/network/network.a \
418 xbmc/video/windows/videowindows.a \
420 xbmc/cores/DllLoader/exports/util/exports_utils.a \
421 xbmc/cores/DllLoader/exports/exports.a \
422 xbmc/settings/settings.a \
424 xbmc/pvr/addons/pvraddons.a \
425 xbmc/pvr/windows/pvrwindows.a \
426 xbmc/guilib/guilib.a # must be dynamic to avoid linker errors
428 ifeq ($(findstring freebsd,@ARCH@),freebsd)
429 DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
432 OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))
434 libxbmc.so: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
435 ifeq ($(findstring osx,@ARCH@), osx)
436 $(SILENT_LD) $(CXX) $(LDFLAGS) -bundle -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS)
438 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive -Wl,--no-undefined $(NWAOBJSXBMC) $(LIBS)
441 xbmc.bin: xbmc/main/main.a $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
443 ifeq ($(findstring osx,@ARCH@), osx)
444 $(SILENT_LD) $(CXX) $(LDFLAGS) -o xbmc.bin -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) xbmc/main/main.a $(LIBS) -rdynamic
446 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o xbmc.bin -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) xbmc/main/main.a -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS) -rdynamic
449 xbmc/main/main.a: force
452 xbmc-xrandr: xbmc-xrandr.c
453 ifneq (1,@USE_XRANDR@)
454 # xbmc-xrandr.c gets picked up by the default make rules
455 @echo "excluding xbmc-xrandr"
457 $(SILENT_LD) $(CC) $(CFLAGS) $(LDFLAGS) -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lX11 -lm
460 tools/XBMCTex/XBMCTex:
461 ifeq ($(findstring osx,@ARCH@), osx)
463 $(MAKE) -C tools/XBMCTex -f Makefile.osx
465 $(MAKE) -C tools/XBMCTex/
468 tools/TexturePacker/TexturePacker: lib/libsquish/libsquish.a xbmc/guilib/XBTF.h
469 $(MAKE) -C tools/TexturePacker/
472 install-bin: xbmc.bin # developement convenience target
473 sudo install -d $(DESTDIR)$(libdir)
474 sudo install xbmc.bin $(DESTDIR)$(libdir)/xbmc
476 ifeq ($(findstring osx,@ARCH@), osx)
477 # TODO: add osx install
479 install: install-binaries install-arch install-datas
482 make -C tools/android/packaging
484 install-binaries: install-scripts
485 @echo "Copying XBMC binary to $(DESTDIR)$(libdir)/xbmc/"
486 @install -d $(DESTDIR)$(libdir)/xbmc
487 ifeq (1,@USE_XRANDR@)
488 @install xbmc-xrandr $(DESTDIR)$(libdir)/xbmc/xbmc-xrandr
490 ifeq (@USE_LIBXBMC@,1)
491 @install libxbmc.so $(DESTDIR)$(libdir)/xbmc/libxbmc.so
493 @install xbmc.bin $(DESTDIR)$(libdir)/xbmc/xbmc.bin
494 @echo "You can run XBMC with the command 'xbmc'"
499 @# Arch dependent files
500 ifeq (@USE_PVR_ADDONS@,1)
501 $(MAKE) -C pvr-addons install
503 ifeq ($(findstring freebsd,@ARCH@), freebsd)
504 @find -E system addons -type f -not -iregex ".*svn.*" \
505 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
506 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
508 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
509 -exec printf " -- %-75.75s\r" "{}" \;
511 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
512 @find -E system addons -type f -not -iregex ".*svn.*" \
513 -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
514 -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
516 -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
517 -exec printf " -- %-75.75s\r" "{}" \;
519 @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"
524 @install -d $(DESTDIR)$(bindir)
525 @install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
526 @install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
527 @install -d $(DESTDIR)$(datarootdir)/xbmc
528 @install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
529 @install -d $(DESTDIR)$(datarootdir)/xsessions
530 @install -m 0644 tools/Linux/xbmc-xsession.desktop $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
532 install-datas: install-scripts
533 @echo "Copying support and legal files..."
534 @install -d $(DESTDIR)$(docdir)
535 @for FILE in `ls LICENSE.GPL *.txt`; do \
536 install -m 0644 "$$FILE" "$(DESTDIR)$(docdir)/$$FILE"; done
537 @install -m 0644 "docs/README.linux" "$(DESTDIR)$(docdir)/README.linux"
539 @echo "Copying system files to $(DESTDIR)$(datarootdir)/xbmc"
540 @install -d $(DESTDIR)$(datarootdir)/xbmc
541 @# Arch independent files
542 ifeq ($(findstring bsd,@ARCH@), bsd)
543 @find -E addons language media sounds userdata system -type f \
544 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
545 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
547 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
548 -exec printf " -- %-75.75s\r" "{}" \;
550 ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
551 @find -E addons language media sounds userdata system -type f \
552 -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
553 -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
555 -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
556 -exec printf " -- %-75.75s\r" "{}" \;
558 @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"
562 @install -d $(DESTDIR)$(datarootdir)/applications
563 @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop
564 @install -d $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps
565 @install -m 0644 tools/Linux/xbmc-48x48.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xbmc.png
566 @install -d $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps
567 @install -m 0644 media/icon.png $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps/xbmc.png
568 @test -z "$(DESTDIR)" && gtk-update-icon-cache -f -q -t $(datadir)/icons/hicolor || :
571 @echo "Removing XBMC..."
572 @rm -rf $(DESTDIR)$(libdir)/xbmc
573 @rm -rf $(DESTDIR)$(datarootdir)/xbmc $(DESTDIR)$(bindir)/xbmc
574 @rm -rf $(DESTDIR)$(bindir)/xbmc-standalone
575 @rm -rf $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
576 @rm -rf $(libdir)/libXBMC_*
577 @rm -rf $(prefix)/include/xbmc
582 for d in $(BIN_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
584 for d in $(EC_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
586 for d in $(XBMCTEX_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
588 for d in $(DVDPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
590 for d in $(PAPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
592 for d in $(LIB_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
594 for d in $(SS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
595 clean-visualisations:
596 for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
598 for d in $(LIBADDON_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
600 ifeq (@USE_PVR_ADDONS@,1)
601 if test -f pvr-addons/Makefile; then $(MAKE) -C pvr-addons clean; fi;
604 clean-codecs: clean-dvdpcodecs clean-papcodecs
606 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
607 clean-screensavers clean-visualisations clean-libaddons clean-pvraddons
609 ifeq (1,@GTEST_CONFIGURED@)
611 for check_program in $(CHECK_PROGRAMS); do $(CURDIR)/$$check_program; done
613 testsuite: $(CHECK_PROGRAMS)
615 testframework: $(GTEST_LIBS)
617 $(GTEST_LIBS): $(GTEST_DIR)/Makefile
619 $(GTEST_DIR)/Makefile: force
620 $(MAKE) -C $(GTEST_DIR)
623 @$(MAKE) $(if $(V),,-s) -C $(@D)
625 xbmc-test: $(CHECK_LIBS) $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(GTEST_LIBS)
626 ifeq ($(findstring osx,@ARCH@), osx)
627 $(SILENT_LD) $(CXX) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,-all_load,-ObjC $(CHECK_LIBS) $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(GTEST_LIBS) $(LIBS) -rdynamic
629 $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) $(GTEST_INCLUDES) -o $@ -Wl,--whole-archive $(CHECK_LIBS) $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(GTEST_LIBS) $(LIBS) -rdynamic
632 # Give a message that the framework is not configured, but don't fail.
633 check testsuite testframework:
634 @echo "Google Test Framework not configured, skipping testsuite check."