summaryrefslogtreecommitdiff
path: root/trashapplet/src/Makefile.am
blob: 6cb5ef0aa2652ddf392e6557f3c292ae62227d5e (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
AM_CPPFLAGS = -I$(top_srcdir)	\
	$(MATE_APPLETS4_CFLAGS)	\
	$(GIO_CFLAGS)		\
	-DGRESOURCE=\""/org/mate/mate-applets/trash/\"" \
	${WARN_CFLAGS}

BUILT_SOURCES =			\
	trashapplet-resources.c	\
	trashapplet-resources.h	\
	$(NULL)
APPLET_SOURCES =	\
	trashapplet.c	\
	trash-empty.h	\
	trash-empty.c	\
	xstuff.c	\
	xstuff.h	\
	$(NULL)

APPLET_LIBS = 			\
	$(MATE_APPLETS4_LIBS)	\
	$(GIO_LIBS)		\
	-lX11

if ENABLE_IN_PROCESS
pkglib_LTLIBRARIES = libmate-trash-applet.la
nodist_libmate_trash_applet_la_SOURCES = $(BUILT_SOURCES)
libmate_trash_applet_la_SOURCES = $(APPLET_SOURCES)
libmate_trash_applet_la_CFLAGS = $(AM_CFLAGS)
libmate_trash_applet_la_LDFLAGS = -module -avoid-version
libmate_trash_applet_la_LIBADD = $(APPLET_LIBS)
else !ENABLE_IN_PROCESS
libexec_PROGRAMS = trashapplet
nodist_trashapplet_SOURCES = $(BUILT_SOURCES)
trashapplet_SOURCES = $(APPLET_SOURCES)
trashapplet_CFLAGS = $(AM_CFLAGS)
trashapplet_LDADD = $(APPLET_LIBS)
endif !ENABLE_IN_PROCESS

trashapplet-resources.c: ../data/trashapplet-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data/ --generate-dependencies $(srcdir)/../data/trashapplet-resources.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data/ --generate --c-name trashapplet $<

trashapplet-resources.h: ../data/trashapplet-resources.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/../data/ --generate-dependencies $(srcdir)/../data/trashapplet-resources.gresource.xml)
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/../data/ --generate --c-name trashapplet $<

CLEANFILES =			\
	$(BUILT_SOURCES)	\
	$(NULL)

-include $(top_srcdir)/git.mk