summaryrefslogtreecommitdiff
path: root/command/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'command/src/Makefile.am')
-rw-r--r--command/src/Makefile.am33
1 files changed, 24 insertions, 9 deletions
diff --git a/command/src/Makefile.am b/command/src/Makefile.am
index 3497672d..b8a20cc1 100644
--- a/command/src/Makefile.am
+++ b/command/src/Makefile.am
@@ -1,27 +1,41 @@
NULL =
-command_applet_libdir= $(pkglibdir)
-command_applet_lib_LTLIBRARIES=libcommand-applet.la
-
AM_CPPFLAGS = \
+ $(WARN_FLAGS) \
$(MATE_APPLETS4_CFLAGS) \
-I$(srcdir) \
$(DISABLE_DEPRECATED_CFLAGS) \
$(NULL)
-
-libcommand_applet_la_SOURCES = \
- command.c \
- ma-command.c \
- ma-command.h \
+BUILT_SOURCES = \
command-resources.c \
command-resources.h \
$(NULL)
+APPLET_SOURCES = \
+ command.c \
+ ma-command.c \
+ ma-command.h \
+ $(NULL)
-libcommand_applet_la_LIBADD = \
+APPLET_LIBS = \
$(MATE_APPLETS4_LIBS) \
$(NULL)
+if ENABLE_IN_PROCESS
+pkglib_LTLIBRARIES = libcommand-applet.la
+nodist_libcommand_applet_la_SOURCES = $(BUILT_SOURCES)
+libcommand_applet_la_SOURCES = $(APPLET_SOURCES)
+libcommand_applet_la_CFLAGS = $(AM_CFLAGS)
+libcommand_applet_la_LDFLAGS = -module -avoid-version
+libcommand_applet_la_LIBADD = $(APPLET_LIBS)
+else !ENABLE_IN_PROCESS
+libexec_PROGRAMS = command-applet
+nodist_command_applet_SOURCES = $(BUILT_SOURCES)
+command_applet_SOURCES = $(APPLET_SOURCES)
+command_applet_CFLAGS = $(AM_CFLAGS)
+command_applet_LDADD = $(APPLET_LIBS)
+endif !ENABLE_IN_PROCESS
+
command-resources.c: $(srcdir)/../data/command-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data --generate-dependencies $(srcdir)/../data/command-resources.gresource.xml)
$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name command $<
@@ -29,6 +43,7 @@ command-resources.h: $(srcdir)/../data/command-resources.gresource.xml $(shell $
$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data --generate --c-name command $<
CLEANFILES = \
+ $(BUILT_SOURCES)
$(NULL)
-include $(top_srcdir)/git.mk