GTK+ plugin: implementation of edit window. No save available yet, just look.
[lxde/lxhotkey.git] / plugins / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 ## common flags for all plugins
4 AM_CPPFLAGS = \
5         -I$(top_srcdir) \
6         -I$(top_srcdir)/src \
7         $(PACKAGE_CFLAGS)
8
9 AM_LDFLAGS = \
10         -module -avoid-version -shared -export-dynamic -no-undefined \
11         -rpath $(libdir)/lxhotkey $(PACKAGE_LIBS)
12
13 ## modules list
14 pkglibdir = $(libdir)/lxhotkey
15 pkglib_LTLIBRARIES = ob.la
16 if WITH_GTK
17 pkglib_LTLIBRARIES += gtk.la
18 endif
19
20 ## Openbox module
21 ob_la_SOURCES = openbox/openbox.c
22 ob_la_LIBADD = -lfm-extra
23
24 # GTK module
25 gtk_la_SOURCES = gtk/gtk.c gtk/edit.c
26 gtk_la_CFLAGS = $(GTK_CFLAGS)
27 gtk_la_LIBADD = $(GTK_LIBS)
28
29
30 # .desktop files
31 desktopdir=$(datadir)/applications
32 desktop_in_files =
33 if WITH_GTK
34 desktop_in_files += gtk/lxhotkey-gtk.desktop.in
35 endif
36 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
37 @INTLTOOL_DESKTOP_RULE@
38
39 EXTRA_DIST= \
40         gtk/lxhotkey-gtk.desktop.in gtk/lxhotkey-gtk.desktop \
41         gtk/edit.h
42
43 install-exec-hook:
44         rm -f $(DESTDIR)$(pkglibdir)/*.la
45
46 PLUGINS_INSTALLED = $(pkglib_LTLIBRARIES:.la=.so)
47 uninstall-hook:
48         cd $(DESTDIR)$(pkglibdir) && rm -f $(PLUGINS_INSTALLED) || true