summaryrefslogtreecommitdiffstats
path: root/lib/Makefile.am
blob: a466599c99a5762fae1842cd0edb263b8d150b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget .

if ENABLE_MCLIB
    LIB_VERSION=`echo $(LIBMC_VERSION) | \
	tr '.' ' '| \
	while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done`

    AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE)

    lib_LTLIBRARIES = libmc.la
else
    noinst_LTLIBRARIES = libmc.la
endif


SUBLIB_includes = \
	event.h event-types.h \
	filehighlight.h \
	mcconfig.h \
	search.h \
	skin.h \
	strescape.h \
	strutil.h \
	widget.h

SRC_mc_utils = \
	utilunix.c utilunix.h \
	unixcompat.h \
	util.c util.h


libmc_la_SOURCES = \
	$(SUBLIB_includes) \
	$(SRC_mc_utils) \
	file-entry.h \
	fileloc.h \
	fs.h \
	hook.c hook.h \
	glibcompat.c glibcompat.h \
	global.c global.h \
	keybind.c keybind.h \
	lock.c lock.h \
	serialize.c serialize.h \
	shell.c shell.h \
	stat-size.h \
	timefmt.c timefmt.h

if USE_MAINTAINER_MODE
libmc_la_SOURCES += logging.c logging.h
endif

if CHARSET
libmc_la_SOURCES += charsets.c charsets.h
endif

AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir)

libmc_la_LIBADD = \
	event/libmcevent.la \
	filehighlight/libmcfilehighlight.la \
	mcconfig/libmcconfig.la \
	search/libsearch.la \
	strutil/libmcstrutil.la \
	skin/libmcskin.la \
	tty/libmctty.la \
	vfs/libmcvfs.la \
	widget/libmcwidget.la

libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB)

if HAVE_GMODULE
    libmc_la_LIBADD += $(GMODULE_LIBS)
else
    libmc_la_LIBADD += $(GLIB_LIBS)
endif