1 ### assemble a list of programs we want to build and install
2 if GST_DISABLE_REGISTRY
6 GST_REGISTRY_SRC = gst-register
7 GST_REGISTRY_SRC_V = gst-register-@GST_MAJORMINOR@
10 if GST_DISABLE_LOADSAVE
14 GST_LOADSAVE_SRC = gst-complete gst-compprep gst-xmllaunch
15 GST_LOADSAVE_SRC_V = \
16 gst-complete-@GST_MAJORMINOR@ \
17 gst-compprep-@GST_MAJORMINOR@ \
18 gst-xmllaunch-@GST_MAJORMINOR@
28 gst-inspect-@GST_MAJORMINOR@ \
29 gst-launch-@GST_MAJORMINOR@ \
30 gst-md5sum-@GST_MAJORMINOR@ \
31 gst-typefind-@GST_MAJORMINOR@ \
32 gst-xmlinspect-@GST_MAJORMINOR@
35 ### so all of the programs we want to build
37 $(GST_REGISTRY_SRC) $(GST_REGISTRY_SRC_V) \
38 $(GST_LOADSAVE_SRC) $(GST_LOADSAVE_SRC_V) \
39 $(GST_OTHER_SRC) $(GST_OTHER_SRC_V)
41 # make sure each versioned tool has the right source file
42 if !GST_DISABLE_REGISTRY
43 gst_register_@GST_MAJORMINOR@_SOURCES = gst-register.c
45 if !GST_DISABLE_LOADSAVE
46 gst_complete_@GST_MAJORMINOR@_SOURCES = gst-complete.c
47 gst_compprep_@GST_MAJORMINOR@_SOURCES = gst-compprep.c
48 gst_xmllaunch_@GST_MAJORMINOR@_SOURCES = gst-launch.c
50 gst_inspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c
51 gst_launch_@GST_MAJORMINOR@_SOURCES = gst-launch.c
52 gst_md5sum_@GST_MAJORMINOR@_SOURCES = gst-md5sum.c
53 gst_typefind_@GST_MAJORMINOR@_SOURCES = gst-typefind.c
54 gst_xmlinspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c
56 # make sure each unversioned tool comes from gst-run.c
57 if !GST_DISABLE_REGISTRY
58 gst_register_SOURCES = gst-run.c
60 if !GST_DISABLE_LOADSAVE
61 gst_complete_SOURCES = gst-run.c
62 gst_compprep_SOURCES = gst-run.c
63 gst_xmllaunch_SOURCES = gst-run.c
65 gst_inspect_SOURCES = gst-run.c
66 gst_launch_SOURCES = gst-run.c
67 gst_md5sum_SOURCES = gst-run.c
68 gst_typefind_SOURCES = gst-run.c
69 gst_xmlinspect_SOURCES = gst-run.c
71 # set correct compile and link flags for all, as well as for specific
72 AM_CFLAGS = $(GST_CFLAGS)
73 AM_LDFLAGS = $(GST_LIBS)
75 gst_inspect_@GST_MAJORMINOR@_LDADD = ../libs/gst/control/libgstcontrol-@GST_MAJORMINOR@.la
77 gst_xmlinspect_@GST_MAJORMINOR@_LDADD = ../libs/gst/control/libgstcontrol-@GST_MAJORMINOR@.la
79 ### man pages we want to install
80 if GST_DISABLE_REGISTRY
81 GST_REGISTRY_MAN = gst-register-@GST_MAJORMINOR@.1
86 if GST_DISABLE_LOADSAVE
88 gst-complete-@GST_MAJORMINOR@.1 \
89 gst-compprep-@GST_MAJORMINOR@.1 \
90 gst-xmllaunch-@GST_MAJORMINOR@.1
96 gst-inspect-@GST_MAJORMINOR@.1 \
97 gst-launch-@GST_MAJORMINOR@.1 \
98 gst-md5sum-@GST_MAJORMINOR@.1 \
99 gst-typefind-@GST_MAJORMINOR@.1
100 # gst-xmlinspect-@GST_MAJORMINOR@.1
102 manpages = $(GST_REGISTRY_MAN) $(GST_LOADSAVE_MAN) $(GST_OTHER_MAN)
104 CLEANFILES = $(manpages)
105 man_MANS = $(manpages)
118 bin_SCRIPTS = gst-feedback
120 %-@GST_MAJORMINOR@.1: %.1.in
122 -e s,gst-complete,gst-complete-@GST_MAJORMINOR@,g \
123 -e s,gst-compprep,gst-compprep-@GST_MAJORMINOR@,g \
124 -e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \
125 -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \
126 -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \
127 -e s,gst-md5sum,gst-md5sum-@GST_MAJORMINOR@,g \
128 -e s,gst-register,gst-register-@GST_MAJORMINOR@,g \
129 -e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \