Sync with gnulib 1ff0e9684bb83a8277ffe22ac125ce7e90f6702b.
[midnight-commander.git] / tests / src / Makefile.am
bloba6ba9290fe9a99140508c50d14569aaa11747116
1 PACKAGE_STRING = "/src"
3 SUBDIRS = . filemanager vfs
5 if USE_INTERNAL_EDIT
6 SUBDIRS += editor
7 endif
9 AM_CPPFLAGS = \
10         $(GLIB_CFLAGS) \
11         -I$(top_srcdir) \
12         -I$(top_srcdir)/lib/vfs \
13         @CHECK_CFLAGS@
15 AM_LDFLAGS = @TESTS_LDFLAGS@
17 LIBS = @CHECK_LIBS@ \
18         $(top_builddir)/src/libinternal.la \
19         $(top_builddir)/lib/libmc.la
21 if ENABLE_VFS_SMB
22 # this is a hack for linking with own samba library in simple way
23 LIBS += $(top_builddir)/src/vfs/smbfs/helpers/libsamba.a
24 endif
26 if ENABLE_MCLIB
27 LIBS += $(GLIB_LIBS)
28 endif
30 EXTRA_DIST = execute__common.c
32 TESTS = \
33         execute__execute_with_vfs_arg \
34         execute__execute_external_editor_or_viewer \
35         execute__execute_get_external_cmd_opts_from_config
37 check_PROGRAMS = $(TESTS)
39 execute__execute_with_vfs_arg_SOURCES = \
40         execute__execute_with_vfs_arg.c
43 execute__execute_external_editor_or_viewer_SOURCES = \
44         execute__execute_external_editor_or_viewer.c
47 execute__execute_get_external_cmd_opts_from_config_SOURCES = \
48         execute__execute_get_external_cmd_opts_from_config.c