X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=Makefile.am;h=7700f46ac78bdb703939dbe6f84488882fbf5282;hp=f0a00573c166e15cea38c94c1fa14b92fe5eb939;hb=de12c346dc64404821d52d545e2e1b3d44230f2a;hpb=dd510eb7e264224bd6b2de7f455d9ecc9e2e2b31 diff --git a/Makefile.am b/Makefile.am index f0a00573..7700f46a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,44 +1,45 @@ ACLOCAL_AMFLAGS = -I m4 -AM_CPPFLAGS = -I$(top_srcdir)/src +AM_CPPFLAGS = -I$(top_srcdir)/src $(WINDOWS_CPPFLAGS) AM_CFLAGS = -std=gnu99 -D_LARGEFILE_SOURCE \ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE lib_LTLIBRARIES = libwim.la -libwim_la_LDFLAGS = -version-info 1:0:0 +libwim_la_LDFLAGS = -version-info 4:0:2 $(WINDOWS_LDFLAGS) libwim_la_SOURCES = \ - src/comp.c \ - src/comp.h \ - src/decomp.c \ - src/decomp.h \ + src/add_image.c \ + src/buffer_io.h \ + src/compress.c \ + src/compress.h \ + src/decompress.c \ + src/decompress.h \ + src/delete_image.c \ src/dentry.c \ src/dentry.h \ + src/encoding.c \ src/endianness.h \ - src/extract.c \ + src/export_image.c \ + src/extract_image.c \ src/hardlink.c \ src/header.c \ src/integrity.c \ - src/io.h \ src/join.c \ src/list.h \ src/lookup_table.c \ src/lookup_table.h \ - src/lz.c \ + src/lz77.c \ src/lzx-common.c \ - src/lzx-comp.c \ - src/lzx-decomp.c \ + src/lzx-compress.c \ + src/lzx-decompress.c \ src/lzx.h \ - src/modify.c \ - src/mount.c \ - src/ntfs-apply.c \ - src/ntfs-capture.c \ + src/metadata_resource.c \ + src/mount_image.c \ src/resource.c \ src/rbtree.c \ src/rbtree.h \ - src/rbtree_augmented.h \ src/security.c \ src/security.h \ src/sha1.c \ @@ -48,16 +49,23 @@ libwim_la_SOURCES = \ src/timestamp.h \ src/util.c \ src/util.h \ + src/verify.c \ src/wim.c \ src/wimlib.h \ src/wimlib_internal.h \ src/write.c \ src/xml.c \ src/xml.h \ - src/xpress-comp.c \ - src/xpress-decomp.c \ + src/xpress-compress.c \ + src/xpress-decompress.c \ src/xpress.h +if WITH_NTFS_3G +libwim_la_SOURCES += src/ntfs-apply.c \ + src/ntfs-capture.c +endif + + EXTRA_libwim_la_SOURCES = src/sha1-ssse3.asm libwim_la_DEPENDENCIES = $(SSSE3_SHA1_OBJ) STRIP_FPIC = sh $(top_srcdir)/build-aux/strip_fPIC.sh @@ -74,11 +82,12 @@ libwim_la_LIBADD = \ $(LTLIBICONV) \ $(LIBCRYPTO_LDADD) \ $(SSSE3_SHA1_OBJ) \ - $(PTHREAD_LDADD) + $(PTHREAD_LDADD) \ + $(WINDOWS_LDADD) libwim_la_CFLAGS = \ $(AM_CFLAGS) \ - -fvisibility=hidden \ + $(VISIBILITY_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(LIBFUSE_CFLAGS) \ $(LIBNTFS_3G_CFLAGS) \ @@ -89,6 +98,11 @@ bin_PROGRAMS = imagex imagex_SOURCES = programs/imagex.c imagex_LDADD = $(top_builddir)/libwim.la +if WINDOWS_NATIVE_BUILD +imagex_SOURCES += programs/imagex-win32.c programs/imagex-win32.h +libwim_la_SOURCES += src/win32.c +endif + dist_bin_SCRIPTS = programs/mkwinpeimg include_HEADERS = src/wimlib.h @@ -98,8 +112,11 @@ EXTRA_DIST = \ archlinux \ debian \ rpm \ + README.WINDOWS \ programs/install.cmd \ + programs/wimapply.c \ tests/common_tests.sh \ + tests/tests-common.sh \ tests/security_descriptor_1.base64 \ tests/security_descriptor_1.bin \ tests/security_descriptor_2.base64 \ @@ -122,6 +139,7 @@ man1_MANS = \ doc/imagex-join.1 \ doc/imagex-mount.1 \ doc/imagex-mountrw.1 \ + doc/imagex-optimize.1 \ doc/imagex-split.1 \ doc/imagex-unmount.1 \ doc/mkwinpeimg.1 @@ -142,5 +160,10 @@ if WITH_NTFS_3G dist_check_SCRIPTS += tests/test-imagex-ntfs endif +if WINDOWS_NATIVE_BUILD +# TODO: The tests need to be re-written for Windows builds. +TESTS = +else TESTS = $(dist_check_SCRIPTS) +endif