2007-05-30 Chris Toshok <toshok@ximian.com>
[mono.git] / support / Makefile.am
index 5bef8c8ddd8ed289e5ed516bba4165e45971605e..96cc2002e28dbf9eaec102311a276fddaf5e7b87 100644 (file)
@@ -56,12 +56,36 @@ MPH_SOURCE = $(MPH_C_SOURCE) $(MPH_UNIX_SOURCE)
 MPH_LIBS   = $(GLIB_LIBS)
 endif
 
+ZLIB_SOURCES = \
+       adler32.c       \
+       compress.c      \
+       crc32.c         \
+       gzio.c          \
+       uncompr.c       \
+       deflate.c       \
+       trees.c         \
+       zutil.c         \
+       inflate.c       \
+       infback.c       \
+       inftrees.c      \
+       inffast.c       \
+       crc32.h         \
+       deflate.h       \
+       inffast.h       \
+       inffixed.h      \
+       inflate.h       \
+       inftrees.h      \
+       trees.h         \
+       zconf.h         \
+       zlib.h          \
+       zutil.h
+
 if HAVE_ZLIB
-Z_SOURCE = zlib_macros.c
-Z_LIBS   = -lz
+Z_SOURCE = zlib_macros.c 
+Z_LIBS= -lz
 else
-Z_SOURCE = 
-Z_LIBS   = 
+Z_SOURCE = zlib_macros.c $(ZLIB_SOURCES)
+Z_LIBS=
 endif
 
 libMonoPosixHelper_la_SOURCES =                        \
@@ -85,13 +109,11 @@ libMonoSupportW_la_SOURCES =                       \
 libMonoSupportW_la_LIBADD =                    \
                $(GLIB_LIBS)
 
-update-create-native-map:
-       cp `pkg-config --variable=Programs create-native-map` .
-
 # 
 # Use this target to refresh the values in map.[ch]
 #
 refresh:
+       cp `pkg-config --variable=Programs create-native-map` . && \
        $(top_builddir)/runtime/mono-wrapper create-native-map.exe \
        --autoconf-member=d_off                               \
        --autoconf-member=d_reclen                            \