Patch by D. Moonfire that fixes several issues with 2.0 page attributes.
[mono.git] / libgc / Makefile.am
index 3df9aee1bf09faefbc62dccf63bea723059c79c9..4ce5dc7b693efae31e09c341bc631978b8af4a13 100644 (file)
@@ -22,7 +22,14 @@ AUTOMAKE_OPTIONS = foreign
 
 SUBDIRS = include doc
 
-noinst_LTLIBRARIES = libmonogc.la
+INCLUDES = -I$(top_builddir)/.. -I$(top_srcdir)/..
+
+#
+# libtool is not capable of creating shared/static versions of a convenience
+# library, so we have to do it ourselves
+#
+
+noinst_LTLIBRARIES = libmonogc.la libmonogc-static.la
 
 EXTRA_DIST = 
     ## more items will be succesively added below
@@ -54,6 +61,10 @@ EXTRA_libmonogc_la_SOURCES = alpha_mach_dep.S \
     rs6000_mach_dep.s sparc_mach_dep.S sparc_netbsd_mach_dep.s \
     sparc_sunos4_mach_dep.s ia64_save_regs_in_stack.s
 
+libmonogc_static_la_SOURCES = $(libmonogc_la_SOURCES)
+libmonogc_static_la_LIBADD = $(libmonogc_la_LIBADD)
+libmonogc_static_la_LDFLAGS = -static
+
 EXTRA_DIST += alpha_mach_dep.S mips_sgi_mach_dep.s sparc_mach_dep.S
 
 AM_CFLAGS = @GC_CFLAGS@