Added unit test framework, and some initial unit tests.
[claws.git] / src / plugins / tnef_parse / Makefile.am
1 # Copyright 1999-2014 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
5
6 EXTRA_DIST = claws.def plugin.def version.rc
7
8 if OS_WIN32
9
10 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
11      `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
12      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
13
14 %.lo : %.rc
15         $(LTRCCOMPILE) -i $< -o $@
16
17 plugin_res = version.lo
18 plugin_res_ldflag = -Wl,.libs/version.o
19
20 export_symbols = -export-symbols $(srcdir)/plugin.def
21
22 plugin_deps = libclaws.a $(plugin_res) plugin.def
23
24 libclaws.a: claws.def
25         $(DLLTOOL) --output-lib $@ --def $<
26
27 plugin_ldadd = -L. -lclaws
28
29 else
30 plugin_res =
31 plugin_res_ldflag =
32 export_symbols =
33 plugin_deps =
34 plugin_ldadd =
35 endif
36
37 if PLATFORM_WIN32
38 no_undefined = -no-undefined
39 else
40 no_undefined =
41 endif
42
43 if CYGWIN
44 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
45 else
46 cygwin_export_lib = 
47 endif
48
49 plugindir = $(pkglibdir)/plugins
50
51 if BUILD_TNEF_PARSE_PLUGIN
52 plugin_LTLIBRARIES = tnef_parse.la
53 endif
54
55 tnef_parse_la_SOURCES = \
56          tnef_parse.c \
57          tnef_dump.c \
58          tnef_dump.h
59
60 tnef_parse_la_LDFLAGS = \
61         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
62         -avoid-version -module \
63         $(GTK_LIBS) \
64         $(YTNEF_LIBS)
65
66 tnef_parse_la_DEPENDENCIES = $(plugin_deps)
67
68 tnef_parse_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
69         $(GTK_LIBS)
70
71 IFLAGS = \
72         -I$(top_srcdir)/src \
73         -I$(top_srcdir)/src/common \
74         -I$(top_builddir)/src \
75         -I$(top_srcdir)/src/gtk
76
77 tnef_parse_la_CPPFLAGS = \
78         $(IFLAGS) \
79         $(GLIB_CFLAGS) \
80         $(GTK_CFLAGS) \
81         $(YTNEF_CFLAGS)
82
83 .PHONY: test