]> wimlib.net Git - wimlib/blobdiff - Makefile.am
Makefile.am: Do not warn about deprecated functions called by imagex (for now)
[wimlib] / Makefile.am
index d0d9f38ac6f0e7b2ae41946e57d608495cd6e4b6..22e81ff0516aa4b1e46ccb373d8744ec61cd7a9a 100644 (file)
@@ -2,12 +2,20 @@ ACLOCAL_AMFLAGS = -I m4
 
 AM_CPPFLAGS    = -I$(top_srcdir)/include $(WINDOWS_CPPFLAGS) \
                  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-AM_CFLAGS      = -std=gnu99 -fno-strict-aliasing \
-                 -Wmissing-prototypes -Wstrict-prototypes
+
+AM_CFLAGS      = -std=gnu99 -Wmissing-prototypes -Wstrict-prototypes   \
+                 -Werror-implicit-function-declaration                 \
+                 -fno-common -Wundef -Wno-pointer-sign
+
+if WINDOWS_NATIVE_BUILD
+# This option is needed to make packed structures work as expected
+# with gcc 4.7+ (mingw) on Windows.
+AM_CFLAGS += -mno-ms-bitfields
+endif
 
 lib_LTLIBRARIES = libwim.la
 
-libwim_la_LDFLAGS = -version-info 7:0:0 $(WINDOWS_LDFLAGS)
+libwim_la_LDFLAGS = -version-info 8:0:1 $(WINDOWS_LDFLAGS)
 
 libwim_la_SOURCES =            \
        src/add_image.c         \
@@ -50,7 +58,6 @@ libwim_la_SOURCES =           \
        src/xpress-decompress.c \
        include/wimlib/apply.h          \
        include/wimlib/assert.h         \
-       include/wimlib/buffer_io.h      \
        include/wimlib/callback.h       \
        include/wimlib/capture.h        \
        include/wimlib/compiler.h       \
@@ -136,7 +143,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      \
@@ -148,11 +155,13 @@ endif
 install-exec-hook:
        if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
                cd $(DESTDIR)$(bindir) && mv -f imagex "@IMAGEX_PROGNAME@"; \
+               cd $(DESTDIR)$(bindir) && ln -s "@IMAGEX_PROGNAME@" imagex; \
        fi
 
 uninstall-hook:
        if [ "@IMAGEX_PROGNAME@" != imagex ]; then \
                cd $(DESTDIR)$(bindir) && rm -f "@IMAGEX_PROGNAME@"; \
+               cd $(DESTDIR)$(bindir) && rm -f imagex; \
        fi
 
 dist_bin_SCRIPTS = programs/mkwinpeimg