aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients/Makefile
diff options
context:
space:
mode:
authorAlTheKiller <AlTheKiller@svn>2009-09-23 01:49:50 +0000
committerAlTheKiller <AlTheKiller@svn>2009-09-23 01:49:50 +0000
commit45285e8a9300cd754a760560640b75b09f98035e (patch)
treead9f093885ad5c98e9dd4156674e7691c22ed0a2 /tools/EventClients/Makefile
step 3/4: Move linuxport to trunk. How'd I get roped into this?
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23097 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools/EventClients/Makefile')
-rw-r--r--tools/EventClients/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/EventClients/Makefile b/tools/EventClients/Makefile
new file mode 100644
index 0000000000..5e902f7fbc
--- /dev/null
+++ b/tools/EventClients/Makefile
@@ -0,0 +1,32 @@
+# Default prefix dir
+prefix=/usr/local
+installdir=$(prefix)
+WII_EXTRA_OPTS=
+
+all: wiimote install
+
+wiimote:
+ cd Clients/WiiRemote && \
+ g++ CWIID_WiiRemote.cpp -lcwiid -DICON_PATH="\"$(installdir)/share/pixmaps/xbmc/\"" $(WII_EXTRA_OPTS) -o WiiRemote
+
+j2me-remote:
+ cd Clients/J2ME\ Client
+ ant -f build.xml
+
+install:
+ mkdir -p $(prefix)/bin
+ cp -a Clients/WiiRemote/WiiRemote $(prefix)/bin/xbmc-wiiremote
+ cp -a Clients/J2ME\ Client/j2me_remote.py $(prefix)/bin/xbmc-j2meremote
+ cp -a Clients/PS3\ BD\ Remote/ps3_remote.py $(prefix)/bin/xbmc-ps3remote
+ #cp -a Clients/PS3\ Sixaxis\ Controller/ps3d.py $(prefix)/bin/xbmc-ps3d
+ mkdir -p $(prefix)/lib/python2.5/site-packages/xbmc
+ echo 'ICON_PATH="$(installdir)/share/pixmaps/xbmc/"' > $(prefix)/lib/python2.5/site-packages/xbmc/defs.py
+ cp -a lib/python/* $(prefix)/lib/python2.5/site-packages/xbmc/
+ cp -a Clients/PS3\ BD\ Remote/ps3_remote.py $(prefix)/lib/python2.5/site-packages/xbmc/
+ mkdir -p $(prefix)/include/xbmc
+ cp -a lib/c++/* $(prefix)/include/xbmc/
+ mkdir -p $(prefix)/share/pixmaps/xbmc
+ cp -a icons/* $(prefix)/share/pixmaps/xbmc/
+
+clean:
+ rm -f Clients/WiiRemote/WiiRemote