2002-07-24 Tim Coleman <tim@timcoleman.com>
[mono.git] / mono / jit / Makefile.am
index f41205a2299aefdfa6d8851cefffc3d9119ecdd0..65b30666cf23ae7dd16ddda497c8b37c6f74a0da 100644 (file)
@@ -1,29 +1,54 @@
 INCLUDES =                             \
        -I$(top_srcdir)                 \
        $(GMODULE_CFLAGS)               \
-       $(GLIB_CFLAGS)                  
+       $(GLIB_CFLAGS)
 
+if X86
 bin_PROGRAMS = mono
+lib_LTLIBRARIES = libmono.la
 
-mono_SOURCES =                 \
+libmono_la_LIBADD =    \
+       ../metadata/libmonoruntime.la
+
+endif
+
+libmono_la_SOURCES =           \
+       win32-exception.c       \
+       win32-exception.h       \
        codegen.h               \
        codegen-x86.c           \
        emit-x86.c              \
-       jit.h                   \
-       regset.h                \
        regset.c                \
-       mempool.h               \
-       mempool.c               \
-       jit.c
+       debug-private.h         \
+       debug.c                 \
+       debug-stabs.c           \
+       debug-dwarf2.c          \
+       debug-dwarf2-plus.c     \
+       jit.c                   \
+       trampoline.c            \
+       exception.c             \
+       message.c               \
+       linear-scan.c           \
+       helpers.h               \
+       helpers.c
+
+libmonoincludedir = $(includedir)/mono/jit
+libmonoinclude_HEADERS = \
+       jit.h                   \
+       debug.h                 \
+       regset.h
+
+mono_SOURCES = mono.c
 
+#mono_LDFLAGS=-static
 mono_LDADD =                           \
-       ../metadata/libmetadata.a       \
+       libmono.la                      \
        $(GLIB_LIBS)                    \
        $(GMODULE_LIBS)                 \
        -lm
 
 codegen-x86.c codegen.h: x86.brg
-       ../monoburg/monoburg x86.brg -d codegen.h > codegen-x86.c
+       ../monoburg/monoburg $(srcdir)/x86.brg -d codegen.h -s codegen-x86.c
 
 BUILT_SOURCES = codegen-x86.c codegen.h