(input_execute_cmd): refactoring.
[midnight-commander.git] / lib / Makefile.am
blobdb231fc85f5380603dbbd60c302a62f0a758583c
1 SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget .
3 if ENABLE_MCLIB
4     LIB_VERSION=`echo $(LIBMC_VERSION) | \
5         tr '.' ' '| \
6         while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done`
8     AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE)
10     lib_LTLIBRARIES = libmc.la
11 else
12     noinst_LTLIBRARIES = libmc.la
13 endif
16 SUBLIB_includes = \
17         event.h event-types.h \
18         filehighlight.h \
19         mcconfig.h \
20         search.h \
21         skin.h \
22         strescape.h \
23         strutil.h \
24         widget.h
26 SRC_mc_utils = \
27         utilunix.c utilunix.h \
28         unixcompat.h \
29         util.c util.h
32 libmc_la_SOURCES = \
33         $(SUBLIB_includes) \
34         $(SRC_mc_utils) \
35         fileloc.h \
36         fs.h \
37         hook.c hook.h \
38         glibcompat.c glibcompat.h \
39         global.c global.h \
40         keybind.c keybind.h \
41         lock.c lock.h \
42         serialize.c serialize.h \
43         timefmt.c timefmt.h \
44         timer.c timer.h
46 if USE_MAINTAINER_MODE
47 libmc_la_SOURCES += logging.c logging.h
48 endif
50 if CHARSET
51 libmc_la_SOURCES += charsets.c charsets.h
52 endif
54 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CPPFLAGS)
56 libmc_la_LIBADD = \
57         event/libmcevent.la \
58         filehighlight/libmcfilehighlight.la \
59         mcconfig/libmcconfig.la \
60         search/libsearch.la \
61         strutil/libmcstrutil.la \
62         skin/libmcskin.la \
63         tty/libmctty.la \
64         vfs/libmcvfs.la \
65         widget/libmcwidget.la
67 libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
69 if HAVE_GMODULE
70     libmc_la_LIBADD += $(GMODULE_LIBS)
71 else
72     libmc_la_LIBADD += $(GLIB_LIBS)
73 endif
75 libmc_la_LIBADD += $(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)