summaryrefslogtreecommitdiff
path: root/plugins/thunar-tpa/Makefile.am
blob: dd093ec1c79ae2a1f7e828d8316af3a2fe09c7db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
AM_CPPFLAGS =								\
	-I$(top_builddir)						\
	-I$(top_builddir)/plugins				\
	-I$(top_srcdir)							\
	-I$(top_srcdir)/plugins					\
	-DG_LOG_DOMAIN=\"libthunar-tpa\"		\
	$(PLATFORM_CPPFLAGS)

plugindir = $(libdir)/xfce4/panel/plugins
plugin_LTLIBRARIES =							\
	libthunar-tpa.la

libthunar_tpa_la_SOURCES =						\
	thunar-tpa.c								\
	thunar-tpa-bindings.c						\
	thunar-tpa-bindings.h

libthunar_tpa_la_CFLAGS =						\
	$(LIBXFCE4UI_CFLAGS)						\
	$(LIBXFCE4UTIL_CFLAGS)						\
	$(LIBXFCE4PANEL_CFLAGS)						\
	$(PLATFORM_CFLAGS)

libthunar_tpa_la_LIBADD =						\
	$(LIBXFCE4UTIL_LIBS)						\
	$(LIBXFCE4UI_LIBS)							\
	$(LIBXFCE4PANEL_LIBS)

libthunar_tpa_la_LDFLAGS =					\
	-avoid-version							\
	-module									\
	-no-undefined							\
	-export-symbols-regex '^xfce_panel_module_(preinit|init|construct)' \
	$(PLATFORM_LDFLAGS)

desktopdir = $(datadir)/xfce4/panel/plugins
desktop_in_files = thunar-tpa.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@

if MAINTAINER_MODE
BUILT_SOURCES =								\
	thunar-tpa-bindings.c					\
	thunar-tpa-bindings.h

DISTCLEANFILES =							\
	thunar-tpa-bindings.c					\
	thunar-tpa-bindings.h

thunar-tpa-bindings.c thunar-tpa-bindings.h: $(srcdir)/thunar-tpa-bindings.xml Makefile
	$(AM_V_GEN) gdbus-codegen --generate-c-code thunar-tpa-bindings --c-namespace thunarTPA --interface-prefix org.xfce. $(srcdir)/thunar-tpa-bindings.xml
endif

EXTRA_DIST =								\
	$(desktop_in_files)						\
	thunar-tpa-bindings.xml					\
	README

CLEANFILES =								\
	$(desktop_DATA)

# vi:set ts=8 sw=8 noet ai nocindent syntax=automake: