Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/openal-0.0.8/src/Makefile.am @ 17

Last change on this file since 17 was 17, checked in by landauf, 16 years ago

added openal

File size: 4.4 KB
Line 
1# We want to build a libopeanl library with libtool.
2lib_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>
6libopenal_la_CPPFLAGS =                 \
7        -I$(top_srcdir)/common/include  \
8        -I$(top_srcdir)/include
9
10# libopenal consists of the following sources and internal headers:
11libopenal_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
67if USEBACKENDALSA
68libopenal_la_SOURCES +=                 \
69        backends/alc_backend_alsa.c
70endif
71
72if USEBACKENDARTS
73libopenal_la_SOURCES +=                 \
74        backends/alc_backend_arts.c
75endif
76
77if USEBACKENDNATIVEBSD
78libopenal_la_SOURCES +=                 \
79        backends/alc_backend_bsd.c
80endif
81
82if USEBACKENDNATIVEDARWIN
83libopenal_la_SOURCES +=                 \
84        backends/alc_backend_darwin.c
85endif
86
87if USEBACKENDESD
88libopenal_la_SOURCES +=                 \
89        backends/alc_backend_esd.c
90endif
91
92if USEBACKENDNATIVEIRIX
93libopenal_la_SOURCES +=                 \
94        backends/alc_backend_irix.c
95endif
96
97if USEBACKENDNATIVELINUX
98libopenal_la_SOURCES +=                 \
99        backends/alc_backend_linux.c
100endif
101
102if USEBACKENDNATIVEMORPHOS
103libopenal_la_SOURCES +=                 \
104        backends/alc_backend_morphos.c
105endif
106
107if USEBACKENDNULL
108libopenal_la_SOURCES +=                 \
109        backends/alc_backend_null.c
110endif
111
112if USEBACKENDSDL
113libopenal_la_SOURCES +=                 \
114        backends/alc_backend_sdl.c
115endif
116
117if USEBACKENDNATIVESOLARIS
118libopenal_la_SOURCES +=                 \
119        backends/alc_backend_solaris.c
120endif
121
122if USEBACKENDWAVEOUT
123libopenal_la_SOURCES +=                 \
124        backends/alc_backend_wave.c
125endif
126
127if USEBACKENDNATIVEWINDOWS
128libopenal_la_SOURCES +=                 \
129        backends/alc_backend_windows.c
130endif
131
132libopenal_la_SOURCES +=                 \
133        backends/alc_backend.c \
134        backends/alc_backend.h
135
136# processor-specific sources
137
138if X86ENABLED
139libopenal_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
145if X86MMXENABLED
146libopenal_la_CPPFLAGS +=                \
147        -I$(top_srcdir)/src/arch/i386
148
149libopenal_la_SOURCES +=                 \
150        arch/i386/mixaudio16_mmx_prk.c  \
151        arch/i386/mixaudio16_mmx_prk.h
152endif
153
154if X86NASMENABLED
155# autotools suck hard; this is the only way I got it working
156X86_SUBDIR = arch
157asm_ldadd = $(top_builddir)/src/arch/i386/libx86_asm_routines.la
158endif
159
160else
161# no x86, so use portable stuff
162libopenal_la_SOURCES +=                 \
163        arch/portable/floatmul.c        \
164        arch/portable/cpu_caps.c
165endif
166
167# ALC sources
168libopenal_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
179libopenal_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
194if ENABLEEXTENSIONALEXTVORBIS
195libopenal_la_SOURCES +=                 \
196        extensions/al_ext_vorbis.c      \
197        extensions/al_ext_vorbis.h
198endif
199
200if ENABLEEXTENSIONALEXTMP3
201libopenal_la_SOURCES +=                 \
202        extensions/al_ext_mp3.c         \
203        extensions/al_ext_mp3.h
204endif
205
206libopenal_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.
214libopenal_la_CFLAGS = $(WARNINGCFLAGS) $(OPTIMIZATIONCFLAGS) $(FEATURECFLAGS)
215
216# The -no-undefined flag is neccessary for building DLLs on Windows.
217libopenal_la_LDFLAGS = -no-undefined $(PROFILINGLDFLAGS)
218
219# We use sin and friends, so we might need -lm, autoconf takes care of this.
220libopenal_la_LIBADD = $(LIBM) $(asm_ldadd)
221
222SUBDIRS = $(X86_SUBDIR)
Note: See TracBrowser for help on using the repository browser.