[21004] | 1 | ### assemble a list of programs we want to build and install |
---|
[18713] | 2 | if GST_DISABLE_REGISTRY |
---|
| 3 | GST_REGISTRY_SRC = |
---|
[21004] | 4 | GST_REGISTRY_SRC_V = |
---|
[18713] | 5 | else |
---|
| 6 | GST_REGISTRY_SRC = gst-register |
---|
[21004] | 7 | GST_REGISTRY_SRC_V = gst-register-@GST_MAJORMINOR@ |
---|
[18713] | 8 | endif |
---|
| 9 | |
---|
| 10 | if GST_DISABLE_LOADSAVE |
---|
| 11 | GST_LOADSAVE_SRC = |
---|
[21004] | 12 | GST_LOADSAVE_SRC_V = |
---|
[18713] | 13 | else |
---|
[21004] | 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@ |
---|
[18713] | 19 | endif |
---|
| 20 | |
---|
[21004] | 21 | GST_OTHER_SRC = \ |
---|
| 22 | gst-feedback \ |
---|
| 23 | gst-inspect \ |
---|
| 24 | gst-launch \ |
---|
| 25 | gst-md5sum \ |
---|
| 26 | gst-typefind \ |
---|
| 27 | gst-xmlinspect |
---|
| 28 | GST_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 |
---|
| 36 | bin_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) |
---|
| 40 | bin_SCRIPTS = gst-feedback-@GST_MAJORMINOR@ |
---|
[18713] | 41 | |
---|
[21004] | 42 | # make sure each versioned tool has the right source file and flags |
---|
| 43 | if !GST_DISABLE_REGISTRY |
---|
| 44 | gst_register_@GST_MAJORMINOR@_SOURCES = gst-register.c |
---|
| 45 | gst_register_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 46 | gst_register_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 47 | endif |
---|
| 48 | if !GST_DISABLE_LOADSAVE |
---|
| 49 | gst_complete_@GST_MAJORMINOR@_SOURCES = gst-complete.c |
---|
| 50 | gst_complete_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 51 | gst_complete_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 52 | gst_compprep_@GST_MAJORMINOR@_SOURCES = gst-compprep.c |
---|
| 53 | gst_compprep_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 54 | gst_compprep_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 55 | gst_xmllaunch_@GST_MAJORMINOR@_SOURCES = gst-launch.c |
---|
| 56 | gst_xmllaunch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 57 | gst_xmllaunch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 58 | endif |
---|
| 59 | gst_inspect_@GST_MAJORMINOR@_SOURCES = gst-inspect.c |
---|
| 60 | gst_inspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 61 | gst_inspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 62 | gst_launch_@GST_MAJORMINOR@_SOURCES = gst-launch.c |
---|
| 63 | gst_launch_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 64 | gst_launch_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 65 | gst_md5sum_@GST_MAJORMINOR@_SOURCES = gst-md5sum.c |
---|
| 66 | gst_md5sum_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 67 | gst_md5sum_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 68 | gst_typefind_@GST_MAJORMINOR@_SOURCES = gst-typefind.c |
---|
| 69 | gst_typefind_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 70 | gst_typefind_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
| 71 | gst_xmlinspect_@GST_MAJORMINOR@_SOURCES = gst-xmlinspect.c |
---|
| 72 | gst_xmlinspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS) |
---|
| 73 | gst_xmlinspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS) |
---|
[18713] | 74 | |
---|
[21004] | 75 | gst-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] | 80 | if !GST_DISABLE_REGISTRY |
---|
[21004] | 81 | gst_register_SOURCES = gst-run.c |
---|
[18713] | 82 | endif |
---|
[21004] | 83 | if !GST_DISABLE_LOADSAVE |
---|
| 84 | gst_complete_SOURCES = gst-run.c |
---|
| 85 | gst_compprep_SOURCES = gst-run.c |
---|
| 86 | gst_xmllaunch_SOURCES = gst-run.c |
---|
| 87 | endif |
---|
| 88 | gst_feedback_SOURCES = gst-run.c |
---|
| 89 | gst_inspect_SOURCES = gst-run.c |
---|
| 90 | gst_launch_SOURCES = gst-run.c |
---|
| 91 | gst_md5sum_SOURCES = gst-run.c |
---|
| 92 | gst_typefind_SOURCES = gst-run.c |
---|
| 93 | gst_xmlinspect_SOURCES = gst-run.c |
---|
[18713] | 94 | |
---|
[21004] | 95 | gst_inspect_@GST_MAJORMINOR@_LDADD = ../libs/gst/control/libgstcontrol-@GST_MAJORMINOR@.la |
---|
[18713] | 96 | |
---|
[21004] | 97 | gst_xmlinspect_@GST_MAJORMINOR@_LDADD = ../libs/gst/control/libgstcontrol-@GST_MAJORMINOR@.la |
---|
[18713] | 98 | |
---|
[21004] | 99 | # CFLAGS and libs for nonversioned frontend binaries |
---|
| 100 | AM_CFLAGS = $(GLIB_ONLY_CFLAGS) $(POPT_CFLAGS) |
---|
| 101 | LDADD = $(GLIB_ONLY_LIBS) $(POPT_LIBS) |
---|
| 102 | # due to depcomp not using AM_CFLAGS for rh9/yd3, we also set AM_CPPFLAGS |
---|
| 103 | AM_CPPFLAGS = $(GLIB_ONLY_CFLAGS) $(POPT_CFLAGS) |
---|
[18713] | 104 | |
---|
[21004] | 105 | ### man pages we want to install |
---|
| 106 | if GST_DISABLE_REGISTRY |
---|
| 107 | GST_REGISTRY_MAN= |
---|
| 108 | else |
---|
| 109 | GST_REGISTRY_MAN = gst-register-@GST_MAJORMINOR@.1 |
---|
[18713] | 110 | endif |
---|
| 111 | |
---|
[21004] | 112 | if GST_DISABLE_LOADSAVE |
---|
| 113 | GST_LOADSAVE_MAN= |
---|
| 114 | else |
---|
| 115 | GST_LOADSAVE_MAN = \ |
---|
| 116 | gst-complete-@GST_MAJORMINOR@.1 \ |
---|
| 117 | gst-compprep-@GST_MAJORMINOR@.1 \ |
---|
| 118 | gst-xmllaunch-@GST_MAJORMINOR@.1 |
---|
| 119 | endif |
---|
| 120 | |
---|
| 121 | GST_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 | |
---|
| 129 | manpages = $(GST_REGISTRY_MAN) $(GST_LOADSAVE_MAN) $(GST_OTHER_MAN) |
---|
| 130 | |
---|
| 131 | CLEANFILES = $(manpages) $(bin_SCRIPTS) |
---|
| 132 | man_MANS = $(manpages) |
---|
| 133 | |
---|
| 134 | # developer helper tools, not meant for installation |
---|
| 135 | noinst_SCRIPTS = gst-indent |
---|
| 136 | |
---|
| 137 | EXTRA_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 | |
---|