1AUTOMAKE_OPTIONS=foreign 2 3moduledir = @moduledir@ 4 5AM_CPPFLAGS = $(CFLAGS) $(OSFLAG) $(GIT_VERSION) -Wall -DMODULEDIR=\"$(moduledir)\" 6AM_CFLAGS = $(CFLAGS) $(OSFLAG) $(GIT_VERSION) -Wall -fno-strict-aliasing 7AM_ASFLAGS = $(OSFLAG) 8AM_CCASFLAGS = $(OSFLAG) 9 10lib_LTLIBRARIES = libpolyml.la 11libpolyml_la_LDFLAGS = -version-info 11:0:0 12 13if NO_UNDEFINED 14# Force all references to be defined to build the DLL. 15libpolyml_la_LDFLAGS += -no-undefined 16endif 17 18# Select the architecture-specific modules 19if ARCHI386 20ARCHSOURCE = x86_dep.cpp x86assembly_gas32.S 21else 22if ARCHINTERPRET 23ARCHSOURCE = interpret.cpp 24AM_CPPFLAGS += -DCODEISNOTEXECUTABLE 25else 26if ARCHINTERPRET64 27ARCHSOURCE = interpret.cpp 28AM_CPPFLAGS += -DCODEISNOTEXECUTABLE 29else 30if ARCHX86_64 31ARCHSOURCE = x86_dep.cpp x86assembly_gas64.S 32else 33if ARCHX8632IN64 34ARCHSOURCE = x86_dep.cpp x86assembly_gas64.S 35else 36endif 37endif 38endif 39endif 40endif 41 42# Select the object-format-specific modules 43if EXPPECOFF 44EXPORTSOURCE = pecoffexport.cpp 45else 46if EXPELF 47EXPORTSOURCE = elfexport.cpp 48else 49if EXPMACHO 50EXPORTSOURCE = machoexport.cpp 51endif 52endif 53endif 54 55if NATIVE_WINDOWS 56OSSOURCE = winstartup.cpp winbasicio.cpp winguiconsole.cpp windows_specific.cpp osmemwin.cpp 57else 58OSSOURCE = basicio.cpp unix_specific.cpp osmemunix.cpp 59endif 60 61noinst_HEADERS = \ 62 arb.h \ 63 basicio.h \ 64 bitmap.h \ 65 check_objects.h \ 66 diagnostics.h \ 67 elfexport.h \ 68 errors.h \ 69 exporter.h \ 70 gc.h \ 71 gctaskfarm.h \ 72 gc_progress.h \ 73 globals.h \ 74 heapsizing.h \ 75 int_opcodes.h \ 76 io_internal.h \ 77 locking.h \ 78 machine_dep.h \ 79 machoexport.h \ 80 memmgr.h \ 81 mpoly.h \ 82 network.h \ 83 noreturn.h \ 84 objsize.h \ 85 osmem.h \ 86 os_specific.h \ 87 pecoffexport.h \ 88 pexport.h \ 89 PolyControl.h \ 90 poly_specific.h \ 91 polyffi.h \ 92 polystring.h \ 93 process_env.h \ 94 processes.h \ 95 profiling.h \ 96 realconv.h \ 97 reals.h \ 98 rts_module.h \ 99 rtsentry.h \ 100 run_time.h \ 101 savestate.h \ 102 save_vec.h \ 103 scanaddrs.h \ 104 sharedata.h \ 105 sighandler.h \ 106 statistics.h \ 107 sys.h \ 108 timing.h \ 109 version.h \ 110 winguiconsole.h \ 111 winstartup.h \ 112 xcall_numbers.h \ 113 xwindows.h 114 115libpolyml_la_SOURCES = \ 116 arb.cpp \ 117 bitmap.cpp \ 118 check_objects.cpp \ 119 diagnostics.cpp \ 120 errors.cpp \ 121 exporter.cpp \ 122 gc.cpp \ 123 gc_check_weak_ref.cpp \ 124 gc_copy_phase.cpp \ 125 gc_mark_phase.cpp \ 126 gc_progress.cpp \ 127 gc_share_phase.cpp \ 128 gc_update_phase.cpp \ 129 gctaskfarm.cpp \ 130 heapsizing.cpp \ 131 locking.cpp \ 132 memmgr.cpp \ 133 mpoly.cpp \ 134 network.cpp \ 135 objsize.cpp \ 136 pexport.cpp \ 137 poly_specific.cpp \ 138 polyffi.cpp \ 139 polystring.cpp \ 140 process_env.cpp \ 141 processes.cpp \ 142 profiling.cpp \ 143 quick_gc.cpp \ 144 realconv.cpp \ 145 reals.cpp \ 146 rts_module.cpp \ 147 rtsentry.cpp \ 148 run_time.cpp \ 149 save_vec.cpp \ 150 savestate.cpp \ 151 scanaddrs.cpp \ 152 sharedata.cpp \ 153 sighandler.cpp \ 154 statistics.cpp \ 155 timing.cpp \ 156 xwindows.cpp \ 157 $(ARCHSOURCE) $(EXPORTSOURCE) $(OSSOURCE) 158 159pkgconfigdir = $(libdir)/pkgconfig 160pkgconfig_DATA = polyml.pc 161