source: trunk/third/gstreamer/tools/Makefile.am @ 21005

Revision 21005, 5.1 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21004, which included commits to RCS files with non-trunk default branches.
RevLine 
[21004]1### assemble a list of programs we want to build and install
[18713]2if GST_DISABLE_REGISTRY
3GST_REGISTRY_SRC =
[21004]4GST_REGISTRY_SRC_V =
[18713]5else
6GST_REGISTRY_SRC = gst-register
[21004]7GST_REGISTRY_SRC_V = gst-register-@GST_MAJORMINOR@
[18713]8endif
9
10if GST_DISABLE_LOADSAVE
11GST_LOADSAVE_SRC =
[21004]12GST_LOADSAVE_SRC_V =
[18713]13else
[21004]14GST_LOADSAVE_SRC = gst-complete gst-compprep gst-xmllaunch
15GST_LOADSAVE_SRC_V = \
16        gst-complete-@GST_MAJORMINOR@ \
17        gst-compprep-@GST_MAJORMINOR@ \
18        gst-xmllaunch-@GST_MAJORMINOR@
[18713]19endif
20
[21004]21GST_OTHER_SRC = \
22        gst-feedback \
23        gst-inspect \
24        gst-launch \
25        gst-md5sum \
26        gst-typefind \
27        gst-xmlinspect
28GST_OTHER_SRC_V = \
29        gst-inspect-@GST_MAJORMINOR@ \
30        gst-launch-@GST_MAJORMINOR@ \
31        gst-md5sum-@GST_MAJORMINOR@ \
32        gst-typefind-@GST_MAJORMINOR@ \
33        gst-xmlinspect-@GST_MAJORMINOR@
[18713]34
[21004]35### so all of the programs we want to build
36bin_PROGRAMS = \
37        $(GST_REGISTRY_SRC) $(GST_REGISTRY_SRC_V) \
38        $(GST_LOADSAVE_SRC) $(GST_LOADSAVE_SRC_V) \
39        $(GST_OTHER_SRC) $(GST_OTHER_SRC_V)
40bin_SCRIPTS = gst-feedback-@GST_MAJORMINOR@
[18713]41
[21004]42# make sure each versioned tool has the right source file and flags
43if !GST_DISABLE_REGISTRY
44gst_register_@GST_MAJORMINOR@_SOURCES = gst-register.c
45gst_register_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
46gst_register_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
47endif
48if !GST_DISABLE_LOADSAVE
49gst_complete_@GST_MAJORMINOR@_SOURCES = gst-complete.c
50gst_complete_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
51gst_complete_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
52gst_compprep_@GST_MAJORMINOR@_SOURCES = gst-compprep.c
53gst_compprep_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
54gst_compprep_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
55gst_xmllaunch_@GST_MAJORMINOR@_SOURCES = gst-launch.c
56gst_xmllaunch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
57gst_xmllaunch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
58endif
59gst_inspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c
60gst_inspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
61gst_inspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
62gst_launch_@GST_MAJORMINOR@_SOURCES = gst-launch.c
63gst_launch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
64gst_launch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
65gst_md5sum_@GST_MAJORMINOR@_SOURCES = gst-md5sum.c
66gst_md5sum_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
67gst_md5sum_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
68gst_typefind_@GST_MAJORMINOR@_SOURCES = gst-typefind.c
69gst_typefind_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
70gst_typefind_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
71gst_xmlinspect_@GST_MAJORMINOR@_SOURCES = gst-xmlinspect.c
72gst_xmlinspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
73gst_xmlinspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
[18713]74
[21004]75gst-feedback-@GST_MAJORMINOR@: gst-feedback-m.m
76        cp $(srcdir)/gst-feedback-m.m $@
77        chmod +x $@
[18713]78
[21004]79# make sure each unversioned tool comes from gst-run.c
[18713]80if !GST_DISABLE_REGISTRY
[21004]81gst_register_SOURCES = gst-run.c
[18713]82endif
[21004]83if !GST_DISABLE_LOADSAVE
84gst_complete_SOURCES = gst-run.c
85gst_compprep_SOURCES = gst-run.c
86gst_xmllaunch_SOURCES = gst-run.c
87endif
88gst_feedback_SOURCES = gst-run.c
89gst_inspect_SOURCES = gst-run.c
90gst_launch_SOURCES = gst-run.c
91gst_md5sum_SOURCES = gst-run.c
92gst_typefind_SOURCES = gst-run.c
93gst_xmlinspect_SOURCES = gst-run.c
[18713]94
[21004]95gst_inspect_@GST_MAJORMINOR@_LDADD = ../libs/gst/control/libgstcontrol-@GST_MAJORMINOR@.la
[18713]96
[21004]97gst_xmlinspect_@GST_MAJORMINOR@_LDADD = ../libs/gst/control/libgstcontrol-@GST_MAJORMINOR@.la
[18713]98
[21004]99# CFLAGS and libs for nonversioned frontend binaries
100AM_CFLAGS = $(GLIB_ONLY_CFLAGS) $(POPT_CFLAGS)
101LDADD = $(GLIB_ONLY_LIBS) $(POPT_LIBS)
102# due to depcomp not using AM_CFLAGS for rh9/yd3, we also set AM_CPPFLAGS
103AM_CPPFLAGS = $(GLIB_ONLY_CFLAGS) $(POPT_CFLAGS)
[18713]104
[21004]105### man pages we want to install
106if GST_DISABLE_REGISTRY
107GST_REGISTRY_MAN=
108else
109GST_REGISTRY_MAN = gst-register-@GST_MAJORMINOR@.1
[18713]110endif
111
[21004]112if GST_DISABLE_LOADSAVE
113GST_LOADSAVE_MAN=
114else
115GST_LOADSAVE_MAN = \
116        gst-complete-@GST_MAJORMINOR@.1 \
117        gst-compprep-@GST_MAJORMINOR@.1 \
118        gst-xmllaunch-@GST_MAJORMINOR@.1
119endif
120
121GST_OTHER_MAN = \
122        gst-feedback-@GST_MAJORMINOR@.1 \
123        gst-inspect-@GST_MAJORMINOR@.1 \
124        gst-launch-@GST_MAJORMINOR@.1 \
125        gst-md5sum-@GST_MAJORMINOR@.1 \
126        gst-typefind-@GST_MAJORMINOR@.1 \
127        gst-xmlinspect-@GST_MAJORMINOR@.1
128
129manpages = $(GST_REGISTRY_MAN) $(GST_LOADSAVE_MAN) $(GST_OTHER_MAN)
130
131CLEANFILES = $(manpages) $(bin_SCRIPTS)
132man_MANS = $(manpages)
133
134# developer helper tools, not meant for installation
135noinst_SCRIPTS = gst-indent
136
137EXTRA_DIST = \
138        $(noinst_SCRIPTS) \
139        gst-complete.1.in \
140        gst-compprep.1.in \
141        gst-feedback.1.in \
142        gst-inspect.1.in \
143        gst-launch.1.in \
144        gst-md5sum.1.in \
145        gst-register.1.in \
146        gst-typefind.1.in \
147        gst-xmlinspect.1.in \
148        gst-xmllaunch.1.in \
149        gst-feedback-m.m
150
151%-@GST_MAJORMINOR@.1: %.1.in
152        sed \
153                -e s,gst-complete,gst-complete-@GST_MAJORMINOR@,g \
154                -e s,gst-compprep,gst-compprep-@GST_MAJORMINOR@,g \
155                -e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \
156                -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \
157                -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \
158                -e s,gst-md5sum,gst-md5sum-@GST_MAJORMINOR@,g \
159                -e s,gst-register,gst-register-@GST_MAJORMINOR@,g \
160                -e s,gst-typefind,gst-typefind-@GST_MAJORMINOR@,g \
161                -e s,gst-xmlinspect,gst-xmlinspect-@GST_MAJORMINOR@,g \
162                -e s,gst-xmllaunch,gst-xmllaunch-@GST_MAJORMINOR@,g \
163                $< >$@
164
Note: See TracBrowser for help on using the repository browser.