]> wimlib.net Git - wimlib/blob - Makefile.am
Use pthread condition variables instead of semaphores
[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/tests-common.sh                   \
108         tests/security_descriptor_1.base64      \
109         tests/security_descriptor_1.bin         \
110         tests/security_descriptor_2.base64      \
111         tests/security_descriptor_2.bin
112
113 pkgconfigdir    = @pkgconfigdir@
114 pkgconfig_DATA  = wimlib.pc
115
116 $(pkgconfig_DATA): config.status
117
118 man1_MANS =                     \
119         doc/imagex.1            \
120         doc/imagex-append.1     \
121         doc/imagex-apply.1      \
122         doc/imagex-capture.1    \
123         doc/imagex-delete.1     \
124         doc/imagex-dir.1        \
125         doc/imagex-export.1     \
126         doc/imagex-info.1       \
127         doc/imagex-join.1       \
128         doc/imagex-mount.1      \
129         doc/imagex-mountrw.1    \
130         doc/imagex-optimize.1   \
131         doc/imagex-split.1      \
132         doc/imagex-unmount.1    \
133         doc/mkwinpeimg.1
134
135 $(man1_MANS): config.status
136
137 check_PROGRAMS = tests/tree-cmp
138 tests_tree_cmp_SOURCES = tests/tree-cmp.c
139
140 dist_check_SCRIPTS = tests/test-imagex \
141                      tests/test-imagex-capture_and_apply
142
143 if WITH_FUSE
144 dist_check_SCRIPTS += tests/test-imagex-mount
145 endif
146
147 if WITH_NTFS_3G
148 dist_check_SCRIPTS += tests/test-imagex-ntfs
149 endif
150
151 TESTS = $(dist_check_SCRIPTS)
152