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