[17] | 1 | # We want to build a libopeanl library with libtool. |
---|
| 2 | lib_LTLIBRARIES = libopenal.la |
---|
| 3 | |
---|
| 4 | # The first path is needed to find <AL/alc.h> and <AL/al.h> and the second one |
---|
| 5 | # is needed for <AL/alext.h> |
---|
| 6 | libopenal_la_CPPFLAGS = \ |
---|
| 7 | -I$(top_srcdir)/common/include \ |
---|
| 8 | -I$(top_srcdir)/include |
---|
| 9 | |
---|
| 10 | # libopenal consists of the following sources and internal headers: |
---|
| 11 | libopenal_la_SOURCES = \ |
---|
| 12 | al_bpool.c \ |
---|
| 13 | al_bpool.h \ |
---|
| 14 | al_buffer.c \ |
---|
| 15 | al_buffer.h \ |
---|
| 16 | al_config.c \ |
---|
| 17 | al_config.h \ |
---|
| 18 | al_cpu_caps.h \ |
---|
| 19 | al_debug.c \ |
---|
| 20 | al_debug.h \ |
---|
| 21 | al_distance.c \ |
---|
| 22 | al_distance.h \ |
---|
| 23 | al_error.c \ |
---|
| 24 | al_error.h \ |
---|
| 25 | al_ext.c \ |
---|
| 26 | al_ext.h \ |
---|
| 27 | al_filter.c \ |
---|
| 28 | al_filter.h \ |
---|
| 29 | al_listen.c \ |
---|
| 30 | al_listen.h \ |
---|
| 31 | al_main.c \ |
---|
| 32 | al_main.h \ |
---|
| 33 | al_mixer.c \ |
---|
| 34 | al_mixer.h \ |
---|
| 35 | al_mixfunc.c \ |
---|
| 36 | al_mixfunc.h \ |
---|
| 37 | al_mixmanager.c \ |
---|
| 38 | al_mixmanager.h \ |
---|
| 39 | al_mspool.c \ |
---|
| 40 | al_mspool.h \ |
---|
| 41 | al_mutexlib.c \ |
---|
| 42 | al_mutexlib.h \ |
---|
| 43 | al_queue.c \ |
---|
| 44 | al_queue.h \ |
---|
| 45 | al_rctree.c \ |
---|
| 46 | al_rctree.h \ |
---|
| 47 | al_rcvar.c \ |
---|
| 48 | al_rcvar.h \ |
---|
| 49 | al_siteconfig.h \ |
---|
| 50 | al_source.c \ |
---|
| 51 | al_source.h \ |
---|
| 52 | al_spool.c \ |
---|
| 53 | al_spool.h \ |
---|
| 54 | al_state.c \ |
---|
| 55 | al_threadlib.c \ |
---|
| 56 | al_threadlib.h \ |
---|
| 57 | al_types.h \ |
---|
| 58 | al_vector.c \ |
---|
| 59 | al_vector.h \ |
---|
| 60 | al_matrix.c \ |
---|
| 61 | al_matrix.h \ |
---|
| 62 | mixaudio16.h \ |
---|
| 63 | mixaudio16.c |
---|
| 64 | |
---|
| 65 | # backend sources |
---|
| 66 | |
---|
| 67 | if USEBACKENDALSA |
---|
| 68 | libopenal_la_SOURCES += \ |
---|
| 69 | backends/alc_backend_alsa.c |
---|
| 70 | endif |
---|
| 71 | |
---|
| 72 | if USEBACKENDARTS |
---|
| 73 | libopenal_la_SOURCES += \ |
---|
| 74 | backends/alc_backend_arts.c |
---|
| 75 | endif |
---|
| 76 | |
---|
| 77 | if USEBACKENDNATIVEBSD |
---|
| 78 | libopenal_la_SOURCES += \ |
---|
| 79 | backends/alc_backend_bsd.c |
---|
| 80 | endif |
---|
| 81 | |
---|
| 82 | if USEBACKENDNATIVEDARWIN |
---|
| 83 | libopenal_la_SOURCES += \ |
---|
| 84 | backends/alc_backend_darwin.c |
---|
| 85 | endif |
---|
| 86 | |
---|
| 87 | if USEBACKENDESD |
---|
| 88 | libopenal_la_SOURCES += \ |
---|
| 89 | backends/alc_backend_esd.c |
---|
| 90 | endif |
---|
| 91 | |
---|
| 92 | if USEBACKENDNATIVEIRIX |
---|
| 93 | libopenal_la_SOURCES += \ |
---|
| 94 | backends/alc_backend_irix.c |
---|
| 95 | endif |
---|
| 96 | |
---|
| 97 | if USEBACKENDNATIVELINUX |
---|
| 98 | libopenal_la_SOURCES += \ |
---|
| 99 | backends/alc_backend_linux.c |
---|
| 100 | endif |
---|
| 101 | |
---|
| 102 | if USEBACKENDNATIVEMORPHOS |
---|
| 103 | libopenal_la_SOURCES += \ |
---|
| 104 | backends/alc_backend_morphos.c |
---|
| 105 | endif |
---|
| 106 | |
---|
| 107 | if USEBACKENDNULL |
---|
| 108 | libopenal_la_SOURCES += \ |
---|
| 109 | backends/alc_backend_null.c |
---|
| 110 | endif |
---|
| 111 | |
---|
| 112 | if USEBACKENDSDL |
---|
| 113 | libopenal_la_SOURCES += \ |
---|
| 114 | backends/alc_backend_sdl.c |
---|
| 115 | endif |
---|
| 116 | |
---|
| 117 | if USEBACKENDNATIVESOLARIS |
---|
| 118 | libopenal_la_SOURCES += \ |
---|
| 119 | backends/alc_backend_solaris.c |
---|
| 120 | endif |
---|
| 121 | |
---|
| 122 | if USEBACKENDWAVEOUT |
---|
| 123 | libopenal_la_SOURCES += \ |
---|
| 124 | backends/alc_backend_wave.c |
---|
| 125 | endif |
---|
| 126 | |
---|
| 127 | if USEBACKENDNATIVEWINDOWS |
---|
| 128 | libopenal_la_SOURCES += \ |
---|
| 129 | backends/alc_backend_windows.c |
---|
| 130 | endif |
---|
| 131 | |
---|
| 132 | libopenal_la_SOURCES += \ |
---|
| 133 | backends/alc_backend.c \ |
---|
| 134 | backends/alc_backend.h |
---|
| 135 | |
---|
| 136 | # processor-specific sources |
---|
| 137 | |
---|
| 138 | if X86ENABLED |
---|
| 139 | libopenal_la_SOURCES += \ |
---|
| 140 | arch/i386/x86_floatmul.c \ |
---|
| 141 | arch/i386/x86_cpu_caps_prk.c \ |
---|
| 142 | arch/i386/x86_cpu_caps_prk.h \ |
---|
| 143 | arch/i386/x86_simd_support_prk.h |
---|
| 144 | |
---|
| 145 | if X86MMXENABLED |
---|
| 146 | libopenal_la_CPPFLAGS += \ |
---|
| 147 | -I$(top_srcdir)/src/arch/i386 |
---|
| 148 | |
---|
| 149 | libopenal_la_SOURCES += \ |
---|
| 150 | arch/i386/mixaudio16_mmx_prk.c \ |
---|
| 151 | arch/i386/mixaudio16_mmx_prk.h |
---|
| 152 | endif |
---|
| 153 | |
---|
| 154 | if X86NASMENABLED |
---|
| 155 | # autotools suck hard; this is the only way I got it working |
---|
| 156 | X86_SUBDIR = arch |
---|
| 157 | asm_ldadd = $(top_builddir)/src/arch/i386/libx86_asm_routines.la |
---|
| 158 | endif |
---|
| 159 | |
---|
| 160 | else |
---|
| 161 | # no x86, so use portable stuff |
---|
| 162 | libopenal_la_SOURCES += \ |
---|
| 163 | arch/portable/floatmul.c \ |
---|
| 164 | arch/portable/cpu_caps.c |
---|
| 165 | endif |
---|
| 166 | |
---|
| 167 | # ALC sources |
---|
| 168 | libopenal_la_SOURCES += \ |
---|
| 169 | alc/alc_context.c \ |
---|
| 170 | alc/alc_context.h \ |
---|
| 171 | alc/alc_device.c \ |
---|
| 172 | alc/alc_device.h \ |
---|
| 173 | alc/alc_error.c \ |
---|
| 174 | alc/alc_error.h \ |
---|
| 175 | alc/alc_speaker.c \ |
---|
| 176 | alc/alc_speaker.h |
---|
| 177 | |
---|
| 178 | # audiconvert sources |
---|
| 179 | libopenal_la_SOURCES += \ |
---|
| 180 | audioconvert/ac_adpcm.c \ |
---|
| 181 | audioconvert/ac_adpcm.h \ |
---|
| 182 | audioconvert/ac_bits.c \ |
---|
| 183 | audioconvert/ac_channels.c \ |
---|
| 184 | audioconvert/ac_endian.c \ |
---|
| 185 | audioconvert/ac_endian.h \ |
---|
| 186 | audioconvert/ac_freq.c \ |
---|
| 187 | audioconvert/ac_helper.c \ |
---|
| 188 | audioconvert/ac_misc.c \ |
---|
| 189 | audioconvert/ac_wave.h \ |
---|
| 190 | audioconvert/audioconvert.h |
---|
| 191 | |
---|
| 192 | # extension sources |
---|
| 193 | |
---|
| 194 | if ENABLEEXTENSIONALEXTVORBIS |
---|
| 195 | libopenal_la_SOURCES += \ |
---|
| 196 | extensions/al_ext_vorbis.c \ |
---|
| 197 | extensions/al_ext_vorbis.h |
---|
| 198 | endif |
---|
| 199 | |
---|
| 200 | if ENABLEEXTENSIONALEXTMP3 |
---|
| 201 | libopenal_la_SOURCES += \ |
---|
| 202 | extensions/al_ext_mp3.c \ |
---|
| 203 | extensions/al_ext_mp3.h |
---|
| 204 | endif |
---|
| 205 | |
---|
| 206 | libopenal_la_SOURCES += \ |
---|
| 207 | extensions/al_ext_capture.c \ |
---|
| 208 | extensions/al_ext_capture.h \ |
---|
| 209 | extensions/al_ext_loki.c \ |
---|
| 210 | extensions/al_ext_loki.h \ |
---|
| 211 | extensions/al_ext_needed.h |
---|
| 212 | |
---|
| 213 | # Add compiler flags. |
---|
| 214 | libopenal_la_CFLAGS = $(WARNINGCFLAGS) $(OPTIMIZATIONCFLAGS) $(FEATURECFLAGS) |
---|
| 215 | |
---|
| 216 | # The -no-undefined flag is neccessary for building DLLs on Windows. |
---|
| 217 | libopenal_la_LDFLAGS = -no-undefined $(PROFILINGLDFLAGS) |
---|
| 218 | |
---|
| 219 | # We use sin and friends, so we might need -lm, autoconf takes care of this. |
---|
| 220 | libopenal_la_LIBADD = $(LIBM) $(asm_ldadd) |
---|
| 221 | |
---|
| 222 | SUBDIRS = $(X86_SUBDIR) |
---|