2003-11-16 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mono / metadata / Makefile.am
index 3d1c669f8dafe3b990da8932048bd9b0d33f1c35..b4ed2d983ba5084ce47034ab5d5bc2977738016b 100644 (file)
@@ -1,5 +1,8 @@
 if PLATFORM_WIN32
 export HOST_CC
+# Use -m here. This will use / as directory separator (C:/WINNT).
+# The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
+# / by \ if running under WIN32.
 assembliesdir = `cygpath -m "${libdir}"`
 confdir = `cygpath -m "${sysconfdir}"`
 # The mingw math.h has "extern inline" functions that dont appear in libs, so
@@ -15,9 +18,17 @@ bin_PROGRAMS = monosn pedump
 noinst_LTLIBRARIES = libmetadata.la libmonoruntime.la
 
 
-INCLUDES = $(GLIB_CFLAGS) $(GMODULE_CFLAGS) -I$(top_srcdir)    -I$(top_srcdir)/mono \
+INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS) $(GMODULE_CFLAGS) $(ICU_CFLAGS) \
        -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\"
 
+if WITH_BUNDLE
+bundle_srcs = mono-bundle.s mono-bundle.h
+mono-bundle.s mono-bundle.h: $(BUNDLE_FILE) $(srcdir)/make-bundle.pl
+       perl $(srcdir)/make-bundle.pl $(BUNDLE_FILE) mono-bundle.h mono-bundle.s
+else
+bundle_srcs =
+endif
+
 libmonoruntime_la_SOURCES = \
        reflection.c    \
        object.c        \
@@ -43,6 +54,10 @@ libmonoruntime_la_SOURCES = \
        appdomain.c     \
        debug-mono-symfile.h    \
        debug-mono-symfile.c    \
+       mono-debug.h            \
+       mono-debug.c            \
+       mono-debug-debugger.h   \
+       mono-debug-debugger.c   \
        profiler.c      \
        profiler-private.h      \
        rand.h          \
@@ -54,7 +69,9 @@ libmonoruntime_la_SOURCES = \
        process.c       \
        process.h       \
        environment.c   \
-       environment.h
+       environment.h   \
+       locales.c       \
+       locales.h
 
 libmetadata_la_SOURCES = \
        assembly.c      \
@@ -71,6 +88,7 @@ libmetadata_la_SOURCES = \
        loader.c        \
        class.c         \
        mempool.c       \
+       $(bundle_srcs)  \
        debug-helpers.c
 
 libmetadataincludedir = $(includedir)/mono/metadata
@@ -78,12 +96,15 @@ libmonoruntimeincludedir = $(includedir)/mono/metadata
 
 libmonoruntimeinclude_HEADERS = \
        appdomain.h     \
+       mono-debug.h    \
+       mono-debug-debugger.h   \
        debug-mono-symfile.h    \
        threadpool.h    \
        threads-types.h \
        threads.h       \
        environment.h   \
-       monitor.h
+       monitor.h       \
+       locales.h
 
 libmetadatainclude_HEADERS = \
        assembly.h      \
@@ -112,14 +133,20 @@ libmetadatainclude_HEADERS = \
 pedump_SOURCES =               \
        pedump.c
 
-pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la $(GLIB_LIBS) $(GMODULE_LIBS) -lm
+pedump_LDADD = libmetadata.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
+       $(LIBGC_LIBS) $(GLIB_LIBS) $(GMODULE_LIBS) -lm
 
 
 monosn_LDADD = \
        ../metadata/libmetadata.la      \
        ../io-layer/libwapi.la          \
        ../utils/libmonoutils.la        \
+       $(LIBGC_LIBS)                   \
        $(GLIB_LIBS)                    \
        $(GMODULE_LIBS)                 \
        -lm
 
+BUILT_SOURCES = $(bundle_srcs)
+
+EXTRA_DIST = make-bundle.pl sample-bundle
+