add jack_wait
[jack.git] / tools / Makefile.am
blob769fd5e28b4a76639cd4830a5f5e4878310f6685
1 MAINTAINERCLEANFILES    = Makefile.in
3 if HAVE_READLINE
4 JACK_TRANSPORT = jack_transport
5 dist-check-readline:
6 else
7 JACK_TRANSPORT =
8 dist-check-readline:
9         @echo
10         @echo ' ******' You need readline installed to make dist.' ******'
11         @echo
12         @false
13 endif
15 NETJACK_TOOLS = jack_netsource
17 if HAVE_SAMPLERATE
18 if HAVE_ALSA
19 NETJACK_TOOLS += alsa_in alsa_out
20 endif
21 dist-check-samplerate:
22 else
23 dist-check-samplerate:
24         @echo
25         @echo ' ******' You need libsamplerate installed to make dist.' ******'
26         @echo
27         @false
28 endif
30 bin_PROGRAMS = jack_load \
31                jack_unload \
32                jack_monitor_client \
33                jack_connect \
34                jack_disconnect \
35                jack_lsp \
36                jack_freewheel \
37                jack_evmon \
38                jack_alias \
39                jack_bufsize \
40                jack_samplerate \
41                jack_wait \
42                $(JACK_TRANSPORT) \
43                $(NETJACK_TOOLS)
45 noinst_PROGRAMS = jack_thread_wait
47 if HAVE_SNDFILE
48 # note! jackrec_CFLAGS syntax not supported by automake-1.4
49 sndfile_cflags = @SNDFILE_CFLAGS@
50 endif
52 AM_CFLAGS = -I.. $(JACK_CFLAGS) $(sndfile_cflags)
53 AM_CXXFLAGS = -I.. $(JACK_CFLAGS) $(sndfile_cflags)
55 jack_connect_SOURCES = connect.c
56 jack_connect_LDFLAGS = @OS_LDFLAGS@
57 jack_connect_LDADD = $(top_builddir)/libjack/libjack.la
59 jack_disconnect_SOURCES = connect.c
60 jack_disconnect_LDFLAGS = @OS_LDFLAGS@
61 jack_disconnect_LDADD = $(top_builddir)/libjack/libjack.la
63 jack_monitor_client_SOURCES = monitor_client.c
64 jack_monitor_client_LDFLAGS = @OS_LDFLAGS@
65 jack_monitor_client_LDADD = $(top_builddir)/libjack/libjack.la
67 jack_thread_wait_SOURCES = tw.c
68 jack_thread_wait_LDFLAGS = @OS_LDFLAGS@
69 jack_thread_wait_LDADD = $(top_builddir)/libjack/libjack.la
71 jack_wait_SOURCES = wait.c
72 jack_wait_LDFLAGS = @OS_LDFLAGS@
73 jack_wait_LDADD = $(top_builddir)/libjack/libjack.la
75 jack_evmon_SOURCES = evmon.c
76 jack_evmon_LDFLAGS = @OS_LDFLAGS@
77 jack_evmon_LDADD = $(top_builddir)/libjack/libjack.la
79 jack_alias_SOURCES = alias.c
80 jack_alias_LDFLAGS = @OS_LDFLAGS@
81 jack_alias_LDADD = $(top_builddir)/libjack/libjack.la
83 jack_lsp_SOURCES = lsp.c
84 jack_lsp_LDFLAGS = @OS_LDFLAGS@
85 jack_lsp_LDADD = $(top_builddir)/libjack/libjack.la
87 jack_freewheel_SOURCES = freewheel.c
88 jack_freewheel_LDFLAGS = @OS_LDFLAGS@
89 jack_freewheel_LDADD = $(top_builddir)/libjack/libjack.la
91 jack_bufsize_SOURCES = bufsize.c
92 jack_bufsize_LDFLAGS = @OS_LDFLAGS@
93 jack_bufsize_LDADD = $(top_builddir)/libjack/libjack.la
95 jack_samplerate_SOURCES = samplerate.c
96 jack_samplerate_LDFLAGS = @OS_LDFLAGS@
97 jack_samplerate_LDADD = $(top_builddir)/libjack/libjack.la
99 if HAVE_READLINE
100 jack_transport_SOURCES = transport.c
101 jack_transport_LDFLAGS = -lreadline @READLINE_DEPS@ @OS_LDFLAGS@
102 jack_transport_LDADD = $(top_builddir)/libjack/libjack.la
103 endif
106 # General purpose in-process loader/unloader
109 jack_load_SOURCES = ipload.c
110 jack_load_LDFLAGS = @OS_LDFLAGS@
111 jack_load_LDADD = $(top_builddir)/libjack/libjack.la
113 jack_unload_SOURCES = ipunload.c
114 jack_unload_LDFLAGS = @OS_LDFLAGS@
115 jack_unload_LDADD = $(top_builddir)/libjack/libjack.la
118 # Netjack slave tools
120 jack_netsource_SOURCES = netsource.c $(top_builddir)/drivers/netjack/netjack_packet.c
121 jack_netsource_CFLAGS = @NETJACK_CFLAGS@ -I$(top_srcdir)/drivers/netjack
122 jack_netsource_LDFLAGS = @NETJACK_LIBS@ @OS_LDFLAGS@ 
123 jack_netsource_LDADD = $(top_builddir)/libjack/libjack.la
125 if HAVE_SAMPLERATE
126 if HAVE_ALSA
127 alsa_in_SOURCES = alsa_in.c $(top_builddir)/drivers/alsa/memops.c
128 alsa_in_CFLAGS = @NETJACK_CFLAGS@ -I$(top_builddir)/drivers/alsa
129 alsa_in_LDFLAGS = -lasound -lsamplerate @OS_LDFLAGS@
130 alsa_in_LDADD = $(top_builddir)/libjack/libjack.la
132 alsa_out_SOURCES = alsa_out.c $(top_builddir)/drivers/alsa/memops.c
133 alsa_out_CFLAGS = @NETJACK_CFLAGS@ -I$(top_builddir)/drivers/alsa
134 alsa_out_LDFLAGS = -lasound -lsamplerate @OS_LDFLAGS@
135 alsa_out_LDADD = $(top_builddir)/libjack/libjack.la
136 endif #HAVE_ALSA
137 endif #HAVE_SAMPLERATE
139 EXTRA_DIST = time_smoother.h
141 dist-hook: dist-check-sndfile dist-check-samplerate