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	@LIBUNA_CPPFLAGS@ \
15	@LIBFGUID_CPPFLAGS@ \
16	@LIBFWSI_DLL_IMPORT@
17
18am_pyfwsi_la_rpath = -rpath $(pyexecdir3)
19
20BUILT_SOURCES = \
21	pyfwsi.c pyfwsi.h \
22	pyfwsi_codepage.c pyfwsi_codepage.h \
23	pyfwsi_datetime.c pyfwsi_datetime.h \
24	pyfwsi_error.c pyfwsi_error.h \
25	pyfwsi_extension_block.c pyfwsi_extension_block.h \
26	pyfwsi_extension_blocks.c pyfwsi_extension_blocks.h \
27	pyfwsi_file_entry.c pyfwsi_file_entry.h \
28	pyfwsi_file_entry_extension.c pyfwsi_file_entry_extension.h \
29	pyfwsi_guid.c pyfwsi_guid.h \
30	pyfwsi_integer.c pyfwsi_integer.h \
31	pyfwsi_item.c pyfwsi_item.h \
32	pyfwsi_item_list.c pyfwsi_item_list.h \
33	pyfwsi_items.c pyfwsi_items.h \
34	pyfwsi_libcerror.h \
35	pyfwsi_libclocale.h \
36	pyfwsi_libfguid.h \
37	pyfwsi_libfwsi.h \
38	pyfwsi_network_location.c pyfwsi_network_location.h \
39	pyfwsi_python.h \
40	pyfwsi_root_folder.c pyfwsi_root_folder.h \
41	pyfwsi_unused.h \
42	pyfwsi_volume.c pyfwsi_volume.h
43
44pyexec_LTLIBRARIES = pyfwsi.la
45
46nodist_pyfwsi_la_SOURCES = $(BUILT_SOURCES)
47
48pyfwsi_la_LIBADD = \
49	@LIBCERROR_LIBADD@ \
50	../libfwsi/libfwsi.la \
51	@LIBCDATA_LIBADD@ \
52	@LIBCLOCALE_LIBADD@ \
53	@LIBUNA_LIBADD@ \
54	@LIBFGUID_LIBADD@
55
56pyfwsi_la_CPPFLAGS = $(PYTHON3_CPPFLAGS)
57pyfwsi_la_LDFLAGS  = -module -avoid-version $(PYTHON3_LDFLAGS)
58
59$(BUILT_SOURCES):
60	/bin/cp -f $(top_srcdir)/pyfwsi/$@ $@
61
62endif
63
64MAINTAINERCLEANFILES = \
65	Makefile.in
66
67clean-local:
68	/bin/rm -f pyfwsi*.[ch]
69
70distclean: clean
71	/bin/rm -f Makefile
72
73