Fix: FD leak in liblttng-ust-ctl
[lttng-ust.git] / liblttng-ust-jul / Makefile.am
CommitLineData
cfff0cd5
MD
1LTTNG_JUL_SRCDIR = $(srcdir)/org/lttng/ust/jul
2LTTNG_JUL_DESTDIR = $(builddir)/org/lttng/ust/jul
3
43e5396b
DG
4if BUILD_JNI_INTERFACE
5
6AM_CPPFLAGS = -I$(top_srcdir)/include
7
8lib_LTLIBRARIES = liblttng-ust-jul-jni.la
9liblttng_ust_jul_jni_la_SOURCES = LTTngUst.c lttng_ust_jul.h
f7e770b8 10nodist_liblttng_ust_jul_jni_la_SOURCES = org_lttng_ust_jul_LTTngUst.h
cfff0cd5
MD
11dist_noinst_DATA = $(LTTNG_JUL_SRCDIR)/LTTngUst.java \
12 $(LTTNG_JUL_SRCDIR)/LTTngAgent.java \
13 $(LTTNG_JUL_SRCDIR)/LTTngLogHandler.java \
14 $(LTTNG_JUL_SRCDIR)/LTTngSessiondCmd2_4.java \
15 $(LTTNG_JUL_SRCDIR)/LTTngTCPSessiondClient.java \
16 $(LTTNG_JUL_SRCDIR)/LTTngThread.java
43e5396b
DG
17liblttng_ust_jul_jni_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
18
6490eba0
MD
19lttnglibjava_DATA = liblttng-ust-jul.jar
20
43e5396b
DG
21if HAVE_JAVA_JDK
22JCC=$(JAVA_JDK)/bin
23else
24JCC=javac
25endif
26
16b36e55
MD
27all-local: $(LTTNG_JUL_DESTDIR)/LTTngAgent.class \
28 $(LTTNG_JUL_DESTDIR)/LTTngUst.class \
29 org_lttng_ust_jul_LTTngUst.h \
30 liblttng-ust-jul.jar
43e5396b
DG
31
32clean-local:
33 rm -f org_lttng_ust_jul_LTTngUst.h
34 rm -f liblttng-ust-jul.jar
35 rm -f org/lttng/ust/jul/*.class
36
f7e770b8 37LTTngUst.c: org_lttng_ust_jul_LTTngUst.h
43e5396b 38
16b36e55
MD
39%.class: %.java
40 $(JCC)/javac -d "$(builddir)" $<
43e5396b 41
16b36e55
MD
42LTTNG_AGENT_FILES = $(LTTNG_JUL_SRCDIR)/LTTngAgent.java \
43 $(LTTNG_JUL_SRCDIR)/LTTngLogHandler.java \
44 $(LTTNG_JUL_SRCDIR)/LTTngSessiondCmd2_4.java \
45 $(LTTNG_JUL_SRCDIR)/LTTngTCPSessiondClient.java \
46 $(LTTNG_JUL_SRCDIR)/LTTngThread.java
47
48$(LTTNG_JUL_DESTDIR)/LTTngAgent.class: $(LTTNG_AGENT_FILES) \
49 $(LTTNG_JUL_DESTDIR)/LTTngUst.class
50 $(JCC)/javac -d "$(builddir)" $(LTTNG_AGENT_FILES)
43e5396b 51
f7e770b8 52org_lttng_ust_jul_LTTngUst.h: $(LTTNG_JUL_DESTDIR)/LTTngUst.class
43e5396b
DG
53 $(JCC)/javah org.lttng.ust.jul.LTTngUst
54
16b36e55 55liblttng-ust-jul.jar: $(LTTNG_JUL_DESTDIR)/LTTngAgent.class
43e5396b
DG
56 $(JCC)/jar cf liblttng-ust-jul.jar \
57 $(LTTNG_JUL_DESTDIR)/*.class
58
59endif
This page took 0.025165 seconds and 4 git commands to generate.