fluxbox/util/Makemodule.am
Mathias Gumz 0820bcb640 Fix build-system: use xxx_LDADD instead of xxx_LDFLAGS
xxx_LDFLAGS place the libraries like '-lX11' or '-lXft' at the beginning of
the linker command. Some systems were not able to handle the situation and
this lead to a lot of unresolved symbols. Reading the documentation of
automake:

    ... you can use LDADD to do so. This variable is used to specify
    additional objects or libraries to link with; it is inappropriate for
    specifying specific linker flags, you should use AM_LDFLAGS for this
    purpose.

In addition we link against -lm in order to satisfy symbols refering to 'cos'
and 'sin'.
2015-01-04 16:21:02 +01:00

57 lines
1 KiB
Text

# util/Makefile.am for Fluxbox
bin_SCRIPTS = \
util/fbsetbg \
util/fluxbox-generate_menu \
util/startfluxbox
EXTRA_DIST += \
util/fbsetbg
PATHFILES += \
util/startfluxbox \
util/fluxbox-generate_menu
bin_PROGRAMS += \
fbsetroot \
fluxbox-remote \
fluxbox-update_configs
fbsetroot_SOURCES = \
src/FbAtoms.cc \
src/FbRootWindow.cc \
util/fbsetroot.cc \
util/fbsetroot.hh
fbsetroot_LDADD = \
libFbTk.a \
$(FONTCONFIG_LIBS) \
$(FRIBIDI_LIBS) \
$(X11_LIBS) \
$(XFT_LIBS) \
$(XRENDER_LIBS)
fbsetroot_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(fbtk_incdir) \
-I$(src_incdir) \
-I$(nls_incdir)
fluxbox_update_configs_SOURCES = \
src/defaults.cc \
src/Resources.cc \
util/fluxbox-update_configs.cc
fluxbox_update_configs_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(fbtk_incdir) \
-I$(src_incdir) \
-I$(nls_incdir)
fluxbox_update_configs_LDADD = \
libFbTk.a \
$(FRIBIDI_LIBS) \
$(X11_LIBS)
fluxbox_remote_SOURCES = \
util/fluxbox-remote.cc
fluxbox_remote_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I$(fbtk_incdir)
fluxbox_remote_LDADD = \
$(X11_LIBS)