2011-03-09 12:33:46 +03:00
|
|
|
SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget .
|
|
|
|
|
2011-03-04 19:07:30 +03:00
|
|
|
if ENABLE_MCLIB
|
|
|
|
LIB_VERSION=`echo $(LIBMC_VERSION) | \
|
|
|
|
tr '.' ' '| \
|
|
|
|
while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done`
|
|
|
|
|
2012-07-10 10:53:56 +04:00
|
|
|
AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE)
|
2011-03-04 19:07:30 +03:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libmc.la
|
|
|
|
else
|
|
|
|
noinst_LTLIBRARIES = libmc.la
|
|
|
|
endif
|
|
|
|
|
2010-01-07 01:45:27 +03:00
|
|
|
|
2010-01-21 16:06:15 +03:00
|
|
|
SUBLIB_includes = \
|
2011-01-17 12:44:25 +03:00
|
|
|
event.h event-types.h \
|
2010-01-21 16:06:15 +03:00
|
|
|
filehighlight.h \
|
|
|
|
mcconfig.h \
|
|
|
|
search.h \
|
2010-02-02 18:08:14 +03:00
|
|
|
skin.h \
|
2010-01-21 16:31:29 +03:00
|
|
|
strescape.h \
|
2010-11-12 11:03:57 +03:00
|
|
|
strutil.h \
|
|
|
|
widget.h
|
2010-01-21 13:47:01 +03:00
|
|
|
|
|
|
|
SRC_mc_utils = \
|
2011-02-18 16:11:57 +03:00
|
|
|
utilunix.c utilunix.h \
|
2010-01-21 13:47:01 +03:00
|
|
|
unixcompat.h \
|
|
|
|
util.c util.h
|
|
|
|
|
|
|
|
|
2010-01-20 18:11:52 +03:00
|
|
|
libmc_la_SOURCES = \
|
2010-01-21 16:06:15 +03:00
|
|
|
$(SUBLIB_includes) \
|
2010-01-21 13:47:01 +03:00
|
|
|
$(SRC_mc_utils) \
|
2010-01-21 13:30:08 +03:00
|
|
|
fileloc.h \
|
2010-01-20 18:11:52 +03:00
|
|
|
fs.h \
|
2010-11-09 11:08:20 +03:00
|
|
|
hook.c hook.h \
|
2010-01-20 18:11:52 +03:00
|
|
|
glibcompat.c glibcompat.h \
|
2011-02-10 18:02:54 +03:00
|
|
|
global.c global.h \
|
2010-11-18 12:39:09 +03:00
|
|
|
keybind.c keybind.h \
|
2010-06-09 16:24:30 +04:00
|
|
|
lock.c lock.h \
|
2011-06-06 15:55:07 +04:00
|
|
|
serialize.c serialize.h \
|
2015-11-11 15:43:11 +03:00
|
|
|
shell.c shell.h \
|
2016-04-06 13:19:59 +03:00
|
|
|
stat-size.h \
|
2020-11-22 15:40:18 +03:00
|
|
|
timefmt.c timefmt.h
|
2010-01-07 01:45:27 +03:00
|
|
|
|
2010-01-21 16:47:19 +03:00
|
|
|
if USE_MAINTAINER_MODE
|
|
|
|
libmc_la_SOURCES += logging.c logging.h
|
|
|
|
endif
|
|
|
|
|
2010-11-18 11:31:09 +03:00
|
|
|
if CHARSET
|
|
|
|
libmc_la_SOURCES += charsets.c charsets.h
|
|
|
|
endif
|
2010-01-20 18:11:52 +03:00
|
|
|
|
2016-01-08 17:05:40 +03:00
|
|
|
AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
|
2010-01-07 01:45:27 +03:00
|
|
|
|
2010-01-07 02:31:17 +03:00
|
|
|
libmc_la_LIBADD = \
|
Added new engine for universal event system.
Example:
gboolean mkdir_callback(const gchar *event_group, const gchar *event_name, gpointer init_data, gpointer event_data)
{
... /* some action for handle event */
return TRUE; /* got chance to run other callbacks for this event or */
return FALSE; /* break execution for other callbacks */
}
mc_event_add ("filesystem", "mkdir", mkdir_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", mkdir_log_callback, "some init data", NULL);
mc_event_add ("filesystem", "mkdir", third_callback, NULL, NULL);
/*
Last add - first run. In this case execution order is
* third_callback
* mkdir_log_callback
* mkdir_callback
if third_callback fuctions will return FALSE, then other callbacks
(mkdir_log_callback and mkdir_callback) never run!
*/
... /* some code */
/* for example, after pressing F7 */
mc_event_raise("filesystem", "mkdir", "some event_data... path to directory");
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-17 01:01:38 +03:00
|
|
|
event/libmcevent.la \
|
2010-01-07 02:31:17 +03:00
|
|
|
filehighlight/libmcfilehighlight.la \
|
|
|
|
mcconfig/libmcconfig.la \
|
|
|
|
search/libsearch.la \
|
2010-01-21 15:17:26 +03:00
|
|
|
strutil/libmcstrutil.la \
|
2010-01-07 02:31:17 +03:00
|
|
|
skin/libmcskin.la \
|
2010-07-22 15:55:23 +04:00
|
|
|
tty/libmctty.la \
|
2011-02-15 16:44:17 +03:00
|
|
|
vfs/libmcvfs.la \
|
2010-11-10 22:45:56 +03:00
|
|
|
widget/libmcwidget.la
|
2011-03-04 19:07:30 +03:00
|
|
|
|
|
|
|
libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
|
|
|
|
|
|
|
|
if HAVE_GMODULE
|
|
|
|
libmc_la_LIBADD += $(GMODULE_LIBS)
|
|
|
|
else
|
|
|
|
libmc_la_LIBADD += $(GLIB_LIBS)
|
|
|
|
endif
|
|
|
|
|
2019-09-12 00:58:18 +03:00
|
|
|
libmc_la_LIBADD += $(PCRE_LIBS)
|