libvlc events related functions renamed
[vlc/bindings/jvlc.git] / Makefile.am
1 #######################################################################
2 # VLC Java Bindings
3 #######################################################################
4
5 SUBDIRS= . src
6
7 EXTRA_DIST= \
8             FAQ \
9             TODO \
10             README \
11             THANKS \
12             javadoc.xml \
13             VlcClient.java \
14             VLCExample.java
15
16 EXTRA_DIST+= \
17         org/videolan/jvlc/AudioIntf.java \
18         org/videolan/jvlc/Audio.java \
19         org/videolan/jvlc/GenericVideoWidget.java \
20         org/videolan/jvlc/InputIntf.java \
21         org/videolan/jvlc/Input.java \
22         org/videolan/jvlc/JLibVLC.java \
23         org/videolan/jvlc/JVLCCanvas.java \
24         org/videolan/jvlc/JVLC.java \
25         org/videolan/jvlc/JVLCPanel.java \
26         org/videolan/jvlc/PlaylistIntf.java \
27         org/videolan/jvlc/Playlist.java \
28         org/videolan/jvlc/VideoIntf.java \
29         org/videolan/jvlc/Video.java \
30         org/videolan/jvlc/VLCException.java \
31         org/videolan/jvlc/VLMIntf.java \
32         org/videolan/jvlc/VLM.java \
33         org/videolan/jvlc/listener/VolumeListener.java 
34
35 if BUILD_JAVA
36
37 OBJECTS = org/videolan/jvlc/VLM.class org/videolan/jvlc/VLCException.class org/videolan/jvlc/Playlist.class org/videolan/jvlc/AudioIntf.class org/videolan/jvlc/Audio.class org/videolan/jvlc/InputIntf.class org/videolan/jvlc/Input.class org/videolan/jvlc/PlaylistIntf.class org/videolan/jvlc/VideoIntf.class org/videolan/jvlc/JVLCCanvas.class org/videolan/jvlc/Video.class org/videolan/jvlc/JLibVLC.class org/videolan/jvlc/JVLC.class  org/videolan/jvlc/JVLCPanel.class org/videolan/jvlc/VLMIntf.class org/videolan/jvlc/GenericVideoWidget.class org/videolan/jvlc/listener/VolumeListener.class
38
39 PROCESSOR_FAMILY = `uname -m | sed -e 's/^i.86/i386/' | sed -e 's/^x86_64/amd64/'`
40
41 if HAVE_WIN32
42 JINCLUDES = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32
43 LIBJINCLUDES = -L${JAVA_HOME}/lib -ljawt
44 else
45 JINCLUDES = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
46 LIBJINCLUDES = -L$(JAVA_HOME)/jre/lib/$(PROCESSOR_FAMILY) -ljawt
47 endif
48
49 export JINCLUDES
50 export LIBJINCLUDES
51
52 # Build targets
53
54 %.class: %.java
55         $(JAVAC) $?
56
57 VlcClient: $(OBJECTS)
58         $(JAVAC) VlcClient.java
59
60 VLCExample: $(OBJECTS)
61         $(JAVAC) VLCExample.java
62
63 all-am: VlcClient VLCExample
64
65 clean-local:
66         rm -f *.class *~ org/videolan/jvlc/*.class src/*.o *.so *.o *.dll
67
68 endif