a4d13364f0d4306f9469a953c21470f12aaed2e9
[claws.git] / src / plugins / tnef_parse / Makefile.am
1 EXTRA_DIST = claws.def plugin.def version.rc
2
3 if OS_WIN32
4
5 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
6      `echo $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) | \
7      sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
8
9 %.lo : %.rc
10         $(LTRCCOMPILE) -i $< -o $@
11
12 plugin_res = version.lo
13 plugin_res_ldflag = -Wl,.libs/version.o
14
15 export_symbols = -export-symbols $(srcdir)/plugin.def
16
17 plugin_deps = libclaws.a $(plugin_res) plugin.def
18
19 libclaws.a: claws.def
20         $(DLLTOOL) --output-lib $@ --def $<
21
22 plugin_ldadd = -L. -lclaws
23
24 else
25 plugin_res =
26 plugin_res_ldflag =
27 export_symbols =
28 plugin_deps =
29 plugin_ldadd =
30 endif
31
32 if PLATFORM_WIN32
33 no_undefined = -no-undefined
34 else
35 no_undefined =
36 endif
37
38 if CYGWIN
39 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
40 else
41 cygwin_export_lib = 
42 endif
43
44 plugindir = $(pkglibdir)/plugins
45
46 plugin_LTLIBRARIES = tnef_parse.la
47
48 tnef_parse_la_SOURCES = \
49          tnef_parse.c \
50          tnef_dump.c \
51          tnef_dump.h \
52          ytnef.c \
53          gettext.h
54
55 tnef_parse_la_LDFLAGS = \
56         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
57         -avoid-version -module \
58         $(GTK_LIBS)
59
60 tnef_parse_la_DEPENDENCIES = $(plugin_deps)
61
62 tnef_parse_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
63         $(GTK_LIBS)
64
65 noinst_HEADERS = \
66         mapidefs.h \
67         mapi.h \
68         mapitags.h \
69         tnef_dump.h \
70         tnef-errors.h \
71         tnef-types.h \
72         ytnef.h
73
74 INCLUDES = \
75         -I$(top_srcdir)/src \
76         -I$(top_srcdir)/src/common \
77         -I$(top_builddir)/src/common \
78         -I$(top_srcdir)/src/gtk
79
80 AM_CPPFLAGS = \
81         -Wall \
82         $(CLAWS_MAIL_CFLAGS) \
83         $(GLIB_CFLAGS) \
84         $(GTK_CFLAGS) \
85         -DLOCALEDIR=\""$(localedir)"\"