Merging upstream version 0.5.3.
[debian/lxappearance.git] / src / Makefile.am
index 4296a6c..fb15389 100644 (file)
@@ -1,22 +1,58 @@
 NULL=
 
-INCLUDES = \
-       -DPACKAGE_DATA_DIR=\""$(datadir)"\" \
+AM_CPPFLAGS = \
+       -I$(srcdir) \
+       -DPACKAGE_DATA_DIR=\""$(datadir)/lxappearance"\" \
+       -DPACKAGE_UI_DIR=\""$(datadir)/lxappearance/ui"\" \
+       -DPACKAGE_LIB_DIR=\""$(libdir)"\" \
        -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
-       $(PACKAGE_CFLAGS) \
        $(NULL)
 
-bin_PROGRAMS = lxappearance
+lxappearance_includedir = $(includedir)/lxappearance
+lxappearance_include_HEADERS = lxappearance.h
 
+bin_PROGRAMS = lxappearance
 lxappearance_SOURCES = \
-       main.c \
-       main-dlg.c main-dlg.h \
-       demo.c demo.h \
+       lxappearance.c \
+       lxappearance.h \
+       widget-theme.c \
+       widget-theme.h \
+       color-scheme.c \
+       color-scheme.h \
+       icon-theme.c \
+       icon-theme.h \
+       cursor-theme.c \
+       cursor-theme.h \
+       font.c \
+       font.h \
+       other.c \
+       other.h \
+       utils.c \
+       utils.h \
+       plugin.c \
+       plugin.h \
        $(NULL)
 
 lxappearance_CFLAGS = \
-       -Wl,--export-dynamic \
+       $(GTK_CFLAGS) \
+       $(XLIB_CFLAGS) \
+       $(GMODULE_CFLAGS) \
+       $(DBUS_CFLAGS) \
+       $(ADDITIONAL_FLAGS) \
        -Werror-implicit-function-declaration \
        $(NULL)
 
-lxappearance_LDADD = $(PACKAGE_LIBS) $(INTLLIBS)
+lxappearance_LDADD = \
+       $(GTK_LIBS) \
+       $(XLIB_LIBS) \
+       $(GMODULE_LIBS) \
+       $(DBUS_LIBS) \
+       $(INTLLIBS) \
+       $(NULL)
+
+
+# Little program to optimize size of xml files
+noinst_PROGRAMS=xml-purge
+xml_purge_SOURCES=xml-purge.c
+xml_purge_CFLAGS=$(GTK_CFLAGS)
+xml_purge_LDADD=$(GTK_LIBS)