Add config.rpath (empty file)
[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/hardlink.c          \
20         src/header.c            \
21         src/integrity.c         \
22         src/io.h                \
23         src/join.c              \
24         src/list.h              \
25         src/lookup_table.c      \
26         src/lookup_table.h      \
27         src/lz.c                \
28         src/lzx-common.c        \
29         src/lzx-comp.c          \
30         src/lzx-decomp.c        \
31         src/lzx.h               \
32         src/modify.c            \
33         src/mount.c             \
34         src/ntfs-apply.c        \
35         src/ntfs-capture.c      \
36         src/resource.c          \
37         src/security.c          \
38         src/security.h          \
39         src/sha1.c              \
40         src/sha1.h              \
41         src/split.c             \
42         src/symlink.c           \
43         src/timestamp.h         \
44         src/util.c              \
45         src/util.h              \
46         src/wim.c               \
47         src/wimlib.h            \
48         src/wimlib_internal.h   \
49         src/write.c             \
50         src/xml.c               \
51         src/xml.h               \
52         src/xpress-comp.c       \
53         src/xpress-decomp.c     \
54         src/xpress.h
55
56 if WITH_NTFS_3G
57 libwim_la_SOURCES += src/ntfs-3g_security.c
58 endif
59
60
61 EXTRA_libwim_la_SOURCES = src/sha1-ssse3.asm
62 libwim_la_DEPENDENCIES = $(SSSE3_SHA1_OBJ)
63 STRIP_FPIC = sh $(top_srcdir)/build-aux/strip_fPIC.sh
64
65 sha1-ssse3.lo:src/sha1-ssse3.asm
66         $(LIBTOOL) --mode=compile --tag=CC $(STRIP_FPIC) $(NASM) -f elf64 \
67         -DINTEL_SHA1_UPDATE_DEFAULT_DISPATCH=ssse3_not_found \
68         $<
69
70 libwim_la_LIBADD =              \
71         $(LIBXML2_LDADD)        \
72         $(LIBFUSE_LDADD)        \
73         $(LIBNTFS_3G_LDADD)     \
74         $(LTLIBICONV)           \
75         $(LIBCRYPTO_LDADD)      \
76         $(SSSE3_SHA1_OBJ)
77
78 libwim_la_CFLAGS =              \
79         $(AM_CFLAGS)            \
80         -fvisibility=hidden     \
81         $(LIBXML2_CFLAGS)       \
82         $(LIBFUSE_CFLAGS)       \
83         $(LIBNTFS_3G_CFLAGS)    \
84         $(LIBCRYPTO_CFLAGS)
85
86
87 bin_PROGRAMS     = imagex
88 imagex_SOURCES   = programs/imagex.c
89 imagex_LDADD     = $(top_builddir)/libwim.la
90
91 dist_bin_SCRIPTS = programs/mkwinpeimg
92
93 include_HEADERS = src/wimlib.h
94
95 EXTRA_DIST =                    \
96         COPYING.LIB             \
97         build-aux/strip_fPIC.sh \
98         debian                  \
99         programs/install.cmd
100
101 pkgconfigdir    = @pkgconfigdir@
102 pkgconfig_DATA  = wimlib.pc
103
104 $(pkgconfig_DATA): config.status
105
106 man1_MANS =                     \
107         doc/imagex.1            \
108         doc/imagex-append.1     \
109         doc/imagex-apply.1      \
110         doc/imagex-capture.1    \
111         doc/imagex-delete.1     \
112         doc/imagex-dir.1        \
113         doc/imagex-export.1     \
114         doc/imagex-info.1       \
115         doc/imagex-join.1       \
116         doc/imagex-mount.1      \
117         doc/imagex-mountrw.1    \
118         doc/imagex-split.1      \
119         doc/imagex-unmount.1    \
120         doc/mkwinpeimg.1
121
122 $(man1_MANS): config.status
123
124 dist_check_SCRIPTS = tests/test-imagex
125 TESTS = $(dist_check_SCRIPTS)
126