1 ACLOCAL_AMFLAGS = -I m4
3 AM_CPPFLAGS = -I$(top_srcdir)/src
5 AM_CFLAGS = -std=gnu99 -D_LARGEFILE_SOURCE \
6 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
8 lib_LTLIBRARIES = libwim.la
10 libwim_la_LDFLAGS = -version-info 4:0:2 $(WINDOWS_EXTRA_LDFLAGS)
36 src/lzx-decompress.c \
38 src/metadata_resource.c \
55 src/wimlib_internal.h \
60 src/xpress-compress.c \
61 src/xpress-decompress.c \
65 libwim_la_SOURCES += src/ntfs-apply.c \
70 EXTRA_libwim_la_SOURCES = src/sha1-ssse3.asm
71 libwim_la_DEPENDENCIES = $(SSSE3_SHA1_OBJ)
72 STRIP_FPIC = sh $(top_srcdir)/build-aux/strip_fPIC.sh
74 sha1-ssse3.lo:src/sha1-ssse3.asm
75 $(LIBTOOL) --mode=compile --tag=CC $(STRIP_FPIC) $(NASM) -f elf64 \
76 -DINTEL_SHA1_UPDATE_DEFAULT_DISPATCH=ssse3_not_found \
91 $(VISIBILITY_CFLAGS) \
94 $(LIBNTFS_3G_CFLAGS) \
99 imagex_SOURCES = programs/imagex.c
100 imagex_LDADD = $(top_builddir)/libwim.la
103 imagex_SOURCES += programs/imagex-win32.c programs/imagex-win32.h
106 dist_bin_SCRIPTS = programs/mkwinpeimg
108 include_HEADERS = src/wimlib.h
111 build-aux/strip_fPIC.sh \
116 programs/install.cmd \
117 programs/wimapply.c \
118 tests/common_tests.sh \
119 tests/tests-common.sh \
120 tests/security_descriptor_1.base64 \
121 tests/security_descriptor_1.bin \
122 tests/security_descriptor_2.base64 \
123 tests/security_descriptor_2.bin
125 pkgconfigdir = @pkgconfigdir@
126 pkgconfig_DATA = wimlib.pc
128 $(pkgconfig_DATA): config.status
132 doc/imagex-append.1 \
134 doc/imagex-capture.1 \
135 doc/imagex-delete.1 \
137 doc/imagex-export.1 \
141 doc/imagex-mountrw.1 \
142 doc/imagex-optimize.1 \
144 doc/imagex-unmount.1 \
147 $(man1_MANS): config.status
149 check_PROGRAMS = tests/tree-cmp
150 tests_tree_cmp_SOURCES = tests/tree-cmp.c
152 dist_check_SCRIPTS = tests/test-imagex \
153 tests/test-imagex-capture_and_apply
156 dist_check_SCRIPTS += tests/test-imagex-mount
160 dist_check_SCRIPTS += tests/test-imagex-ntfs
166 # TODO: The tests need to be re-written for Windows builds. One issue (that
167 # applies to both test-imagex and test-imagex-capture_and_apply) is that
168 # Cygwin's 'ln -s' will create some sort of regular file with special contents
169 # rather than a reparse point.
170 TESTS = $(dist_check_SCRIPTS)