summaryrefslogtreecommitdiff
path: root/logview/src/Makefile.am
blob: 1fbff996a751739179bbd8ec708879dfc3068b66 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
SUBDIRS = tests

AM_CPPFLAGS =						\
	-DG_LOG_DOMAIN=\"mate-system-log\"		\
	-DMATELOCALEDIR=\""$(datadir)/locale"\"		\
	-DDATADIR=\""$(datadir)"\"			\
	-DLOGVIEWINSTALLPREFIX=\""$(prefix)/\""		\
	$(NULL)

bin_PROGRAMS = mate-system-log

BUILT_SOURCES = 		\
	logview-marshal.c	\
	logview-marshal.h	\
	logview-resources.c	\
	logview-resources.h

nodist_mate_system_log_SOURCES = \
	$(BUILT_SOURCES)

mate_system_log_SOURCES = 	\
	logview-app.c		\
	logview-app.h		\
	logview-main.c		\
	logview-about.h		\
	logview-manager.c	\
	logview-manager.h	\
	logview-utils.c		\
	logview-utils.h		\
	logview-loglist.c	\
	logview-loglist.h	\
	logview-window.c	\
	logview-window.h	\
	logview-log.h		\
	logview-log.c		\
	logview-findbar.h	\
	logview-findbar.c	\
	logview-prefs.c		\
	logview-prefs.h		\
	logview-filter.h	\
	logview-filter.c	\
	logview-filter-manager.h \
	logview-filter-manager.c

mate_system_log_CFLAGS =	\
	$(GLIB_CFLAGS)		\
	$(GTHREAD_CFLAGS)	\
	$(GIO_CFLAGS)		\
	$(GTK_CFLAGS)		\
	$(WARN_CFLAGS)		\
	$(NULL)

mate_system_log_LDADD =		\
	$(GLIB_LIBS)		\
	$(GIO_LIBS)		\
	$(GTHREAD_LIBS)		\
	$(GTK_LIBS)		\
	$(Z_LIBS)		\
	-lm

logview-marshal.h: logview-marshal.list $(GLIB_GENMARSHAL)
	$(GLIB_GENMARSHAL) $< --header --prefix=logview_marshal >> $@

logview-marshal.c: logview-marshal.list $(GLIB_GENMARSHAL)
	echo "#include \"logview-marshal.h\"" > $@ && \
	$(GLIB_GENMARSHAL) $< --body --prefix=logview_marshal >> $@

logview-resources.h logview-resources.c: $(srcdir)/../data/org.mate.system-log.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/../data $(srcdir)/../data/org.mate.system-log.gresource.xml)
	$(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir)/../data --generate --c-name logview $<

EXTRA_DIST = logview-marshal.list

CLEANFILES =			\
	$(BUILT_SOURCES)

dist-hook:
	cd $(distdir) ; rm -f $(CLEANFILES)