## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ## * This file is part of SableVM. * ## * See the file "LICENSE" for Copyright information and the * ## * terms and conditions for copying, distribution and * ## * modification of SableVM. * ## * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * SUBDIRS = include inlinability lib_LTLIBRARIES = libsablevm.la ## We want to build libsablevm as a single library, while ## using many source files, for readability. To do this, ## we have a single libsablevm.c source file which does ## includes the other files. We list all the .c and .h ## files as "noinst_HEADERS" so that automake does not try ## to compile each .c file individually. libsablevm_la_SOURCES = \ libsablevm.c ## We use m4 to generate some files and save ourselves ## a lot of boring typing. It's more fun to write ## m4 macros;-) BUILT_SOURCES = \ bootstrap.c \ cast.c \ cl_alloc.c \ cl_alloc.h \ class_file_parser.c \ error_bits.h \ error_classes.h \ error_init_methods.h \ error_instances.h \ error_throwing.c \ global_alloc.c \ global_alloc.h \ instructions_preparation_direct_threaded.c \ instructions_preparation_inlined_threaded.c \ instructions_preparation_switch_threaded.c \ instructions_switch.c \ method_invoke.c \ method_invoke.h \ native_interface.c \ splay_tree.c \ util.c \ vm_args.c noinst_HEADERS = \ bootstrap.c \ cast.c \ cl_alloc.c \ cl_alloc.h \ class_file_parser.c \ error_bits.h \ error_classes.h \ error_init_methods.h \ error_instances.h \ error_throwing.c \ global_alloc.c \ global_alloc.h \ instructions_preparation_direct_threaded.c \ instructions_preparation_inlined_threaded.c \ instructions_preparation_switch_threaded.c \ instructions_switch.c \ method_invoke.c \ method_invoke.h \ native_interface.c \ splay_tree.c \ util.c \ vm_args.c \ \ class_file_parser.h \ class_loader.c \ class_loader.h \ class_loader_memory_manager.c \ class_loader_memory_manager.h \ constants.h \ error.c \ fatal.c \ fatal.h \ gc_copying.c \ gc_none.c \ global_refs.c \ global_refs.h \ initialization.c \ interpreter.c \ interpreter.h \ invoke_interface.c \ invoke_interface.h \ java_io_VMObjectStreamClass.c \ java_io_VMObjectStreamClass.h \ java_lang_Object.c \ java_lang_Object.h \ java_lang_ProcessImpl.c \ java_lang_ProcessImpl.h \ java_lang_VMRuntime.c \ java_lang_VMRuntime.h \ java_lang_SecurityManager.c \ java_lang_SecurityManager.h \ java_lang_Throwable.c \ java_lang_Throwable.h \ java_lang_VMClass.c \ java_lang_VMClass.h \ java_lang_VMClassLoader.c \ java_lang_VMClassLoader.h \ java_lang_VMObject.c \ java_lang_VMObject.h \ java_lang_VMSecurityManager.c \ java_lang_VMSecurityManager.h \ java_lang_VMSystem.c \ java_lang_VMSystem.h \ java_lang_VMThread.c \ java_lang_VMThread.h \ java_lang_VirtualMachine.c \ java_lang_VirtualMachine.h \ java_lang_reflect_Array.c \ java_lang_reflect_Array.h \ java_lang_reflect_Constructor.c \ java_lang_reflect_Constructor.h \ java_lang_reflect_Field.c \ java_lang_reflect_Field.h \ java_lang_reflect_Method.c \ java_lang_reflect_Method.h \ jnidefs.h \ lib_init.c \ link.c \ link.h \ local_refs.c \ local_refs.h \ native.c \ new_instance.c \ new_instance.h \ prepare.c \ prepare.h \ prepare_code.c \ prepare_code.h \ resolve.c \ system.c \ system.h \ system_next.c \ thread.c \ thread.h \ types.h \ util.h \ util1.c \ util2.c \ verifier.c \ \ cast.list \ cl_alloc.list \ error.list \ global_alloc.list \ method_invoke.list \ splay_tree.list \ two_modes.list \ \ direct_threaded.m4 \ inlined_threaded.m4 \ macros.m4 \ switch_threaded.m4 \ \ bootstrap.m4.c \ cast.m4.c \ cl_alloc.m4.c \ cl_alloc.m4.h \ class_file_parser.m4.c \ error_bits.m4.h \ error_classes.m4.h \ error_init_methods.m4.h \ error_instances.m4.h \ error_throwing.m4.c \ global_alloc.m4.c \ global_alloc.m4.h \ instructions.m4.c \ instructions_preparation.m4.c \ instructions_switch.m4.c \ method_invoke.m4.c \ method_invoke.m4.h \ native_interface.m4.c \ splay_tree.m4.c \ util.m4.c \ vm_args.m4.c class_file_parser.c: macros.m4 class_file_parser.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ bootstrap.c: macros.m4 bootstrap.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ cl_alloc.c: macros.m4 cl_alloc.m4.c cl_alloc.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ cl_alloc.h: macros.m4 cl_alloc.m4.h cl_alloc.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ cast.c: macros.m4 cast.m4.c cast.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ error_bits.h: macros.m4 error_bits.m4.h error.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ error_classes.h: macros.m4 error_classes.m4.h error.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ error_init_methods.h: macros.m4 error_init_methods.m4.h error.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ error_instances.h: macros.m4 error_instances.m4.h error.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ error_throwing.c: macros.m4 error_throwing.m4.c error.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ global_alloc.c: macros.m4 global_alloc.m4.c global_alloc.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ global_alloc.h: macros.m4 global_alloc.m4.h global_alloc.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ instructions_preparation_inlined_threaded.c: macros.m4 inlined_threaded.m4 two_modes.list instructions_preparation.m4.c instructions.m4.c rm -f $@ m4 -P @inlinability_testing@ $^ > $@ chmod a-w $@ instructions_preparation_direct_threaded.c: macros.m4 direct_threaded.m4 two_modes.list instructions_preparation.m4.c instructions.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ instructions_preparation_switch_threaded.c: macros.m4 switch_threaded.m4 two_modes.list instructions_preparation.m4.c instructions.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ instructions_switch.c: macros.m4 two_modes.list instructions_switch.m4.c instructions.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ method_invoke.c: macros.m4 method_invoke.m4.c method_invoke.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ method_invoke.h: macros.m4 method_invoke.m4.h method_invoke.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ native_interface.c: macros.m4 native_interface.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ splay_tree.c: macros.m4 splay_tree.m4.c splay_tree.list rm -f $@ m4 -P $^ > $@ chmod a-w $@ util.c: macros.m4 util.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ vm_args.c: macros.m4 vm_args.m4.c rm -f $@ m4 -P $^ > $@ chmod a-w $@ clean-local: rm -f bootstrap.c rm -f cast.c rm -f cl_alloc.c rm -f cl_alloc.h rm -f class_file_parser.c rm -f error_bits.h rm -f error_classes.h rm -f error_init_methods.h rm -f error_instances.h rm -f error_throwing.c rm -f global_alloc.c rm -f global_alloc.h rm -f instructions_preparation_direct_threaded.c rm -f instructions_preparation_inlined_threaded.c rm -f instructions_preparation_switch_threaded.c rm -f instructions_switch.c rm -f method_invoke.c rm -f method_invoke.h rm -f native_interface.c rm -f splay_tree.c rm -f util.c rm -f vm_args.c libsablevm_la_LIBADD = -lpthread -lm -lffi -lltdl -lrt libsablevm_la_LDFLAGS = -module -release @LIBRELEASE@ INCLUDES = \ -I$(srcdir)/include -I$(srcdir)/inlinability \ -DBOOT_CLASS_PATH=\"$(pkgdatadir)/sablevm-classpath\" \ -DBOOT_LIBRARY_PATH=\"$(pkglibdir)/sablevm-classpath\"