Advertisement
Guest User

xbmc patched makefile

a guest
Jun 18th, 2012
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 16.97 KB | None | 0 0
  1. AUTOGENERATED_MAKEFILES=@OUTPUT_FILES@
  2.  
  3. EC_DIRS= \
  4.     tools/EventClients
  5.  
  6. XBMCTEX_DIRS= \
  7.     tools/TexturePacker
  8.  
  9. DVDPCODECS_DIRS= \
  10.     lib \
  11.     lib/libdvd
  12.  
  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
  21.  
  22. DIRECTORY_ARCHIVES=$(DVDPLAYER_ARCHIVES) \
  23.                    lib/SlingboxLib/SlingboxLib.a \
  24.                    lib/libRTV/librtv.a \
  25.                    lib/libUPnP/libupnp.a \
  26.                    lib/libXDAAP/libxdaap.a \
  27.                    lib/libhts/libhts.a \
  28.                    lib/libsquish/libsquish.a \
  29.                    lib/xbmc-dll-symbols/dll-symbols.a \
  30.                    xbmc/addons/addons.a \
  31.                    xbmc/cdrip/cdrip.a \
  32.                    xbmc/cores/AudioEngine/audioengine.a \
  33.                    xbmc/cores/DllLoader/dllloader.a \
  34.                    xbmc/cores/DllLoader/exports/exports.a \
  35.                    xbmc/cores/DllLoader/exports/util/exports_utils.a \
  36.                    xbmc/cores/ExternalPlayer/ExternalPlayer.a \
  37.                    xbmc/cores/VideoRenderers/VideoRenderer.a \
  38.                    xbmc/cores/VideoRenderers/VideoShaders/VideoShaders.a \
  39.                    xbmc/cores/cores.a \
  40.                    xbmc/cores/paplayer/paplayer.a \
  41.                    xbmc/cores/playercorefactory/playercorefactory.a \
  42.                    xbmc/dbwrappers/dbwrappers.a \
  43.                    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 \
  48.                    xbmc/input/input.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 \
  53.                    xbmc/interfaces/python/python.a \
  54.                    xbmc/interfaces/python/xbmcmodule/xbmcmodule.a \
  55.                    xbmc/linux/linux.a \
  56.                    xbmc/music/dialogs/musicdialogs.a \
  57.                    xbmc/music/infoscanner/musicscanner.a \
  58.                    xbmc/music/karaoke/karaoke.a \
  59.                    xbmc/music/music.a \
  60.                    xbmc/music/tags/musictags.a \
  61.                    xbmc/music/windows/musicwindows.a \
  62.                    xbmc/network/libscrobbler/scrobbler.a \
  63.                    xbmc/network/websocket/websocket.a \
  64.                    xbmc/network/network.a \
  65.                    xbmc/peripherals/bus/peripheral-bus.a \
  66.                    xbmc/peripherals/devices/peripheral-devices.a \
  67.                    xbmc/peripherals/dialogs/peripheral-dialogs.a \
  68.                    xbmc/peripherals/peripherals.a \
  69.                    xbmc/pictures/pictures.a \
  70.                    xbmc/playlists/playlists.a \
  71.                    xbmc/powermanagement/powermanagement.a \
  72.                    xbmc/programs/programs.a \
  73.                    xbmc/rendering/rendering.a \
  74.                    xbmc/settings/settings.a \
  75.                    xbmc/storage/storage.a \
  76.                    xbmc/utils/utils.a \
  77.                    xbmc/video/dialogs/videodialogs.a \
  78.                    xbmc/video/video.a \
  79.                    xbmc/video/windows/videowindows.a \
  80.                    xbmc/windowing/windowing.a \
  81.                    xbmc/windows/windows.a \
  82.                    xbmc/xbmc.a \
  83.  
  84.  
  85. NWAOBJSXBMC=    xbmc/commons/commons.a \
  86.         xbmc/threads/threads.a \
  87.  
  88.  
  89. ifeq (@USE_WEB_SERVER@,1)
  90. DIRECTORY_ARCHIVES += xbmc/network/httprequesthandler/httprequesthandlers.a
  91. endif
  92.  
  93. ifeq (@USE_OPENGL@,1)
  94. DIRECTORY_ARCHIVES += xbmc/rendering/gl/rendering_gl.a
  95. endif
  96.  
  97. ifeq (@USE_OPENGLES@,1)
  98. DIRECTORY_ARCHIVES += xbmc/rendering/gles/rendering_gles.a
  99. DIRECTORY_ARCHIVES += xbmc/windowing/egl/windowing_egl.a
  100. endif
  101.  
  102. ifeq (@USE_DIRECTFB@,1)
  103. DIRECTORY_ARCHIVES += xbmc/windowing/dfb/windowing_dfb.a
  104. endif
  105.  
  106. ifeq ($(findstring osx,@ARCH@),osx)
  107. DIRECTORY_ARCHIVES += xbmc/osx/osx.a
  108. DIRECTORY_ARCHIVES += xbmc/network/osx/network.a
  109. DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
  110. DIRECTORY_ARCHIVES += xbmc/powermanagement/osx/powermanagement.a
  111. DIRECTORY_ARCHIVES += xbmc/storage/osx/storage.a
  112. DIRECTORY_ARCHIVES += xbmc/windowing/osx/windowing_osx.a
  113. else
  114. DIRECTORY_ARCHIVES += xbmc/input/linux/input_linux.a
  115. DIRECTORY_ARCHIVES += xbmc/network/linux/network_linux.a
  116. DIRECTORY_ARCHIVES += xbmc/powermanagement/linux/powermanagement_linux.a
  117. DIRECTORY_ARCHIVES += xbmc/storage/linux/storage_linux.a
  118. DIRECTORY_ARCHIVES += xbmc/windowing/X11/windowing_X11.a
  119. endif
  120.  
  121. ifeq ($(findstring freebsd,@ARCH@),freebsd)
  122. DIRECTORY_ARCHIVES += xbmc/freebsd/freebsd.a
  123. endif
  124.  
  125. ifeq (@HAVE_XBMC_NONFREE@,1)
  126. DIRECTORY_ARCHIVES += lib/UnrarXLib/UnrarXLib.a
  127. endif
  128.  
  129. BIN_DIRS = $(dir $(DIRECTORY_ARCHIVES)) $(dir $(NWAOBJSXBMC))
  130.  
  131. PAPCODECS_DIRS= \
  132.     lib/xbadpcm \
  133.     lib/nosefart \
  134.     lib/timidity \
  135.     lib/libsidplay2 \
  136.     lib/stsound/StSoundLibrary \
  137.     lib/snesapu/SNES/SNESAPU \
  138.     lib/vgmstream
  139.  
  140. ifeq (@USE_ASAP_CODEC@,1)
  141. PAPCODECS_DIRS+= \
  142.     lib/asap
  143. endif
  144.  
  145. LIB_DIRS=\
  146.     lib/cximage-6.0 \
  147.     lib/libexif \
  148.     lib/cmyth \
  149.     lib/libhdhomerun \
  150.     lib/libid3tag \
  151.     lib/libapetag \
  152.     lib/cpluff \
  153.     lib/xbmc-dll-symbols
  154.  
  155. SS_DIRS=
  156. ifneq (@DISABLE_RSXS@,1)
  157.   SS_DIRS+= xbmc/screensavers/rsxs-0.9/xbmc
  158. endif
  159.  
  160. VIS_DIRS=xbmc/visualizations/OpenGLSpectrum \
  161.          xbmc/visualizations/WaveForm
  162.  
  163. ifneq (@DISABLE_PROJECTM@,1)
  164.   VIS_DIRS+= xbmc/visualizations/XBMCProjectM
  165. endif
  166.  
  167. ifeq (($(findstring osx,@ARCH@), osx),(@USE_OPENGL@,1))
  168.   VIS_DIRS+=xbmc/visualizations/iTunes
  169. endif
  170.  
  171. ifneq (@DISABLE_GOOM@,1)
  172.   VIS_DIRS+=xbmc/visualizations/Goom
  173. endif
  174.  
  175. CONFLUENCE_MEDIA=addons/skin.confluence/media
  176. SKIN_DIRS=$(CONFLUENCE_MEDIA)
  177.  
  178. ifeq (@USE_SKIN_TOUCHED@,1)
  179. TOUCHED_MEDIA=addons/skin.touched/media
  180. SKIN_DIRS+=$(TOUCHED_MEDIA)
  181. endif
  182.  
  183. DIRS= $(BIN_DIRS) $(EC_DIRS) $(XBMCTEX_DIRS) $(DVDPCODECS_DIRS) $(PAPCODECS_DIRS) \
  184.     $(LIB_DIRS) $(SS_DIRS) $(VIS_DIRS) $(SKIN_DIRS)
  185.  
  186. LIBS=@LIBS@
  187. CFLAGS=@CFLAGS@
  188. CXXFLAGS=@CXXFLAGS@
  189. LDFLAGS=@LDFLAGS@
  190. INCLUDES=$(sort @INCLUDES@)
  191.  
  192. CLEAN_FILES=xbmc.bin xbmc-xrandr libxbmc.so
  193.  
  194. DISTCLEAN_FILES=config.h config.log config.status tools/Linux/xbmc.sh \
  195.         tools/Linux/xbmc-standalone.sh autom4te.cache config.h.in~ \
  196.         system/libcpluff-@ARCH@.so
  197.  
  198. ifeq (@USE_LIBXBMC@,1)
  199. FINAL_TARGETS+=libxbmc.so
  200. else
  201. FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
  202. endif
  203. FINAL_TARGETS+=Makefile externals
  204.  
  205. all : $(FINAL_TARGETS)
  206.     @echo '-----------------------'
  207.     @echo 'XBMC built successfully'
  208.     @echo '-----------------------'
  209.  
  210. include Makefile.include
  211.  
  212. .PHONY : dllloader exports visualizations screensavers eventclients papcodecs \
  213.     dvdpcodecs imagelib codecs externals force skins
  214.  
  215. # hack targets to keep build system up to date
  216. Makefile : config.status $(addsuffix .in, $(AUTOGENERATED_MAKEFILES))
  217.     @echo "Regenerating Makefiles..."
  218.     @./config.status &> /dev/null
  219.     @echo "done"
  220.  
  221. config.status: configure
  222.     @echo "Build system configuration is stale."
  223.     @echo "Please (re)run configure."
  224.     @test -n "$$XBMC_IGNORE_STALE"
  225.  
  226. configure: configure.in
  227.     @echo 'configure is outdated, regenerating...'
  228.     @./bootstrap
  229.  
  230. # skin textures
  231. ifeq (@USE_TEXTUREPACKER@,1)
  232. skins: tools/TexturePacker/TexturePacker force
  233.      $(MAKE) -C $(CONFLUENCE_MEDIA)
  234. ifeq (@USE_SKIN_TOUCHED@,1)
  235.      $(MAKE) -C $(TOUCHED_MEDIA)
  236. endif
  237. else
  238. skins:
  239. endif
  240.  
  241. # Setup some dependencies for subdir makes
  242. xbmc/cores/paplayer/paplayer.a: papcodecs
  243. $(DVDPLAYER_ARCHIVES)         : dvdpcodecs
  244.  
  245. $(NWAOBJSXBMC): force
  246.     @$(MAKE) $(if $(V),,-s) -C $(@D)
  247.  
  248. $(DIRECTORY_ARCHIVES): force
  249.     @$(MAKE) $(if $(V),,-s) -C $(@D)
  250.  
  251. lib/libapetag/.libs/libapetag.a: force
  252.     $(MAKE) -C lib/libapetag
  253. lib/cpluff/libcpluff/.libs/libcpluff.a: force
  254.     $(MAKE) -C lib/cpluff/libcpluff
  255. system/libcpluff-@ARCH@.so: lib/cpluff/libcpluff/.libs/libcpluff.a
  256. ifeq ($(findstring osx,@ARCH@), osx)
  257.   ifeq (@ARCH@, arm-osx)
  258.     $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -read_only_relocs suppress -o $@ $<
  259.   else
  260.     $(CXX) $(LDFLAGS) -all_load -bundle -flat_namespace -undefined dynamic_lookup -lexpat $(BUNDLE1_O) -o $@ $<
  261.   endif
  262. else
  263.     cp lib/cpluff/libcpluff/.libs/libcpluff.so $@
  264. endif
  265.  
  266. exports: xbmc/cores/DllLoader/exports/exports.a xbmc/cores/DllLoader/exports/util/exports_utils.a
  267.     $(MAKE) -C xbmc/cores/DllLoader/exports wrapper.def
  268. dllloader: exports xbmc/cores/DllLoader/dllloader.a
  269.  
  270. $(VIS_DIRS) $(SS_DIRS): force exports
  271.     $(MAKE) -C $@
  272.  
  273. visualizations: $(VIS_DIRS)
  274.  
  275. screensavers: $(SS_DIRS)
  276.  
  277. libpython: dllloader
  278.     $(MAKE) -C xbmc/interfaces/python
  279.     $(MAKE) -C xbmc/interfaces/python/xbmcmodule
  280. dvdpcodecs: dllloader
  281.     $(MAKE) -C lib
  282.     $(MAKE) -C lib/libdvd
  283. eventclients:
  284. ifeq ($(findstring osx,@ARCH@), osx)
  285. ifneq ($(findstring arm,@ARCH@), arm)
  286.     $(MAKE) -C tools/EventClients/Clients/OSXRemote
  287. endif
  288. else
  289.     $(MAKE) -C tools/EventClients
  290. endif
  291. libexif: dllloader
  292.     $(MAKE) -C lib/libexif
  293. cmyth: dllloader
  294.     $(MAKE) -C lib/cmyth
  295. libhdhomerun: dllloader
  296.     $(MAKE) -C lib/libhdhomerun
  297. libid3tag: dllloader
  298.     $(MAKE) -C lib/libid3tag
  299. papcodecs: dllloader dvdpcodecs
  300.     test -d system/players/paplayer || mkdir system/players/paplayer
  301.     $(MAKE) -C lib/xbadpcm
  302.     $(MAKE) -C lib/vgmstream
  303.     $(MAKE) -C lib/timidity
  304.     $(MAKE) -C lib/nosefart
  305. ifneq ($(findstring arm-osx,@ARCH@), arm-osx)
  306.     $(MAKE) -C lib/libsidplay2
  307. endif
  308. ifeq (@USE_ASAP_CODEC@,1)
  309.   ifneq ($(findstring osx,@ARCH@), osx)
  310.     $(MAKE) -C lib/asap asap-xbmc
  311.   endif
  312. endif
  313.     $(MAKE) -C lib/stsound/StSoundLibrary  
  314. ifeq ($(or $(findstring powerpc,@ARCH@),$(findstring x86_64-linux,@ARCH@),$(findstring arm, @ARCH@),$(findstring freebsd,@ARCH@)),)
  315.     $(MAKE) -C lib/snesapu/SNES/SNESAPU
  316. endif
  317. imagelib: dllloader
  318.     $(MAKE) -C lib/cximage-6.0
  319.  
  320. codecs: papcodecs dvdpcodecs
  321. libs: cmyth libhdhomerun libid3tag imagelib libexif system/libcpluff-@ARCH@.so
  322. externals: codecs libs visualizations screensavers
  323.  
  324. xcode_depends: \
  325.     codecs libs visualizations screensavers eventclients skins \
  326.     lib/libsquish/libsquish.a \
  327.     lib/libapetag/.libs/libapetag.a \
  328.     lib/libRTV/librtv.a \
  329.     lib/libXDAAP/libxdaap.a \
  330.     lib/SlingboxLib/SlingboxLib.a
  331.  
  332. OBJSXBMC =$(DIRECTORY_ARCHIVES)
  333. OBJSXBMC+=lib/libapetag/.libs/libapetag.a
  334.  
  335. DYNOBJSXBMC= \
  336.     xbmc/linux/linux.a \
  337.     xbmc/network/network.a \
  338.     xbmc/video/windows/videowindows.a \
  339.     xbmc/utils/utils.a \
  340.     xbmc/cores/DllLoader/exports/util/exports_utils.a \
  341.     xbmc/cores/DllLoader/exports/exports.a \
  342.     xbmc/settings/settings.a \
  343.     xbmc/video/video.a \
  344.     xbmc/guilib/guilib.a # must be dynamic to avoid linker errors
  345.  
  346. ifeq ($(findstring freebsd,@ARCH@),freebsd)
  347. DYNOBJSXBMC+= xbmc/freebsd/freebsd.a
  348. endif
  349.  
  350. OBJSXBMC:=$(filter-out $(DYNOBJSXBMC), $(OBJSXBMC))
  351.  
  352. LIBS += @PYTHON_LDFLAGS@
  353.  
  354. libxbmc.so: $(OBJSXBMC) $(DYNOBJSXBMC)
  355. ifeq ($(findstring osx,@ARCH@), osx)
  356.     $(SILENT_LD) $(CXX) $(LDFLAGS) -bundle -o $@ -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS)
  357. else
  358.     $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS)
  359. endif
  360.  
  361. xbmc.bin: $(OBJSXBMC) $(DYNOBJSXBMC) $(NWAOBJSXBMC)
  362.  
  363. ifeq ($(findstring osx,@ARCH@), osx)
  364.     $(SILENT_LD) $(CXX) $(LDFLAGS) -o xbmc.bin -Wl,-all_load,-ObjC $(DYNOBJSXBMC) $(NWAOBJSXBMC) $(OBJSXBMC) $(LIBS) -rdynamic
  365. else
  366.     $(SILENT_LD) $(CXX) $(CXXFLAGS) $(LDFLAGS) -o xbmc.bin -Wl,--whole-archive $(DYNOBJSXBMC) $(OBJSXBMC) -Wl,--no-whole-archive $(NWAOBJSXBMC) $(LIBS) -rdynamic
  367. endif
  368.  
  369. xbmc-xrandr: xbmc-xrandr.c
  370. ifneq (1,@USE_XRANDR@)
  371.     # xbmc-xrandr.c gets picked up by the default make rules
  372.     @echo "excluding xbmc-xrandr"
  373. else
  374.     $(SILENT_LD) $(CC) $(CFLAGS) $(LDFLAGS) -o xbmc-xrandr xbmc-xrandr.c -lXrandr -lX11
  375. endif
  376.  
  377. tools/XBMCTex/XBMCTex:
  378. ifeq ($(findstring osx,@ARCH@), osx)
  379.     # hack this for now
  380.     $(MAKE) -C tools/XBMCTex -f Makefile.osx
  381. else
  382.     $(MAKE) -C tools/XBMCTex/
  383. endif
  384.  
  385. tools/TexturePacker/TexturePacker: xbmc/guilib/guilib.a lib/libsquish/libsquish.a
  386.     $(MAKE) -C tools/TexturePacker/
  387.  
  388.  
  389. install-bin: xbmc.bin # developement convenience target
  390.     sudo install -d $(DESTDIR)$(libdir)
  391.     sudo install xbmc.bin $(DESTDIR)$(libdir)/xbmc
  392.  
  393. ifeq ($(findstring osx,@ARCH@), osx)
  394.     # TODO: add osx install
  395. else
  396. install: install-binaries install-arch install-datas
  397.  
  398. install-binaries: install-scripts
  399.     @echo "Copying XBMC binary to $(DESTDIR)$(libdir)/xbmc/xbmc.bin"
  400.     @install -d $(DESTDIR)$(libdir)/xbmc
  401.     @install xbmc.bin $(DESTDIR)$(libdir)/xbmc/xbmc.bin
  402. ifeq (1,@USE_XRANDR@)
  403.     @install xbmc-xrandr $(DESTDIR)$(libdir)/xbmc/xbmc-xrandr
  404. endif
  405. ifeq (@USE_LIBXBMC@,1)
  406.     @install libxbmc.so $(DESTDIR)$(libdir)/xbmc/libxbmc.so
  407. else
  408.     @echo "You can run XBMC with the command 'xbmc'"
  409. endif
  410. endif
  411.  
  412. install-arch:
  413.     @# Arch dependent files
  414. ifeq ($(findstring freebsd,@ARCH@), freebsd)
  415.     @find -E system addons -type f -not -iregex ".*svn.*" \
  416.         -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" \
  417.         -exec sh -c "install -d \"$(DESTDIR)$(libdir)/xbmc/\`dirname '{}'\`\"" \; \
  418.         -and \
  419.         -exec install "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; \
  420.         -exec printf " -- %-75.75s\r" "{}" \;
  421. else
  422.     @find system addons -regextype posix-extended -type f -not -iregex ".*svn.*" -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs" -exec install -D "{}" $(DESTDIR)$(libdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
  423. endif
  424.  
  425. install-scripts:
  426.     @install -d $(DESTDIR)$(bindir)
  427.     @install tools/Linux/xbmc.sh $(DESTDIR)$(bindir)/xbmc
  428.     @install tools/Linux/xbmc-standalone.sh $(DESTDIR)$(bindir)/xbmc-standalone
  429.     @install -d $(DESTDIR)$(datarootdir)/xbmc
  430.     @install -m 0644 tools/Linux/FEH.py $(DESTDIR)$(datarootdir)/xbmc/FEH.py
  431.     @install -d $(DESTDIR)$(datarootdir)/xsessions
  432.     @install -m 0644 tools/Linux/xbmc-xsession.desktop $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
  433.  
  434. install-datas: install-scripts
  435.     @echo "Copying support and legal files..."
  436.     @install -d $(DESTDIR)$(docdir)
  437.     @for FILE in `ls LICENSE.GPL *.txt`; do \
  438.         install -m 0644 "$$FILE" "$(DESTDIR)$(docdir)/$$FILE"; done
  439.     @install -m 0644 "docs/README.linux" "$(DESTDIR)$(docdir)/README.linux"
  440.     @echo "Done!"
  441.     @echo "Copying system files to $(DESTDIR)$(datarootdir)/xbmc"
  442.     @install -d $(DESTDIR)$(datarootdir)/xbmc
  443.     @# Arch independent files
  444. ifeq ($(findstring bsd,@ARCH@), bsd)
  445.     @find -E addons language media sounds userdata system -type f \
  446.         -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" \
  447.         -exec sh -c "install -d \"$(DESTDIR)$(datarootdir)/xbmc/\`dirname '{}'\`\"" \; \
  448.         -and \
  449.         -exec install -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; \
  450.         -exec printf " -- %-75.75s\r" "{}" \;
  451. else
  452.     @find addons language media sounds userdata system -regextype posix-extended -type f -not -iregex ".*@ARCH@.*|.*\.vis|.*\.xbs|.*svn.*|.*\.so|.*\.dll" -exec install -D -m 0644 "{}" $(DESTDIR)$(datarootdir)/xbmc/"{}" \; -printf " -- %-75.75f\r"
  453. endif
  454.     @# Icons and links
  455.     @install -d $(DESTDIR)$(datarootdir)/applications
  456.     @install tools/Linux/xbmc.desktop $(DESTDIR)$(datarootdir)/applications/xbmc.desktop
  457.     @install -d $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps
  458.     @install -m 0644 tools/Linux/xbmc-48x48.png $(DESTDIR)$(datadir)/icons/hicolor/48x48/apps/xbmc.png
  459.     @install -d $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps
  460.     @install -m 0644 media/icon.png $(DESTDIR)$(datadir)/icons/hicolor/256x256/apps/xbmc.png
  461.     @test -z "$(DESTDIR)" && gtk-update-icon-cache -f -q -t $(datadir)/icons/hicolor || :
  462.  
  463. uninstall:
  464.     @echo "Removing XBMC..."
  465.     @rm -rf $(DESTDIR)$(libdir)/xbmc
  466.     @rm -rf $(DESTDIR)$(datarootdir)/xbmc $(DESTDIR)$(bindir)/xbmc
  467.     @rm -rf $(DESTDIR)$(bindir)/xbmc-standalone
  468.     @rm -rf $(DESTDIR)$(datarootdir)/xsessions/XBMC.desktop
  469.     @echo "Done!"
  470.  
  471. clean-xbmc.bin:
  472.     rm -f xbmc.bin
  473.     for d in $(BIN_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  474. clean-eventclients:
  475.     for d in $(EC_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  476. clean-xbmctex:
  477.     for d in $(XBMCTEX_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  478. clean-dvdpcodecs:
  479.     for d in $(DVDPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  480. clean-papcodecs:
  481.     for d in $(PAPCODECS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  482. clean-libs:
  483.     for d in $(LIB_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  484. clean-screensavers:
  485.     for d in $(SS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  486. clean-visualisations:
  487.     for d in $(VIS_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d clean; fi; done
  488.  
  489. clean-codecs: clean-dvdpcodecs clean-papcodecs
  490.  
  491. clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
  492.     clean-screensavers clean-visualisations
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement