tar: avoid strtoul().
[midnight-commander.git] / lib / Makefile.am
blob2d60a270607b9109b9f4213fb7b873c9c50cf3c8
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         idx.h \
20         intprops-internal.h
21         mcconfig.h \
22         search.h \
23         skin.h \
24         strutil.h \
25         widget.h
27 SRC_mc_utils = \
28         utilunix.c \
29         unixcompat.h \
30         util.c util.h
33 libmc_la_SOURCES = \
34         $(SUBLIB_includes) \
35         $(SRC_mc_utils) \
36         file-entry.h \
37         fileloc.h \
38         fs.h \
39         hook.c hook.h \
40         glibcompat.c glibcompat.h \
41         global.c global.h \
42         keybind.c keybind.h \
43         lock.c lock.h \
44         serialize.c serialize.h \
45         shell.c shell.h \
46         stat-size.h \
47         timefmt.c timefmt.h
49 if USE_MAINTAINER_MODE
50 libmc_la_SOURCES += logging.c logging.h
51 endif
53 if CHARSET
54 libmc_la_SOURCES += charsets.c charsets.h
55 endif
57 EXTRA_DIST = \
58         stdckdint.in.h
60 AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)
62 libmc_la_LIBADD = \
63         event/libmcevent.la \
64         filehighlight/libmcfilehighlight.la \
65         mcconfig/libmcconfig.la \
66         search/libsearch.la \
67         strutil/libmcstrutil.la \
68         skin/libmcskin.la \
69         tty/libmctty.la \
70         vfs/libmcvfs.la \
71         widget/libmcwidget.la
73 libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)
75 if HAVE_GMODULE
76     libmc_la_LIBADD += $(GMODULE_LIBS)
77 else
78     libmc_la_LIBADD += $(GLIB_LIBS)
79 endif