Update NEWS
[wimlib] / Makefile.am
1 ACLOCAL_AMFLAGS = -I m4
2
3 AM_CPPFLAGS     = -I$(top_srcdir)/src
4
5 AM_CFLAGS       = -std=gnu99 -D_LARGEFILE_SOURCE \
6                    -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
7
8 lib_LTLIBRARIES = libwim.la
9
10 libwim_la_LDFLAGS = -version-info 1:0:0
11
12 libwim_la_SOURCES =             \
13         src/comp.c              \
14         src/comp.h              \
15         src/decomp.c            \
16         src/decomp.h            \
17         src/dentry.c            \
18         src/dentry.h            \
19         src/endianness.h        \
20         src/extract.c           \
21         src/hardlink.c          \
22         src/header.c            \
23         src/integrity.c         \
24         src/io.h                \
25         src/join.c              \
26         src/list.h              \
27         src/lookup_table.c      \
28         src/lookup_table.h      \
29         src/lz.c                \
30         src/lzx-common.c        \
31         src/lzx-comp.c          \
32         src/lzx-decomp.c        \
33         src/lzx.h               \
34         src/modify.c            \
35         src/mount.c             \
36         src/resource.c          \
37         src/rbtree.c            \
38         src/rbtree.h            \
39         src/rbtree_augmented.h  \
40         src/security.c          \
41         src/security.h          \
42         src/sha1.c              \
43         src/sha1.h              \
44         src/split.c             \
45         src/symlink.c           \
46         src/timestamp.h         \
47         src/util.c              \
48         src/util.h              \
49         src/wim.c               \
50         src/wimlib.h            \
51         src/wimlib_internal.h   \
52         src/write.c             \
53         src/xml.c               \
54         src/xml.h               \
55         src/xpress-comp.c       \
56         src/xpress-decomp.c     \
57         src/xpress.h
58
59 if WITH_NTFS_3G
60 libwim_la_SOURCES += src/ntfs-apply.c   \
61                      src/ntfs-capture.c
62 endif
63
64
65 EXTRA_libwim_la_SOURCES = src/sha1-ssse3.asm
66 libwim_la_DEPENDENCIES = $(SSSE3_SHA1_OBJ)
67 STRIP_FPIC = sh $(top_srcdir)/build-aux/strip_fPIC.sh
68
69 sha1-ssse3.lo:src/sha1-ssse3.asm
70         $(LIBTOOL) --mode=compile --tag=CC $(STRIP_FPIC) $(NASM) -f elf64 \
71         -DINTEL_SHA1_UPDATE_DEFAULT_DISPATCH=ssse3_not_found \
72         $<
73
74 libwim_la_LIBADD =              \
75         $(LIBXML2_LDADD)        \
76         $(LIBFUSE_LDADD)        \
77         $(LIBNTFS_3G_LDADD)     \
78         $(LTLIBICONV)           \
79         $(LIBCRYPTO_LDADD)      \
80         $(SSSE3_SHA1_OBJ)       \
81         $(PTHREAD_LDADD)
82
83 libwim_la_CFLAGS =              \
84         $(AM_CFLAGS)            \
85         -fvisibility=hidden     \
86         $(LIBXML2_CFLAGS)       \
87         $(LIBFUSE_CFLAGS)       \
88         $(LIBNTFS_3G_CFLAGS)    \
89         $(LIBCRYPTO_CFLAGS)
90
91
92 bin_PROGRAMS     = imagex
93 imagex_SOURCES   = programs/imagex.c
94 imagex_LDADD     = $(top_builddir)/libwim.la
95
96 dist_bin_SCRIPTS = programs/mkwinpeimg
97
98 include_HEADERS = src/wimlib.h
99
100 EXTRA_DIST =                                    \
101         build-aux/strip_fPIC.sh                 \
102         archlinux                               \
103         debian                                  \
104         rpm                                     \
105         programs/install.cmd                    \
106         tests/common_tests.sh                   \
107         tests/security_descriptor_1.base64      \
108         tests/security_descriptor_1.bin         \
109         tests/security_descriptor_2.base64      \
110         tests/security_descriptor_2.bin
111
112 pkgconfigdir    = @pkgconfigdir@
113 pkgconfig_DATA  = wimlib.pc
114
115 $(pkgconfig_DATA): config.status
116
117 man1_MANS =                     \
118         doc/imagex.1            \
119         doc/imagex-append.1     \
120         doc/imagex-apply.1      \
121         doc/imagex-capture.1    \
122         doc/imagex-delete.1     \
123         doc/imagex-dir.1        \
124         doc/imagex-export.1     \
125         doc/imagex-info.1       \
126         doc/imagex-join.1       \
127         doc/imagex-mount.1      \
128         doc/imagex-mountrw.1    \
129         doc/imagex-optimize.1   \
130         doc/imagex-split.1      \
131         doc/imagex-unmount.1    \
132         doc/mkwinpeimg.1
133
134 $(man1_MANS): config.status
135
136 check_PROGRAMS = tests/tree-cmp
137 tests_tree_cmp_SOURCES = tests/tree-cmp.c
138
139 dist_check_SCRIPTS = tests/test-imagex \
140                      tests/test-imagex-capture_and_apply
141
142 if WITH_FUSE
143 dist_check_SCRIPTS += tests/test-imagex-mount
144 endif
145
146 if WITH_NTFS_3G
147 dist_check_SCRIPTS += tests/test-imagex-ntfs
148 endif
149
150 TESTS = $(dist_check_SCRIPTS)
151