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	@LIBOLECF_DLL_IMPORT@
21
22am_pyolecf_la_rpath = -rpath $(pyexecdir3)
23
24BUILT_SOURCES = \
25	pyolecf.c pyolecf.h \
26	pyolecf_codepage.c pyolecf_codepage.h \
27	pyolecf_datetime.c pyolecf_datetime.h \
28	pyolecf_error.c pyolecf_error.h \
29	pyolecf_file.c pyolecf_file.h \
30	pyolecf_file_object_io_handle.c pyolecf_file_object_io_handle.h \
31	pyolecf_guid.c pyolecf_guid.h \
32	pyolecf_integer.c pyolecf_integer.h \
33	pyolecf_item.c pyolecf_item.h \
34	pyolecf_item_types.c pyolecf_item_types.h \
35	pyolecf_items.c pyolecf_items.h \
36	pyolecf_libbfio.h \
37	pyolecf_libcerror.h \
38	pyolecf_libclocale.h \
39	pyolecf_libfguid.h \
40	pyolecf_libolecf.h \
41	pyolecf_property_section.c pyolecf_property_section.h \
42	pyolecf_property_sections.c pyolecf_property_sections.h \
43	pyolecf_property_set.c pyolecf_property_set.h \
44	pyolecf_property_set_stream.c pyolecf_property_set_stream.h \
45	pyolecf_property_value.c pyolecf_property_value.h \
46	pyolecf_property_values.c pyolecf_property_values.h \
47	pyolecf_python.h \
48	pyolecf_stream.c pyolecf_stream.h \
49	pyolecf_unused.h \
50	pyolecf_value_types.c pyolecf_value_types.h
51
52pyexec_LTLIBRARIES = pyolecf.la
53
54nodist_pyolecf_la_SOURCES = $(BUILT_SOURCES)
55
56pyolecf_la_LIBADD = \
57	@LIBCERROR_LIBADD@ \
58	../libolecf/libolecf.la \
59	@LIBCDATA_LIBADD@ \
60	@LIBCLOCALE_LIBADD@ \
61	@LIBCSPLIT_LIBADD@ \
62	@LIBUNA_LIBADD@ \
63	@LIBCFILE_LIBADD@ \
64	@LIBCPATH_LIBADD@ \
65	@LIBBFIO_LIBADD@ \
66	@LIBFGUID_LIBADD@
67
68pyolecf_la_CPPFLAGS = $(PYTHON3_CPPFLAGS)
69pyolecf_la_LDFLAGS  = -module -avoid-version $(PYTHON3_LDFLAGS)
70
71$(BUILT_SOURCES):
72	/bin/cp -f $(top_srcdir)/pyolecf/$@ $@
73
74endif
75
76MAINTAINERCLEANFILES = \
77	Makefile.in
78
79clean-local:
80	/bin/rm -f pyolecf*.[ch]
81
82distclean: clean
83	/bin/rm -f Makefile
84
85