1# Note that we cannot use: AUTOMAKE_OPTIONS = subdir-objects
2# subdir-objects will compile the source files to a single version of Python.
3# Since subdir-objects is being deprecated we copy the source files instead.
4am__installdirs = "$(DESTDIR)$(pyexecdir3)"
5pyexecdir = $(pyexecdir3)
6
7if HAVE_PYTHON3
8AM_CFLAGS = \
9	-I$(top_srcdir)/include \
10	-I$(top_srcdir)/common \
11	@LIBCERROR_CPPFLAGS@ \
12	@LIBCDATA_CPPFLAGS@ \
13	@LIBCLOCALE_CPPFLAGS@ \
14	@LIBCSPLIT_CPPFLAGS@ \
15	@LIBUNA_CPPFLAGS@ \
16	@LIBCFILE_CPPFLAGS@ \
17	@LIBCPATH_CPPFLAGS@ \
18	@LIBBFIO_CPPFLAGS@ \
19	@LIBFGUID_CPPFLAGS@ \
20	@LIBFSXFS_DLL_IMPORT@
21
22am_pyfsxfs_la_rpath = -rpath $(pyexecdir3)
23
24BUILT_SOURCES = \
25	pyfsxfs.c pyfsxfs.h \
26	pyfsxfs_datetime.c pyfsxfs_datetime.h \
27	pyfsxfs_error.c pyfsxfs_error.h \
28	pyfsxfs_extended_attribute.c pyfsxfs_extended_attribute.h \
29	pyfsxfs_extended_attributes.c pyfsxfs_extended_attributes.h \
30	pyfsxfs_file_entries.c pyfsxfs_file_entries.h \
31	pyfsxfs_file_entry.c pyfsxfs_file_entry.h \
32	pyfsxfs_file_object_io_handle.c pyfsxfs_file_object_io_handle.h \
33	pyfsxfs_integer.c pyfsxfs_integer.h \
34	pyfsxfs_libbfio.h \
35	pyfsxfs_libcerror.h \
36	pyfsxfs_libfsxfs.h \
37	pyfsxfs_python.h \
38	pyfsxfs_unused.h \
39	pyfsxfs_volume.c pyfsxfs_volume.h
40
41pyexec_LTLIBRARIES = pyfsxfs.la
42
43nodist_pyfsxfs_la_SOURCES = $(BUILT_SOURCES)
44
45pyfsxfs_la_LIBADD = \
46	@LIBCERROR_LIBADD@ \
47	../libfsxfs/libfsxfs.la \
48	@LIBCDATA_LIBADD@ \
49	@LIBCLOCALE_LIBADD@ \
50	@LIBCSPLIT_LIBADD@ \
51	@LIBUNA_LIBADD@ \
52	@LIBCFILE_LIBADD@ \
53	@LIBCPATH_LIBADD@ \
54	@LIBBFIO_LIBADD@ \
55	@LIBFGUID_LIBADD@
56
57pyfsxfs_la_CPPFLAGS = $(PYTHON3_CPPFLAGS)
58pyfsxfs_la_LDFLAGS  = -module -avoid-version $(PYTHON3_LDFLAGS)
59
60$(BUILT_SOURCES):
61	/bin/cp -f $(top_srcdir)/pyfsxfs/$@ $@
62
63endif
64
65MAINTAINERCLEANFILES = \
66	Makefile.in
67
68clean-local:
69	/bin/rm -f pyfsxfs*.[ch]
70
71distclean: clean
72	/bin/rm -f Makefile
73
74