summaryrefslogtreecommitdiff
path: root/bindings/java/Makefile.am
blob: c9e430cff7e5226b2f6815587ba68974bf6b5fb8 (plain)
1
2
3
4
5
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# We do not want to install Jzmq.class file
# user has to copy it to the right location.
#jzmqdir = /tmp

jarfile = Zmq.jar
jardir = $(datadir)/java

$(jarfile): $(dist_noinst_JAVA)
	$(JAR) cf $(JARFLAGS) $@ org/zmq/*.class

jar_DATA = $(jarfile)

dist_noinst_JAVA = \
	org/zmq/Context.java \
	org/zmq/Socket.java

lib_LTLIBRARIES = libjzmq.la
libjzmq_la_SOURCES = \
	Context.cpp \
    org_zmq_Context.h \
	Socket.cpp \
    org_zmq_Socket.h

libjzmq_la_CXXFLAGS = -I$(top_srcdir)/src/libzmq \
@JAVA_INCLUDE@ -I$(top_srcdir)/bindings/c -Wall
libjzmq_la_LDFLAGS = -version-info @JLTVER@
libjzmq_la_LIBADD = $(top_builddir)/src/libzmq.la

BUILT_SOURCES = \
    org/zmq/Context.class \
    org_zmq_Context.h \
	org/zmq/Socket.class \
    org_zmq_Socket.h

CLEANFILES = \
	org/zmq/Context.class \
	org_zmq_Context.h \
	org/zmq/Socket.class \
	org_zmq_Socket.h \
	Zmq.jar

$(srcdir)/Context.cpp: org_zmq_Context.h

org_zmq_Context.h: org/zmq/Context.class
	$(CLASSPATH_ENV) $(JAVAH) -jni -classpath . org.zmq.Context

./org/zmq/Context.class: classdist_noinst.stamp

$(srcdir)/Socket.cpp: org_zmq_Socket.h

org_zmq_Socket.h: org/zmq/Socket.class
	$(CLASSPATH_ENV) $(JAVAH) -jni -classpath . org.zmq.Socket

./org/zmq/Socket.class: classdist_noinst.stamp

dist-hook:
	-rm $(distdir)/*.h