2014-11-03 00:46:09 +08:00
|
|
|
plugindir = $(libdir)/xfce4/panel/plugins
|
2014-11-02 23:26:08 +08:00
|
|
|
plugin_LTLIBRARIES = libnetload.la
|
2006-04-26 04:26:28 +08:00
|
|
|
|
2003-08-25 04:07:08 +08:00
|
|
|
LIBS = @LIBS@ @SOLLIBS@
|
|
|
|
|
2014-11-02 23:26:08 +08:00
|
|
|
libnetload_la_SOURCES = \
|
2006-04-26 04:26:28 +08:00
|
|
|
netload.c \
|
2012-07-15 20:30:51 +08:00
|
|
|
monitor-label.c \
|
|
|
|
monitor-label.h \
|
|
|
|
utils.c \
|
|
|
|
utils.h \
|
2006-04-26 04:26:28 +08:00
|
|
|
net.h \
|
2012-07-15 20:30:51 +08:00
|
|
|
net.c \
|
|
|
|
os.h \
|
|
|
|
wormulon.h \
|
2006-04-26 04:26:28 +08:00
|
|
|
slurm.h
|
|
|
|
|
2014-11-02 23:26:08 +08:00
|
|
|
libnetload_la_CFLAGS = \
|
2006-04-26 04:26:28 +08:00
|
|
|
-DPACKAGE_LOCALE_DIR=\"$(localedir)\" \
|
2014-11-02 23:26:08 +08:00
|
|
|
@LIBXFCE4PANEL_CFLAGS@ \
|
2012-01-07 22:53:08 +08:00
|
|
|
@LIBXFCE4UI_CFLAGS@
|
2006-04-26 04:26:28 +08:00
|
|
|
|
2014-11-02 23:26:08 +08:00
|
|
|
libnetload_la_LDFLAGS = \
|
|
|
|
-avoid-version \
|
|
|
|
-module \
|
|
|
|
-no-undefined \
|
|
|
|
-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
|
|
|
|
$(PLATFORM_LDFLAGS)
|
|
|
|
|
|
|
|
libnetload_la_LIBADD = \
|
|
|
|
@SOLLIBS@ \
|
|
|
|
@LIBXFCE4PANEL_LIBS@ \
|
2012-01-07 22:53:08 +08:00
|
|
|
@LIBXFCE4UI_LIBS@
|
2006-04-26 04:26:28 +08:00
|
|
|
|
2014-11-16 05:59:30 +08:00
|
|
|
check_PROGRAMS = commandline
|
|
|
|
commandline_SOURCES = commandline.c utils.c utils.h net.c net.h
|
|
|
|
commandline_CFLAGS = @LIBXFCE4PANEL_CFLAGS@
|
|
|
|
commandline_LDADD = @LIBXFCE4PANEL_LIBS@
|
|
|
|
|
2006-04-26 04:26:28 +08:00
|
|
|
# .desktop file
|
|
|
|
#
|
|
|
|
# Some automake trickery here. Because we cannot use $(libexecdir) in the
|
|
|
|
# automake stage, we'll use sed to get the full path into the .desktop file.
|
|
|
|
# We also need to let intltool merge the translated fields, so we add an
|
|
|
|
# additional level of indirection: a <name>.desktop.in.in file.
|
|
|
|
#
|
|
|
|
desktop_in_in_files = netload.desktop.in.in
|
|
|
|
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
|
|
|
|
|
2016-05-14 18:12:56 +08:00
|
|
|
desktopdir = $(datadir)/xfce4/panel/plugins
|
2006-04-26 04:26:28 +08:00
|
|
|
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
wormulon commandline.c \
|
|
|
|
$(desktop_in_in_files)
|
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
|
|
|
$(desktop_DATA) $(desktop_in_files)
|
|
|
|
|
|
|
|
# get full path into .desktop file
|
|
|
|
%.desktop.in: %.desktop.in.in
|
2016-05-14 18:12:56 +08:00
|
|
|
sed -e "s^@PLUGIN_PATH@^$(libexecdir)/xfce4/panel/plugins^" \
|
2006-04-26 04:26:28 +08:00
|
|
|
$< > $@
|
|
|
|
|