Merge branch '3867_mcedit_c_macro'
[midnight-commander.git] / lib / Makefile.am
blobc448e2ddbafe4af69d9f7dfc1f1524f29dee493e
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         shell.c shell.h \
44         stat-size.h \
45         timefmt.c timefmt.h \
46         timer.c timer.h
48 if USE_MAINTAINER_MODE
49 libmc_la_SOURCES += logging.c logging.h
50 endif
52 if CHARSET
53 libmc_la_SOURCES += charsets.c charsets.h
54 endif
56 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
58 libmc_la_LIBADD = \
59         event/libmcevent.la \
60         filehighlight/libmcfilehighlight.la \
61         mcconfig/libmcconfig.la \
62         search/libsearch.la \
63         strutil/libmcstrutil.la \
64         skin/libmcskin.la \
65         tty/libmctty.la \
66         vfs/libmcvfs.la \
67         widget/libmcwidget.la
69 libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
71 if HAVE_GMODULE
72     libmc_la_LIBADD += $(GMODULE_LIBS)
73 else
74     libmc_la_LIBADD += $(GLIB_LIBS)
75 endif
77 libmc_la_LIBADD += $(PCRE_LIBS) $(LIBICONV) $(LIBINTL)