File: Makefile.am

package info (click to toggle)
libpff 20120802-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,508 kB
  • ctags: 6,784
  • sloc: ansic: 214,206; sh: 11,485; makefile: 1,229; python: 138; java: 137; sed: 16
file content (64 lines) | stat: -rw-r--r-- 1,260 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
# Notes:
# If .java files are put in _SOURCES autoconf/make requires GJC
# If .java files are put in _JAVA they will be build after _LTLIBRARIES

JAVA_FILES = \
	Exception.java \
	File.java

if HAVE_JAVA
AM_CFLAGS = \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/common \
	-I$(top_srcdir)/libcstring \
	-I$(top_srcdir)/liberror \
	@MEMWATCH_CPPFLAGS@

jardir = @JAR_PACKAGE_DIR@
jnidir = @JNI_LIBRARY_DIR@

jar_DATA = jpff.jar

noinst_JAVA = \
	$(JAVA_FILES)

# On Linux the name of the JNI library should start with lib
# and should be in the library path (ldconfig)
jni_LTLIBRARIES = libjpff.la

BUILT_SOURCES = \
	jpff_File.h

libjpff_la_SOURCES = \
	jpff_File.c \
	jpff_jni.h \
	jpff_string.c jpff_string.h

libjpff_la_LIBADD = \
	../libcstring/libcstring.la \
	../liberror/liberror.la \
	../libpff/libpff.la

libjpff_la_CPPFLAGS = $(JAVA_CPPFLAGS)
libjpff_la_LDFLAGS  = -module -avoid-version $(JAVA_LDFLAGS)

endif

.java.class:
	$(JAVAC) -classpath .. $(JAVACFLAGS) $<

jpff_File.h: Exception.class File.class
	$(JAVAH) -classpath .. -jni $(JAVAHFLAGS) jpff.File

jpff.jar: $(noinst_JAVA)
	(cd .. && $(JAR) cf $(JARFLAGS) jpff/$@ jpff/*.class)

EXTRA_DIST = \
	$(JAVA_FILES)

MAINTAINERCLEANFILES = \
	Makefile.in

distclean: clean
	/bin/rm -f Makefile