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)$(pyexecdir2)"
5pyexecdir = $(pyexecdir2)
6
7if HAVE_PYTHON2
8AM_CFLAGS = \
9	-I$(top_srcdir)/include \
10	-I$(top_srcdir)/common \
11	@LIBCERROR_CPPFLAGS@ \
12	@LIBCDATA_CPPFLAGS@ \
13	@LIBFWNT_DLL_IMPORT@
14
15am_pyfwnt_la_rpath = -rpath $(pyexecdir2)
16
17BUILT_SOURCES = \
18	pyfwnt.c pyfwnt.h \
19	pyfwnt_access_control_entries.c pyfwnt_access_control_entries.h \
20	pyfwnt_access_control_entry.c pyfwnt_access_control_entry.h \
21	pyfwnt_access_control_list.c pyfwnt_access_control_list.h \
22	pyfwnt_access_control_types.c pyfwnt_access_control_types.h \
23	pyfwnt_error.c pyfwnt_error.h \
24	pyfwnt_integer.c pyfwnt_integer.h \
25	pyfwnt_libcerror.h \
26	pyfwnt_libfwnt.h \
27	pyfwnt_python.h \
28	pyfwnt_security_descriptor.c pyfwnt_security_descriptor.h \
29	pyfwnt_security_identifier.c pyfwnt_security_identifier.h \
30	pyfwnt_unused.h
31
32pyexec_LTLIBRARIES = pyfwnt.la
33
34nodist_pyfwnt_la_SOURCES = $(BUILT_SOURCES)
35
36pyfwnt_la_LIBADD = \
37	@LIBCERROR_LIBADD@ \
38	../libfwnt/libfwnt.la \
39	@LIBCDATA_LIBADD@
40
41pyfwnt_la_CPPFLAGS = $(PYTHON2_CPPFLAGS)
42pyfwnt_la_LDFLAGS  = -module -avoid-version $(PYTHON2_LDFLAGS)
43
44$(BUILT_SOURCES):
45	/bin/cp -f $(top_srcdir)/pyfwnt/$@ $@
46
47endif
48
49MAINTAINERCLEANFILES = \
50	Makefile.in
51
52clean-local:
53	/bin/rm -f pyfwnt*.[ch]
54
55distclean: clean
56	/bin/rm -f Makefile
57
58