You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.in 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. #
  2. # PortAudio V19 Makefile.in
  3. #
  4. # Dominic Mazzoni
  5. # Modifications by Mikael Magnusson
  6. # Modifications by Stelios Bounanos
  7. #
  8. top_srcdir = @top_srcdir@
  9. srcdir = @srcdir@
  10. VPATH = @srcdir@
  11. top_builddir = .
  12. PREFIX = @prefix@
  13. prefix = $(PREFIX)
  14. exec_prefix = @exec_prefix@
  15. bindir = @bindir@
  16. libdir = @libdir@
  17. includedir = @includedir@
  18. CC = @CC@
  19. CXX = @CXX@
  20. CFLAGS = @CFLAGS@ @DEFS@
  21. LIBS = @LIBS@
  22. AR = @AR@
  23. RANLIB = @RANLIB@
  24. SHELL = @SHELL@
  25. LIBTOOL = @LIBTOOL@
  26. INSTALL = @INSTALL@
  27. INSTALL_DATA = @INSTALL_DATA@
  28. SHARED_FLAGS = @SHARED_FLAGS@
  29. LDFLAGS = @LDFLAGS@
  30. DLL_LIBS = @DLL_LIBS@
  31. CXXFLAGS = @CXXFLAGS@
  32. NASM = @NASM@
  33. NASMOPT = @NASMOPT@
  34. LN_S = @LN_S@
  35. LT_CURRENT=@LT_CURRENT@
  36. LT_REVISION=@LT_REVISION@
  37. LT_AGE=@LT_AGE@
  38. OTHER_OBJS = @OTHER_OBJS@
  39. INCLUDES = @INCLUDES@
  40. PALIB = libportaudio.la
  41. PAINC = include/portaudio.h
  42. PA_LDFLAGS = $(LDFLAGS) $(SHARED_FLAGS) -rpath $(libdir) -no-undefined \
  43. -export-symbols-regex "(Pa|PaMacCore|PaJack|PaAlsa|PaAsio|PaOSS)_.*" \
  44. -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
  45. COMMON_OBJS = \
  46. src/common/pa_allocation.o \
  47. src/common/pa_converters.o \
  48. src/common/pa_cpuload.o \
  49. src/common/pa_dither.o \
  50. src/common/pa_debugprint.o \
  51. src/common/pa_front.o \
  52. src/common/pa_process.o \
  53. src/common/pa_stream.o \
  54. src/common/pa_trace.o \
  55. src/hostapi/skeleton/pa_hostapi_skeleton.o
  56. LOOPBACK_OBJS = \
  57. qa/loopback/src/audio_analyzer.o \
  58. qa/loopback/src/biquad_filter.o \
  59. qa/loopback/src/paqa_tools.o \
  60. qa/loopback/src/test_audio_analyzer.o \
  61. qa/loopback/src/write_wav.o \
  62. qa/loopback/src/paqa.o
  63. EXAMPLES = \
  64. bin/pa_devs \
  65. bin/pa_fuzz \
  66. bin/paex_pink \
  67. bin/paex_read_write_wire \
  68. bin/paex_record \
  69. bin/paex_saw \
  70. bin/paex_sine \
  71. bin/paex_write_sine \
  72. bin/paex_write_sine_nonint
  73. SELFTESTS = \
  74. bin/paqa_devs \
  75. bin/paqa_errs \
  76. bin/paqa_latency
  77. TESTS = \
  78. bin/patest1 \
  79. bin/patest_buffer \
  80. bin/patest_callbackstop \
  81. bin/patest_clip \
  82. bin/patest_dither \
  83. bin/patest_hang \
  84. bin/patest_in_overflow \
  85. bin/patest_latency \
  86. bin/patest_leftright \
  87. bin/patest_longsine \
  88. bin/patest_many \
  89. bin/patest_maxsines \
  90. bin/patest_mono \
  91. bin/patest_multi_sine \
  92. bin/patest_out_underflow \
  93. bin/patest_prime \
  94. bin/patest_ringmix \
  95. bin/patest_sine8 \
  96. bin/patest_sine_channelmaps \
  97. bin/patest_sine_formats \
  98. bin/patest_sine_time \
  99. bin/patest_sine_srate \
  100. bin/patest_start_stop \
  101. bin/patest_stop \
  102. bin/patest_stop_playout \
  103. bin/patest_toomanysines \
  104. bin/patest_two_rates \
  105. bin/patest_underflow \
  106. bin/patest_wire \
  107. bin/pa_minlat
  108. # Most of these don't compile yet. Put them in TESTS, above, if
  109. # you want to try to compile them...
  110. ALL_TESTS = \
  111. $(TESTS) \
  112. bin/patest_sync \
  113. bin/debug_convert \
  114. bin/debug_dither_calc \
  115. bin/debug_dual \
  116. bin/debug_multi_in \
  117. bin/debug_multi_out \
  118. bin/debug_record \
  119. bin/debug_record_reuse \
  120. bin/debug_sine_amp \
  121. bin/debug_sine \
  122. bin/debug_sine_formats \
  123. bin/debug_srate \
  124. bin/debug_test1
  125. OBJS := $(COMMON_OBJS) $(OTHER_OBJS)
  126. LTOBJS := $(OBJS:.o=.lo)
  127. SRC_DIRS = \
  128. src/common \
  129. src/hostapi/alsa \
  130. src/hostapi/asihpi \
  131. src/hostapi/asio \
  132. src/hostapi/coreaudio \
  133. src/hostapi/dsound \
  134. src/hostapi/jack \
  135. src/hostapi/oss \
  136. src/hostapi/wasapi \
  137. src/hostapi/wdmks \
  138. src/hostapi/wmme \
  139. src/os/unix \
  140. src/os/win
  141. SUBDIRS =
  142. @ENABLE_CXX_TRUE@SUBDIRS += bindings/cpp
  143. all: lib/$(PALIB) all-recursive tests examples selftests
  144. tests: bin-stamp $(TESTS)
  145. examples: bin-stamp $(EXAMPLES)
  146. selftests: bin-stamp $(SELFTESTS)
  147. loopback: bin-stamp bin/paloopback
  148. # With ASIO enabled we must link libportaudio and all test programs with CXX
  149. lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC)
  150. @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS)
  151. @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)
  155. $(EXAMPLES): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) examples/%.c
  156. @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS)
  157. @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS)
  158. $(SELFTESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) qa/%.c
  159. @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS)
  160. @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS)
  161. bin/paloopback: lib/$(PALIB) $(MAKEFILE) $(PAINC) $(LOOPBACK_OBJS)
  162. @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS)
  163. @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS)
  164. install: lib/$(PALIB) portaudio-2.0.pc
  165. $(INSTALL) -d $(DESTDIR)$(libdir)
  166. $(LIBTOOL) --mode=install $(INSTALL) lib/$(PALIB) $(DESTDIR)$(libdir)
  167. $(INSTALL) -d $(DESTDIR)$(includedir)
  168. for include in $(INCLUDES); do \
  169. $(INSTALL_DATA) -m 644 $(top_srcdir)/include/$$include $(DESTDIR)$(includedir)/$$include; \
  170. done
  171. $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig
  172. $(INSTALL) -m 644 portaudio-2.0.pc $(DESTDIR)$(libdir)/pkgconfig/portaudio-2.0.pc
  173. @echo ""
  174. @echo "------------------------------------------------------------"
  175. @echo "PortAudio was successfully installed."
  176. @echo ""
  177. @echo "On some systems (e.g. Linux) you should run 'ldconfig' now"
  178. @echo "to make the shared object available. You may also need to"
  179. @echo "modify your LD_LIBRARY_PATH environment variable to include"
  180. @echo "the directory $(libdir)"
  181. @echo "------------------------------------------------------------"
  182. @echo ""
  183. $(MAKE) install-recursive
  184. uninstall:
  185. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$(PALIB)
  186. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(includedir)/portaudio.h
  187. $(MAKE) uninstall-recursive
  188. clean:
  189. $(LIBTOOL) --mode=clean rm -f $(LTOBJS) $(LOOPBACK_OBJS) $(ALL_TESTS) lib/$(PALIB)
  190. $(RM) bin-stamp lib-stamp
  191. -$(RM) -r bin lib
  192. distclean: clean
  193. $(RM) config.log config.status Makefile libtool portaudio-2.0.pc
  194. %.o: %.c $(MAKEFILE) $(PAINC)
  195. $(CC) -c $(CFLAGS) $< -o $@
  196. %.lo: %.c $(MAKEFILE) $(PAINC)
  197. $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@
  198. %.lo: %.cpp $(MAKEFILE) $(PAINC)
  199. $(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $< -o $@
  200. %.o: %.cpp $(MAKEFILE) $(PAINC)
  201. $(CXX) -c $(CXXFLAGS) $< -o $@
  202. %.o: %.asm
  203. $(NASM) $(NASMOPT) -o $@ $<
  204. bin-stamp:
  205. -mkdir bin
  206. touch $@
  207. lib-stamp:
  208. -mkdir lib
  209. -mkdir -p $(SRC_DIRS)
  210. touch $@
  211. Makefile: Makefile.in config.status
  212. $(SHELL) config.status
  213. all-recursive:
  214. if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir all; done ; fi
  215. install-recursive:
  216. if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir install; done ; fi
  217. uninstall-recursive:
  218. if test -n "$(SUBDIRS)" ; then for dir in "$(SUBDIRS)"; do $(MAKE) -C $$dir uninstall; done ; fi