]> wimlib.net Git - wimlib/blobdiff - Makefile.am
Makefile.am: Fix EXTRA_DIST
[wimlib] / Makefile.am
index 45a85af82597b50324234a3618e21ecc16d1c9b5..15b6eacccee5677830fe4d0ec2c43cd42ff67404 100644 (file)
@@ -15,7 +15,7 @@ endif
 
 lib_LTLIBRARIES = libwim.la
 
-libwim_la_LDFLAGS = -version-info 7:0:0 $(WINDOWS_LDFLAGS)
+libwim_la_LDFLAGS = -version-info 11:0:2 $(WINDOWS_LDFLAGS)
 
 libwim_la_SOURCES =            \
        src/add_image.c         \
@@ -34,6 +34,11 @@ libwim_la_SOURCES =          \
        src/join.c              \
        src/lookup_table.c      \
        src/lz77.c              \
+       src/divsufsort/divsufsort.c             \
+       src/divsufsort/divsufsort.h             \
+       src/divsufsort/divsufsort_private.h     \
+       src/divsufsort/sssort.c \
+       src/divsufsort/trsort.c \
        src/lzx-common.c        \
        src/lzx-compress.c      \
        src/lzx-decompress.c    \
@@ -45,7 +50,6 @@ libwim_la_SOURCES =           \
        src/security.c          \
        src/sha1.c              \
        src/split.c             \
-       src/swm.c               \
        src/reparse.c           \
        src/timestamp.c         \
        src/update_image.c      \
@@ -68,6 +72,7 @@ libwim_la_SOURCES =           \
        include/wimlib/endianness.h     \
        include/wimlib/error.h          \
        include/wimlib/file_io.h        \
+       include/wimlib/glob.h           \
        include/wimlib/header.h         \
        include/wimlib/integrity.h      \
        include/wimlib/list.h           \
@@ -79,8 +84,8 @@ libwim_la_SOURCES =           \
        include/wimlib/reparse.h        \
        include/wimlib/resource.h       \
        include/wimlib/security.h       \
+       include/wimlib/security_descriptor.h    \
        include/wimlib/sha1.h           \
-       include/wimlib/swm.h            \
        include/wimlib/timestamp.h      \
        include/wimlib/types.h          \
        include/wimlib/util.h           \
@@ -120,11 +125,12 @@ sha1-ssse3.lo:src/sha1-ssse3.asm
        $<
 
 libwim_la_LIBADD =             \
-       $(LIBXML2_LDADD)        \
-       $(LIBFUSE_LDADD)        \
-       $(LIBNTFS_3G_LDADD)     \
+       $(LIBXML2_LIBS)         \
+       $(LIBFUSE_LIBS)         \
+       $(LIBRT_LIBS)           \
+       $(LIBNTFS_3G_LIBS)      \
        $(LTLIBICONV)           \
-       $(LIBCRYPTO_LDADD)      \
+       $(LIBCRYPTO_LIBS)       \
        $(SSSE3_SHA1_OBJ)       \
        $(PTHREAD_LDADD)        \
        $(WINDOWS_LDADD)
@@ -143,7 +149,7 @@ imagex_SOURCES   = programs/imagex.c        \
                   include/wimlib.h     \
                   include/wimlib_tchar.h
 imagex_LDADD    = $(top_builddir)/libwim.la
-imagex_CFLAGS    = $(AM_CFLAGS) $(WINDOWS_CFLAGS)
+imagex_CFLAGS    = $(AM_CFLAGS) $(WINDOWS_CFLAGS) -Wno-deprecated-declarations
 
 if WINDOWS_NATIVE_BUILD
 imagex_SOURCES += programs/imagex-win32.c      \
@@ -152,15 +158,49 @@ imagex_SOURCES += programs/imagex-win32.c \
                  programs/wgetopt.h
 endif
 
+imagex_cmds =  append  \
+               apply   \
+               capture \
+               delete  \
+               dir     \
+               export  \
+               extract \
+               info    \
+               join    \
+               mount   \
+               mountrw \
+               optimize\
+               split   \
+               unmount \
+               update
+
 install-exec-hook:
-       if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
+       if [ "@IMAGEX_PROGNAME@" != imagex ]; then                          \
                cd $(DESTDIR)$(bindir) && mv -f imagex "@IMAGEX_PROGNAME@"; \
        fi
+       for cmd in $(imagex_cmds); do                           \
+               cd $(DESTDIR)$(bindir) &&                       \
+                       ln -f "@IMAGEX_PROGNAME@" wim$${cmd};   \
+       done
+
+install-data-hook:
+       for cmd in $(imagex_cmds); do                                       \
+               cd $(DESTDIR)$(mandir)/man1 &&                              \
+                       ln -sf "@IMAGEX_PROGNAME@-$${cmd}.1" wim$${cmd}.1;  \
+       done
 
 uninstall-hook:
-       if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
-               cd $(DESTDIR)$(bindir) && rm -f "@IMAGEX_PROGNAME@"; \
+       if [ "@IMAGEX_PROGNAME@" != imagex ]; then              \
+               rm -f $(DESTDIR)$(bindir)/"@IMAGEX_PROGNAME@";  \
+               rm -f $(DESTDIR)$(bindir)/imagex;               \
        fi
+       for cmd in $(imagex_cmds); do                           \
+               rm -f $(DESTDIR)$(bindir)/wim$${cmd};           \
+       done
+       for cmd in $(imagex_cmds); do                           \
+               rm -f $(DESTDIR)$(mandir)/man1/wim$${cmd}.1;    \
+       done
+
 
 dist_bin_SCRIPTS = programs/mkwinpeimg
 
@@ -173,8 +213,6 @@ EXTRA_DIST =                                        \
        rpm                                     \
        examples                                \
        README.WINDOWS                          \
-       programs/install.cmd                    \
-       programs/wimapply.c                     \
        tests/common_tests.sh                   \
        tests/tests-common.sh                   \
        tests/security_descriptor_1.base64      \