1 ### assemble a list of programs we want to build and install
3 if GST_DISABLE_LOADSAVE
7 GST_LOADSAVE_SRC = gst-xmllaunch
9 gst-xmllaunch-@GST_MAJORMINOR@
16 GST_PARSE_SRC = gst-launch
17 GST_PARSE_SRC_V = gst-launch-@GST_MAJORMINOR@
27 gst-inspect-@GST_MAJORMINOR@ \
28 gst-typefind-@GST_MAJORMINOR@ \
29 gst-xmlinspect-@GST_MAJORMINOR@
31 ### so all of the programs we want to build
33 $(GST_LOADSAVE_SRC) $(GST_LOADSAVE_SRC_V) \
34 $(GST_PARSE_SRC) $(GST_PARSE_SRC_V) \
35 $(GST_OTHER_SRC) $(GST_OTHER_SRC_V)
36 bin_SCRIPTS = gst-feedback-@GST_MAJORMINOR@
38 # make sure each versioned tool has the right source file and flags
39 if !GST_DISABLE_LOADSAVE
40 gst_xmllaunch_@GST_MAJORMINOR@_SOURCES = gst-launch.c tools.h
41 gst_xmllaunch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
42 gst_xmllaunch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
46 gst_launch_@GST_MAJORMINOR@_SOURCES = gst-launch.c tools.h
47 gst_launch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
48 gst_launch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
51 gst_inspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c tools.h
52 gst_inspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
53 gst_inspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
54 gst_typefind_@GST_MAJORMINOR@_SOURCES = gst-typefind.c tools.h
55 gst_typefind_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
56 gst_typefind_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
57 gst_xmlinspect_@GST_MAJORMINOR@_SOURCES = gst-xmlinspect.c tools.h
58 gst_xmlinspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
59 gst_xmlinspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
61 gst-feedback-@GST_MAJORMINOR@: gst-feedback-m.m
62 cp $(srcdir)/gst-feedback-m.m $@
65 # make sure each unversioned tool comes from gst-run.c
66 if !GST_DISABLE_LOADSAVE
67 gst_xmllaunch_SOURCES = gst-run.c
71 gst_launch_SOURCES = gst-run.c
74 gst_feedback_SOURCES = gst-run.c
75 gst_inspect_SOURCES = gst-run.c
76 gst_typefind_SOURCES = gst-run.c
77 gst_xmlinspect_SOURCES = gst-run.c
79 # CFLAGS and libs for nonversioned frontend binaries
80 AM_CFLAGS = $(GLIB_ONLY_CFLAGS)
81 LDADD = $(GLIB_ONLY_LIBS)
82 # due to depcomp not using AM_CFLAGS for rh9/yd3, we also set AM_CPPFLAGS
83 AM_CPPFLAGS = $(GLIB_ONLY_CFLAGS)
85 ### man pages we want to install
86 if GST_DISABLE_LOADSAVE
90 gst-xmllaunch-@GST_MAJORMINOR@.1
97 gst-launch-@GST_MAJORMINOR@.1
102 gst-feedback-@GST_MAJORMINOR@.1 \
103 gst-inspect-@GST_MAJORMINOR@.1 \
104 gst-typefind-@GST_MAJORMINOR@.1 \
105 gst-xmlinspect-@GST_MAJORMINOR@.1
107 manpages = $(GST_LOADSAVE_MAN) $(GST_PARSE_MAN) $(GST_OTHER_MAN)
109 CLEANFILES = $(manpages) $(bin_SCRIPTS) *.gcno *.gcda
110 man_MANS = $(manpages)
112 # developer helper tools, not meant for installation
113 noinst_SCRIPTS = gst-indent
115 noinst_HEADERS = tools.h
123 gst-xmlinspect.1.in \
128 %-@GST_MAJORMINOR@.1: %.1.in
130 -e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \
131 -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \
132 -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \
133 -e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \
134 -e s,gst-xmlinspect,gst-xmlinspect-@GST_MAJORMINOR@,g \
135 -e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \
136 -e s,GST_MAJORMINOR,@GST_MAJORMINOR@,g \