From ba0cef24cb447a09ada3a625320b1e445f18b39b Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Fri, 19 Oct 2012 12:56:02 +0300 Subject: [PATCH] make internal library for testing purposes Signed-off-by: Slava Zanko --- src/Makefile.am | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 39586ba68..34a858683 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,6 +8,8 @@ if USE_DIFF SUBDIRS += diffviewer endif +noinst_LTLIBRARIES = libinternal.la + AM_CPPFLAGS = \ -DSYSCONFDIR=\""$(sysconfdir)/@PACKAGE@/"\" \ -DLIBEXECDIR=\""$(libexecdir)/@PACKAGE@/"\" \ @@ -35,11 +37,14 @@ if USE_DIFF DIFFLIB = diffviewer/libdiffviewer.la endif -mc_LDADD = \ +libinternal_la_LIBADD = \ + filemanager/libmcfilemanager.la \ vfs/libmc-vfs.la \ viewer/libmcviewer.la \ - filemanager/libmcfilemanager.la \ - $(DIFFLIB) $(EDITLIB) \ + $(DIFFLIB) $(EDITLIB) + +mc_LDADD = \ + libinternal.la \ $(top_builddir)/lib/libmc.la if ENABLE_VFS_SMB @@ -51,6 +56,9 @@ SRC_mc_conssaver = \ cons.handler.c consaver/cons.saver.h mc_SOURCES = \ + main.c + +libinternal_la_SOURCES = \ $(SRC_mc_conssaver) \ args.c args.h \ clipboard.c clipboard.h \ @@ -60,18 +68,17 @@ mc_SOURCES = \ history.h \ keybind-defaults.c keybind-defaults.h \ learn.c learn.h \ - main.c \ setup.c setup.h \ subshell.c subshell.h \ textconf.c textconf.h \ util.c util.h if CHARSET - mc_SOURCES += selcodepage.c selcodepage.h + libinternal_la_SOURCES += selcodepage.c selcodepage.h endif if ENABLE_BACKGROUND - mc_SOURCES += background.c background.h + libinternal_la_SOURCES += background.c background.h endif EXTRA_DIST = $(SRC_maintainer) $(SRC_charset) -- 2.11.4.GIT