be15aab4ab6ed3de0ae4bfb869454ca908a0092a
[claws.git] / src / gtk / Makefile.am
1 PLUGINDIR = $(pkglibdir)/plugins/
2 DOCDIR = $(docdir)
3
4 noinst_LTLIBRARIES = libclawsgtk.la
5
6 EXTRA_DIST = \
7         claws-marshal.list
8
9 libclawsgtk_la_SOURCES = \
10         about.c \
11         colorlabel.c \
12         colorsel.c \
13         combobox.c \
14         description_window.c \
15         filesel.c \
16         foldersort.c \
17         gtkaspell.c \
18         gtkutils.c \
19         gtkvscrollbutton.c \
20         icon_legend.c \
21         inputdialog.c \
22         logwindow.c \
23         manage_window.c \
24         menu.c \
25         pluginwindow.c \
26         prefswindow.c \
27         progressdialog.c \
28         quicksearch.c \
29         spell_entry.c \
30         sslcertwindow.c \
31         claws-marshal.c
32
33 clawsgtkincludedir = $(pkgincludedir)/gtk
34 clawsgtkinclude_HEADERS = \
35         about.h \
36         authors.h \
37         colorlabel.h \
38         colorsel.h \
39         combobox.h \
40         description_window.h \
41         filesel.h \
42         foldersort.h \
43         gtkaspell.h \
44         gtkutils.h \
45         gtkvscrollbutton.h \
46         headers.h \
47         icon_legend.h \
48         inputdialog.h \
49         logwindow.h \
50         manage_window.h \
51         menu.h \
52         pluginwindow.h \
53         prefswindow.h \
54         progressdialog.h \
55         quicksearch.h \
56         spell_entry.h \
57         sslcertwindow.h \
58         claws-marshal.h
59
60 if GTK2
61 libclawsgtk_la_SOURCES += \
62         gtkcmctree.c \
63         gtkcmclist.c \
64         gtkcmoptionmenu.c \
65         gtksctree.c \
66         gtkshruler.c
67
68 clawsgtkinclude_HEADERS += \
69         gtkcmctree.h \
70         gtkcmclist.h \
71         gtkcmoptionmenu.h \
72         gtksctree.h \
73         gtkshruler.h
74 endif
75
76 AM_CPPFLAGS = \
77         -I$(srcdir)/../common \
78         -I../common \
79         -I$(srcdir)/.. \
80         -I$(builddir)/.. \
81         $(GTK_CFLAGS) \
82         $(MAEMO_CFLAGS) \
83         $(ENCHANT_CFLAGS) \
84         -DPLUGINDIR=\"$(PLUGINDIR)\" \
85         -DDOCDIR=\"$(DOCDIR)\" 
86
87 libclawsgtk_la_LIBADD = \
88         ../common/libclawscommon.la \
89         $(GTK_LIBS) \
90         $(ENCHANT_LIBS) \
91         $(MAEMO_LIBS)
92
93 BUILT_SOURCES=claws-marshal.c claws-marshal.h 
94
95 claws-marshal.h: claws-marshal.list
96         $(GLIB_GENMARSHAL) $< --header --prefix=claws_marshal > $@
97
98 claws-marshal.c: claws-marshal.list
99         $(GLIB_GENMARSHAL) $< --body --prefix=claws_marshal > $@