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	@LIBBDE_DLL_IMPORT@
21
22am_pybde_la_rpath = -rpath $(pyexecdir3)
23
24BUILT_SOURCES = \
25	pybde.c pybde.h \
26	pybde_datetime.c pybde_datetime.h \
27	pybde_encryption_methods.c pybde_encryption_methods.h \
28	pybde_error.c pybde_error.h \
29	pybde_file_object_io_handle.c pybde_file_object_io_handle.h \
30	pybde_guid.c pybde_guid.h \
31	pybde_integer.c pybde_integer.h \
32	pybde_key_protection_types.c pybde_key_protection_types.h \
33	pybde_key_protector.c pybde_key_protector.h \
34	pybde_key_protectors.c pybde_key_protectors.h \
35	pybde_libbde.h \
36	pybde_libbfio.h \
37	pybde_libcerror.h \
38	pybde_libclocale.h \
39	pybde_libfguid.h \
40	pybde_python.h \
41	pybde_unused.h \
42	pybde_volume.c pybde_volume.h
43
44pyexec_LTLIBRARIES = pybde.la
45
46nodist_pybde_la_SOURCES = $(BUILT_SOURCES)
47
48pybde_la_LIBADD = \
49	@LIBCERROR_LIBADD@ \
50	../libbde/libbde.la \
51	@LIBCDATA_LIBADD@ \
52	@LIBCLOCALE_LIBADD@ \
53	@LIBCSPLIT_LIBADD@ \
54	@LIBUNA_LIBADD@ \
55	@LIBCFILE_LIBADD@ \
56	@LIBCPATH_LIBADD@ \
57	@LIBBFIO_LIBADD@ \
58	@LIBFGUID_LIBADD@
59
60pybde_la_CPPFLAGS = $(PYTHON3_CPPFLAGS)
61pybde_la_LDFLAGS  = -module -avoid-version $(PYTHON3_LDFLAGS)
62
63$(BUILT_SOURCES):
64	/bin/cp -f $(top_srcdir)/pybde/$@ $@
65
66endif
67
68MAINTAINERCLEANFILES = \
69	Makefile.in
70
71clean-local:
72	/bin/rm -f pybde*.[ch]
73
74distclean: clean
75	/bin/rm -f Makefile
76
77