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