Clean up LDFLAGS, LIBS, CFLAGS

Fix order, fix variables that don't exist, like GST_LIBS_LIBS,
use $(LIBM) instead of -lm, and move _LIBS from LDFLAGS to LIBADD.

Spotted by Havard Graff.
This commit is contained in:
Tim-Philipp Müller 2009-11-22 19:30:58 +00:00
parent 044e5b8b5f
commit c49cdd59ff
7 changed files with 29 additions and 22 deletions

View file

@ -2,8 +2,8 @@ plugin_LTLIBRARIES = libgstmimic.la
libgstmimic_la_SOURCES = gstmimic.c gstmimdec.c gstmimenc.c libgstmimic_la_SOURCES = gstmimic.c gstmimdec.c gstmimenc.c
libgstmimic_la_CFLAGS = $(GST_CFLAGS) $(MIMIC_CFLAGS) $(GST_BASE_CFLAGS) $(ERROR_CFLAGS) libgstmimic_la_CFLAGS = $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(MIMIC_CFLAGS)
libgstmimic_la_LIBADD = $(GST_LIBS) $(MIMIC_LIBS) libgstmimic_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(MIMIC_LIBS)
libgstmimic_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) libgstmimic_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
noinst_HEADERS = gstmimdec.h gstmimenc.h noinst_HEADERS = gstmimdec.h gstmimenc.h

View file

@ -2,8 +2,8 @@ plugin_LTLIBRARIES = libgstautoconvert.la
libgstautoconvert_la_SOURCES = gstautoconvert.c gstautoconvert.h libgstautoconvert_la_SOURCES = gstautoconvert.c gstautoconvert.h
libgstautoconvert_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS) libgstautoconvert_la_CFLAGS = $(GST_CFLAGS)
libgstautoconvert_la_LIBADD = $(GST_LIBS_LIBS) libgstautoconvert_la_LIBADD = $(GST_LIBS)
libgstautoconvert_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) libgstautoconvert_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstautoconvert_la_LIBTOOLFLAGS = --tag=disable-static libgstautoconvert_la_LIBTOOLFLAGS = --tag=disable-static

View file

@ -14,8 +14,10 @@ noinst_HEADERS = gstdtmfsrc.h \
gstrtpdtmfcommon.h \ gstrtpdtmfcommon.h \
tone_detect.h tone_detect.h
libgstdtmf_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS) -DEXTERN_BUF -DRTP_SUPPORT libgstdtmf_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
libgstdtmf_la_LIBADD = $(GST_LIBS_LIBS) -lm -DEXTERN_BUF -DRTP_SUPPORT
libgstdtmf_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstrtp-@GST_MAJORMINOR@ libgstdtmf_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-@GST_MAJORMINOR@ \
$(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
libgstdtmf_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstdtmf_la_LIBTOOLFLAGS = --tag=disable-static libgstdtmf_la_LIBTOOLFLAGS = --tag=disable-static

View file

@ -1,9 +1,11 @@
plugin_LTLIBRARIES = libgstliveadder.la plugin_LTLIBRARIES = libgstliveadder.la
libgstliveadder_la_SOURCES = liveadder.c libgstliveadder_la_SOURCES = liveadder.c
libgstliveadder_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS) libgstliveadder_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
libgstliveadder_la_LIBADD = $(GST_LIBS_LIBS) libgstliveadder_la_LIBADD = \
libgstliveadder_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstaudio-0.10 $(GST_PLUGINS_BASE_LIBS) -lgstaudio-@GST_MAJORMINOR@ \
$(GST_BASE_LIBS) $(GST_LIBS)
libgstliveadder_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstliveadder_la_LIBTOOLFLAGS = --tag=disable-static libgstliveadder_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = liveadder.h noinst_HEADERS = liveadder.h

View file

@ -2,9 +2,11 @@ plugin_LTLIBRARIES = libgstrtpmux.la
libgstrtpmux_la_SOURCES = gstrtpmuxer.c gstrtpmux.c gstrtpdtmfmux.c libgstrtpmux_la_SOURCES = gstrtpmuxer.c gstrtpmux.c gstrtpdtmfmux.c
libgstrtpmux_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS) -DEXTERN_BUF -DRTP_SUPPORT libgstrtpmux_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) \
libgstrtpmux_la_LIBADD = $(GST_LIBS_LIBS) -DEXTERN_BUF -DRTP_SUPPORT
libgstrtpmux_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) -lgstrtp-@GST_MAJORMINOR@ libgstrtpmux_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-@GST_MAJORMINOR@ \
$(GST_BASE_LIBS) $(GST_LIBS)
libgstrtpmux_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstrtpmux_la_LIBTOOLFLAGS = --tag=disable-static libgstrtpmux_la_LIBTOOLFLAGS = --tag=disable-static
noinst_HEADERS = gstrtpmux.h gstrtpdtmfmux.h noinst_HEADERS = gstrtpmux.h gstrtpdtmfmux.h

View file

@ -8,9 +8,10 @@ libgstsiren_la_SOURCES = gstsiren.c \
encoder.h huffman_consts.h rmlt.c siren7.h encoder.h huffman_consts.h rmlt.c siren7.h
libgstsiren_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS) libgstsiren_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) \
libgstsiren_la_LIBADD = $(GST_LIBS_LIBS) $(GST_BASE_LIBS) \ $(GST_CFLAGS)
-lgstrtp-@GST_MAJORMINOR@ -lm libgstsiren_la_LIBADD = $(GST_PLUGINS_BASE_LIBS) -lgstrtp-@GST_MAJORMINOR@ \
libgstsiren_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM)
libgstsiren_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstsiren_la_LIBTOOLFLAGS = --tag=disable-static libgstsiren_la_LIBTOOLFLAGS = --tag=disable-static

View file

@ -2,8 +2,8 @@ plugin_LTLIBRARIES = libgstvalve.la
libgstvalve_la_SOURCES = gstvalve.c gstvalve.h libgstvalve_la_SOURCES = gstvalve.c gstvalve.h
libgstvalve_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ERROR_CFLAGS) libgstvalve_la_CFLAGS = $(GST_CFLAGS)
libgstvalve_la_LIBADD = $(GST_LIBS_LIBS) libgstvalve_la_LIBADD = $(GST_LIBS)
libgstvalve_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) libgstvalve_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstvalve_la_LIBTOOLFLAGS = --tag=disable-static libgstvalve_la_LIBTOOLFLAGS = --tag=disable-static