Makefile.am 2.06 KB
Newer Older
1 2 3 4
#######################################################################
# VLC Java Bindings
#######################################################################

5
SUBDIRS= . src
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

EXTRA_DIST= \
	    FAQ \
	    TODO \
	    README \
	    THANKS \
	    javadoc.xml \
	    VlcClient.java \
	    VLCExample.java

EXTRA_DIST+= \
	org/videolan/jvlc/AudioIntf.java \
	org/videolan/jvlc/Audio.java \
	org/videolan/jvlc/GenericVideoWidget.java \
	org/videolan/jvlc/InputIntf.java \
	org/videolan/jvlc/Input.java \
	org/videolan/jvlc/JLibVLC.java \
	org/videolan/jvlc/JVLCCanvas.java \
	org/videolan/jvlc/JVLC.java \
	org/videolan/jvlc/JVLCPanel.java \
	org/videolan/jvlc/PlaylistIntf.java \
	org/videolan/jvlc/Playlist.java \
	org/videolan/jvlc/VideoIntf.java \
	org/videolan/jvlc/Video.java \
	org/videolan/jvlc/VLCException.java \
	org/videolan/jvlc/VLMIntf.java \
	org/videolan/jvlc/VLM.java 
33

34 35
if BUILD_JAVA

36
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
37

38
PROCESSOR_FAMILY = `uname -m | sed -e 's/^i.86/i386/' | sed -e 's/^x86_64/amd64/'`
39

40 41
if HAVE_WIN32
JINCLUDES = -I${JAVA_HOME}/include -I${JAVA_HOME}/include/win32
42
LIBJINCLUDES = -L${JAVA_HOME}/lib -ljawt
43
else
44 45
JINCLUDES = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
LIBJINCLUDES = -L$(JAVA_HOME)/jre/lib/$(PROCESSOR_FAMILY) -ljawt
46 47
endif

48
export JINCLUDES
49
export LIBJINCLUDES
50

51
# Build targets
Filippo Carone's avatar
Filippo Carone committed
52

53 54
%.class: %.java 
	$(JAVAC) $? 
55

56 57 58 59 60 61 62
VlcClient: $(OBJECTS)
	$(JAVAC) VlcClient.java

VLCExample: $(OBJECTS)
	$(JAVAC) VLCExample.java

all-am: VlcClient VLCExample
63

64
clean-local:
65
	rm -f *.class *~ org/videolan/jvlc/*.class org_videolan*.h src/*.o *.so *.o *.dll
66

67
endif