dc20f727db7755bcca1ef03848dcf3f3f551452c
[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_SOURCES =             \
11         src/comp.c              \
12         src/comp.h              \
13         src/decomp.c            \
14         src/decomp.h            \
15         src/dentry.c            \
16         src/dentry.h            \
17         src/endianness.h        \
18         src/extract.c           \
19         src/header.c            \
20         src/integrity.c         \
21         src/io.h                \
22         src/join.c              \
23         src/lookup_table.c      \
24         src/lookup_table.h      \
25         src/lz.c                \
26         src/lzx-common.c        \
27         src/lzx-comp.c          \
28         src/lzx-decomp.c        \
29         src/lzx.h               \
30         src/modify.c            \
31         src/mount.c             \
32         src/resource.c          \
33         src/security.c          \
34         src/security.h          \
35         src/sha1.c              \
36         src/sha1.h              \
37         src/split.c             \
38         src/timestamp.h         \
39         src/util.c              \
40         src/util.h              \
41         src/wim.c               \
42         src/wimlib.h            \
43         src/wimlib_internal.h   \
44         src/write.c             \
45         src/xml.c               \
46         src/xml.h               \
47         src/xpress-comp.c       \
48         src/xpress-decomp.c     \
49         src/xpress.h
50
51 EXTRA_libwim_la_SOURCES = src/sha1-ssse3.asm
52 EXTRA_libwim_la_DEPENDENCIES = $(SSSE3_SHA1_OBJ)
53 STRIP_FPIC = sh $(top_srcdir)/build-aux/strip_fPIC.sh
54
55 sha1-ssse3.lo:src/sha1-ssse3.asm
56         $(LIBTOOL) --mode=compile --tag=CC $(STRIP_FPIC) $(NASM) -f elf64 \
57         -DINTEL_SHA1_UPDATE_DEFAULT_DISPATCH=ssse3_not_found \
58         $<
59
60 libwim_la_LIBADD =              \
61         $(LIBXML2_LDADD)        \
62         $(LIBFUSE_LDADD)        \
63         $(LTLIBICONV)           \
64         $(LIBCRYPTO_LDADD)      \
65         $(SSSE3_SHA1_OBJ)
66
67 libwim_la_CFLAGS =              \
68         $(AM_CFLAGS)            \
69         -fvisibility=hidden     \
70         $(LIBXML2_CFLAGS)       \
71         $(LIBFUSE_CFLAGS)       \
72         $(LIBCRYPTO_CFLAGS)
73
74
75 bin_PROGRAMS     = imagex
76 imagex_SOURCES   = programs/imagex.c
77 imagex_LDADD     = $(top_builddir)/libwim.la
78
79 dist_bin_SCRIPTS = programs/mkwinpeimg
80
81 include_HEADERS = src/wimlib.h
82
83 EXTRA_DIST =                    \
84         COPYING.LIB             \
85         build-aux/strip_fPIC.sh \
86         debian                  \
87         programs/install.cmd
88
89 pkgconfigdir    = @pkgconfigdir@
90 pkgconfig_DATA  = wimlib.pc
91
92 $(pkgconfig_DATA): config.status
93
94 man1_MANS =                     \
95         doc/imagex.1            \
96         doc/imagex-append.1     \
97         doc/imagex-apply.1      \
98         doc/imagex-capture.1    \
99         doc/imagex-delete.1     \
100         doc/imagex-dir.1        \
101         doc/imagex-export.1     \
102         doc/imagex-info.1       \
103         doc/imagex-join.1       \
104         doc/imagex-mount.1      \
105         doc/imagex-mountrw.1    \
106         doc/imagex-split.1      \
107         doc/imagex-unmount.1    \
108         doc/mkwinpeimg.1
109
110 $(man1_MANS): config.status