2
# PortAudio V19 Makefile.in
5
# Modifications by Mikael Magnusson
6
# Modifications by Stelios Bounanos
9
top_srcdir = @top_srcdir@
15
exec_prefix = @exec_prefix@
18
includedir = @includedir@
21
CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src/common -I$(top_srcdir)/src/os/unix @CFLAGS@ @DEFS@
27
INSTALL_DATA = @INSTALL_DATA@
28
SHARED_FLAGS = @SHARED_FLAGS@
35
LT_CURRENT=@LT_CURRENT@
36
LT_REVISION=@LT_REVISION@
39
OTHER_OBJS = @OTHER_OBJS@
41
PALIB = libportaudio.la
42
PAINC = include/portaudio.h
44
PA_LDFLAGS = $(LDFLAGS) $(SHARED_FLAGS) -rpath $(libdir) -no-undefined \
45
-export-symbols-regex "(Pa|PaMacCore|PaJack|PaAlsa|PaAsio)_.*" \
46
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
49
src/common/pa_allocation.o \
50
src/common/pa_converters.o \
51
src/common/pa_cpuload.o \
52
src/common/pa_dither.o \
53
src/common/pa_debugprint.o \
54
src/common/pa_front.o \
55
src/common/pa_process.o \
56
src/common/pa_skeleton.o \
57
src/common/pa_stream.o \
65
bin/patest_callbackstop \
69
bin/patest_in_overflow \
71
bin/patest_leftright \
75
bin/patest_multi_sine \
76
bin/patest_out_underflow \
79
bin/patest_read_record \
80
bin/patest_read_write_wire \
86
bin/patest_sine_channelmaps \
87
bin/patest_sine_formats \
88
bin/patest_sine_time \
89
bin/patest_sine_srate \
90
bin/patest_start_stop \
92
bin/patest_stop_playout \
93
bin/patest_toomanysines \
94
bin/patest_underflow \
96
bin/patest_write_sine \
101
# Most of these don't compile yet. Put them in TESTS, above, if
102
# you want to try to compile them...
107
bin/debug_dither_calc \
110
bin/debug_multi_out \
112
bin/debug_record_reuse \
115
bin/debug_sine_formats \
119
OBJS := $(COMMON_OBJS) $(OTHER_OBJS)
121
LTOBJS := $(OBJS:.o=.lo)
128
src/hostapi/coreaudio \
140
@ENABLE_CXX_TRUE@SUBDIRS += bindings/cpp
142
all: lib/$(PALIB) all-recursive tests
144
tests: bin-stamp $(TESTS)
147
# With ASIO enabled we must link libportaudio and all test programs with CXX
148
lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC)
149
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS)
150
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS)
152
$(ALL_TESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) test/%.c
153
@WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS)
154
@WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS)
157
install: lib/$(PALIB) portaudio-2.0.pc
158
$(INSTALL) -d $(DESTDIR)$(libdir)
159
$(LIBTOOL) --mode=install $(INSTALL) lib/$(PALIB) $(DESTDIR)$(libdir)
160
$(INSTALL) -d $(DESTDIR)$(includedir)
161
$(INSTALL_DATA) -m 644 $(top_srcdir)/$(PAINC) $(DESTDIR)$(includedir)/portaudio.h
162
$(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
163
$(INSTALL) -m 644 portaudio-2.0.pc $(DESTDIR)$(libdir)/pkgconfig/portaudio-2.0.pc
165
@echo "------------------------------------------------------------"
166
@echo "PortAudio was successfully installed."
168
@echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
169
@echo "to make the shared object available. You may also need to"
170
@echo "modify your LD_LIBRARY_PATH environment variable to include"
171
@echo "the directory $(libdir)"
172
@echo "------------------------------------------------------------"
174
$(MAKE) install-recursive
177
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(PALIB)
178
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(includedir)/portaudio.h
179
$(MAKE) uninstall-recursive
182
$(LIBTOOL) --mode=clean rm -f $(LTOBJS) $(ALL_TESTS) lib/$(PALIB)
183
$(RM) bin-stamp lib-stamp
187
$(RM) config.log config.status Makefile libtool portaudio-2.0.pc
189
%.o: %.c $(MAKEFILE) $(PAINC)
190
$(CC) -c $(CFLAGS) $< -o $@
192
%.lo: %.c $(MAKEFILE) $(PAINC)
193
$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@
195
%.lo: %.cpp $(MAKEFILE) $(PAINC)
196
$(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $< -o $@
198
%.o: %.cpp $(MAKEFILE) $(PAINC)
199
$(CXX) -c $(CXXFLAGS) $< -o $@
202
$(NASM) $(NASMOPT) -o $@ $<
210
-mkdir -p $(SRC_DIRS)
213
Makefile: Makefile.in config.status
214
$(SHELL) config.status
217
if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir all; done ; fi
220
if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir install; done ; fi
223
if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir uninstall; done ; fi