Simplify constructing of file operation progress dialog.
[midnight-commander.git] / lib / Makefile.am
blob61b4c9bdeeade29ee315deebfb99b2710b959868
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     libmc_la_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
45 if USE_MAINTAINER_MODE
46 libmc_la_SOURCES += logging.c logging.h
47 endif
49 if CHARSET
50 libmc_la_SOURCES += charsets.c charsets.h
51 endif
53 libmc_la_CFLAGS= $(GLIB_CFLAGS) -I$(top_srcdir) $(PCRE_CFLAGS)
55 libmc_la_LIBADD = \
56         event/libmcevent.la \
57         filehighlight/libmcfilehighlight.la \
58         mcconfig/libmcconfig.la \
59         search/libsearch.la \
60         strutil/libmcstrutil.la \
61         skin/libmcskin.la \
62         tty/libmctty.la \
63         vfs/libmcvfs.la \
64         widget/libmcwidget.la
66 libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
68 if HAVE_GMODULE
69     libmc_la_LIBADD += $(GMODULE_LIBS)
70 else
71     libmc_la_LIBADD += $(GLIB_LIBS)
72 endif
74 libmc_la_LIBADD += $(PCRE_LIBS) $(LIBICONV) $(INTLLIBS)