# We want to build a libopeanl library with libtool. lib_LTLIBRARIES = libopenal.la # The first path is needed to find and and the second one # is needed for libopenal_la_CPPFLAGS = \ -I$(top_srcdir)/common/include \ -I$(top_srcdir)/include # libopenal consists of the following sources and internal headers: libopenal_la_SOURCES = \ al_bpool.c \ al_bpool.h \ al_buffer.c \ al_buffer.h \ al_config.c \ al_config.h \ al_cpu_caps.h \ al_debug.c \ al_debug.h \ al_distance.c \ al_distance.h \ al_error.c \ al_error.h \ al_ext.c \ al_ext.h \ al_filter.c \ al_filter.h \ al_listen.c \ al_listen.h \ al_main.c \ al_main.h \ al_mixer.c \ al_mixer.h \ al_mixfunc.c \ al_mixfunc.h \ al_mixmanager.c \ al_mixmanager.h \ al_mspool.c \ al_mspool.h \ al_mutexlib.c \ al_mutexlib.h \ al_queue.c \ al_queue.h \ al_rctree.c \ al_rctree.h \ al_rcvar.c \ al_rcvar.h \ al_siteconfig.h \ al_source.c \ al_source.h \ al_spool.c \ al_spool.h \ al_state.c \ al_threadlib.c \ al_threadlib.h \ al_types.h \ al_vector.c \ al_vector.h \ al_matrix.c \ al_matrix.h \ mixaudio16.h \ mixaudio16.c # backend sources if USEBACKENDALSA libopenal_la_SOURCES += \ backends/alc_backend_alsa.c endif if USEBACKENDARTS libopenal_la_SOURCES += \ backends/alc_backend_arts.c endif if USEBACKENDNATIVEBSD libopenal_la_SOURCES += \ backends/alc_backend_bsd.c endif if USEBACKENDNATIVEDARWIN libopenal_la_SOURCES += \ backends/alc_backend_darwin.c endif if USEBACKENDESD libopenal_la_SOURCES += \ backends/alc_backend_esd.c endif if USEBACKENDNATIVEIRIX libopenal_la_SOURCES += \ backends/alc_backend_irix.c endif if USEBACKENDNATIVELINUX libopenal_la_SOURCES += \ backends/alc_backend_linux.c endif if USEBACKENDNATIVEMORPHOS libopenal_la_SOURCES += \ backends/alc_backend_morphos.c endif if USEBACKENDNULL libopenal_la_SOURCES += \ backends/alc_backend_null.c endif if USEBACKENDSDL libopenal_la_SOURCES += \ backends/alc_backend_sdl.c endif if USEBACKENDNATIVESOLARIS libopenal_la_SOURCES += \ backends/alc_backend_solaris.c endif if USEBACKENDWAVEOUT libopenal_la_SOURCES += \ backends/alc_backend_wave.c endif if USEBACKENDNATIVEWINDOWS libopenal_la_SOURCES += \ backends/alc_backend_windows.c endif libopenal_la_SOURCES += \ backends/alc_backend.c \ backends/alc_backend.h # processor-specific sources if X86ENABLED libopenal_la_SOURCES += \ arch/i386/x86_floatmul.c \ arch/i386/x86_cpu_caps_prk.c \ arch/i386/x86_cpu_caps_prk.h \ arch/i386/x86_simd_support_prk.h if X86MMXENABLED libopenal_la_CPPFLAGS += \ -I$(top_srcdir)/src/arch/i386 libopenal_la_SOURCES += \ arch/i386/mixaudio16_mmx_prk.c \ arch/i386/mixaudio16_mmx_prk.h endif if X86NASMENABLED # autotools suck hard; this is the only way I got it working X86_SUBDIR = arch asm_ldadd = $(top_builddir)/src/arch/i386/libx86_asm_routines.la endif else # no x86, so use portable stuff libopenal_la_SOURCES += \ arch/portable/floatmul.c \ arch/portable/cpu_caps.c endif # ALC sources libopenal_la_SOURCES += \ alc/alc_context.c \ alc/alc_context.h \ alc/alc_device.c \ alc/alc_device.h \ alc/alc_error.c \ alc/alc_error.h \ alc/alc_speaker.c \ alc/alc_speaker.h # audiconvert sources libopenal_la_SOURCES += \ audioconvert/ac_adpcm.c \ audioconvert/ac_adpcm.h \ audioconvert/ac_bits.c \ audioconvert/ac_channels.c \ audioconvert/ac_endian.c \ audioconvert/ac_endian.h \ audioconvert/ac_freq.c \ audioconvert/ac_helper.c \ audioconvert/ac_misc.c \ audioconvert/ac_wave.h \ audioconvert/audioconvert.h # extension sources if ENABLEEXTENSIONALEXTVORBIS libopenal_la_SOURCES += \ extensions/al_ext_vorbis.c \ extensions/al_ext_vorbis.h endif if ENABLEEXTENSIONALEXTMP3 libopenal_la_SOURCES += \ extensions/al_ext_mp3.c \ extensions/al_ext_mp3.h endif libopenal_la_SOURCES += \ extensions/al_ext_capture.c \ extensions/al_ext_capture.h \ extensions/al_ext_loki.c \ extensions/al_ext_loki.h \ extensions/al_ext_needed.h # Add compiler flags. libopenal_la_CFLAGS = $(WARNINGCFLAGS) $(OPTIMIZATIONCFLAGS) $(FEATURECFLAGS) # The -no-undefined flag is neccessary for building DLLs on Windows. libopenal_la_LDFLAGS = -no-undefined $(PROFILINGLDFLAGS) # We use sin and friends, so we might need -lm, autoconf takes care of this. libopenal_la_LIBADD = $(LIBM) $(asm_ldadd) SUBDIRS = $(X86_SUBDIR)