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 @LIBCLOCALE_CPPFLAGS@ \ 14 @LIBCSPLIT_CPPFLAGS@ \ 15 @LIBUNA_CPPFLAGS@ \ 16 @LIBCFILE_CPPFLAGS@ \ 17 @LIBCPATH_CPPFLAGS@ \ 18 @LIBBFIO_CPPFLAGS@ \ 19 @LIBFGUID_CPPFLAGS@ \ 20 @LIBFSHFS_DLL_IMPORT@ 21 22am_pyfshfs_la_rpath = -rpath $(pyexecdir2) 23 24BUILT_SOURCES = \ 25 pyfshfs.c pyfshfs.h \ 26 pyfshfs_datetime.c pyfshfs_datetime.h \ 27 pyfshfs_error.c pyfshfs_error.h \ 28 pyfshfs_extended_attribute.c pyfshfs_extended_attribute.h \ 29 pyfshfs_extended_attributes.c pyfshfs_extended_attributes.h \ 30 pyfshfs_file_entry.c pyfshfs_file_entry.h \ 31 pyfshfs_file_entries.c pyfshfs_file_entries.h \ 32 pyfshfs_file_object_io_handle.c pyfshfs_file_object_io_handle.h \ 33 pyfshfs_integer.c pyfshfs_integer.h \ 34 pyfshfs_libbfio.h \ 35 pyfshfs_libcerror.h \ 36 pyfshfs_libfshfs.h \ 37 pyfshfs_python.h \ 38 pyfshfs_unused.h \ 39 pyfshfs_volume.c pyfshfs_volume.h 40 41pyexec_LTLIBRARIES = pyfshfs.la 42 43nodist_pyfshfs_la_SOURCES = $(BUILT_SOURCES) 44 45pyfshfs_la_LIBADD = \ 46 @LIBCERROR_LIBADD@ \ 47 ../libfshfs/libfshfs.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 57pyfshfs_la_CPPFLAGS = $(PYTHON2_CPPFLAGS) 58pyfshfs_la_LDFLAGS = -module -avoid-version $(PYTHON2_LDFLAGS) 59 60$(BUILT_SOURCES): 61 /bin/cp -f $(top_srcdir)/pyfshfs/$@ $@ 62 63endif 64 65MAINTAINERCLEANFILES = \ 66 Makefile.in 67 68clean-local: 69 /bin/rm -f pyfshfs*.[ch] 70 71distclean: clean 72 /bin/rm -f Makefile 73 74