Symbolic links (IN PROGRESS)
[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/symlink.c           \
39         src/timestamp.h         \
40         src/util.c              \
41         src/util.h              \
42         src/wim.c               \
43         src/wimlib.h            \
44         src/wimlib_internal.h   \
45         src/write.c             \
46         src/xml.c               \
47         src/xml.h               \
48         src/xpress-comp.c       \
49         src/xpress-decomp.c     \
50         src/xpress.h
51
52 EXTRA_libwim_la_SOURCES = src/sha1-ssse3.asm
53 libwim_la_DEPENDENCIES = $(SSSE3_SHA1_OBJ)
54 STRIP_FPIC = sh $(top_srcdir)/build-aux/strip_fPIC.sh
55
56 sha1-ssse3.lo:src/sha1-ssse3.asm
57         $(LIBTOOL) --mode=compile --tag=CC $(STRIP_FPIC) $(NASM) -f elf64 \
58         -DINTEL_SHA1_UPDATE_DEFAULT_DISPATCH=ssse3_not_found \
59         $<
60
61 libwim_la_LIBADD =              \
62         $(LIBXML2_LDADD)        \
63         $(LIBFUSE_LDADD)        \
64         $(LIBNTFS_3G_LDADD)     \
65         $(LTLIBICONV)           \
66         $(LIBCRYPTO_LDADD)      \
67         $(SSSE3_SHA1_OBJ)
68
69 libwim_la_CFLAGS =              \
70         $(AM_CFLAGS)            \
71         -fvisibility=hidden     \
72         $(LIBXML2_CFLAGS)       \
73         $(LIBFUSE_CFLAGS)       \
74         $(LIBNTFS_3G_CFLAGS)    \
75         $(LIBCRYPTO_CFLAGS)
76
77
78 bin_PROGRAMS     = imagex
79 imagex_SOURCES   = programs/imagex.c
80 imagex_LDADD     = $(top_builddir)/libwim.la
81
82 dist_bin_SCRIPTS = programs/mkwinpeimg
83
84 include_HEADERS = src/wimlib.h
85
86 EXTRA_DIST =                    \
87         COPYING.LIB             \
88         build-aux/strip_fPIC.sh \
89         debian                  \
90         programs/install.cmd    \
91         tests/dir               \
92         tests/dir2
93
94 pkgconfigdir    = @pkgconfigdir@
95 pkgconfig_DATA  = wimlib.pc
96
97 $(pkgconfig_DATA): config.status
98
99 man1_MANS =                     \
100         doc/imagex.1            \
101         doc/imagex-append.1     \
102         doc/imagex-apply.1      \
103         doc/imagex-capture.1    \
104         doc/imagex-delete.1     \
105         doc/imagex-dir.1        \
106         doc/imagex-export.1     \
107         doc/imagex-info.1       \
108         doc/imagex-join.1       \
109         doc/imagex-mount.1      \
110         doc/imagex-mountrw.1    \
111         doc/imagex-split.1      \
112         doc/imagex-unmount.1    \
113         doc/mkwinpeimg.1
114
115 $(man1_MANS): config.status
116
117 dist_check_SCRIPTS = tests/test-imagex
118 TESTS = $(dist_check_SCRIPTS)
119