(create_sequence): reduce variable scope, trivial refactoring.
[midnight-commander.git] / lib / Makefile.am
blobe9c39a6c20b3af2f1d8e2fe81cdc20e25652172e
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         strutil.h \
23         widget.h
25 SRC_mc_utils = \
26         utilunix.c \
27         unixcompat.h \
28         util.c util.h
31 libmc_la_SOURCES = \
32         $(SUBLIB_includes) \
33         $(SRC_mc_utils) \
34         file-entry.h \
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
47 if USE_MAINTAINER_MODE
48 libmc_la_SOURCES += logging.c logging.h
49 endif
51 if CHARSET
52 libmc_la_SOURCES += charsets.c charsets.h
53 endif
55 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
57 libmc_la_LIBADD = \
58         event/libmcevent.la \
59         filehighlight/libmcfilehighlight.la \
60         mcconfig/libmcconfig.la \
61         search/libsearch.la \
62         strutil/libmcstrutil.la \
63         skin/libmcskin.la \
64         tty/libmctty.la \
65         vfs/libmcvfs.la \
66         widget/libmcwidget.la
68 libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
70 if HAVE_GMODULE
71     libmc_la_LIBADD += $(GMODULE_LIBS)
72 else
73     libmc_la_LIBADD += $(GLIB_LIBS)
74 endif