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