summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: dbcc80ad4589525ed40347c479d070094f619161 (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

INCLUDES=$(DESKTOP_FILE_UTILS_CFLAGS) -DDATADIR="\"$(datadir)\"" $(VFS_CFLAGS)	\
	-DSYSCONFDIR="\"$(sysconfdir)\""					\
	-DPREFIX="\"$(prefix)\""						\
	-D_FILE_OFFSET_BITS=64							\
	-D_GNU_SOURCE								\
	-D_LARGEFILE64_SOURCE							\
	-D_REENTRANT								\
	-D_POSIX_PTHREAD_SEMANTICS

## note that TESTS has special meaning (stuff to use in make check)
## so if adding tests not to be run in make check, don't add them to 
## TESTS
if DFU_BUILD_TESTS
TESTS_ENVIRONMENT=
TESTS=dfu-test
else
TESTS=
endif

## we use noinst_PROGRAMS not check_PROGRAMS so that we build 
## even when not doing "make check"
noinst_PROGRAMS=$(TESTS)

bin_PROGRAMS=desktop-file-validate desktop-file-install desktop-menu-tool
noinst_LTLIBRARIES = libmenu_sources.la

menu_sources=					\
	canonicalize.c				\
	canonicalize.h				\
	menu-entries.c				\
	menu-entries.h				\
	menu-layout.c				\
	menu-layout.h				\
	menu-overrides.c			\
	menu-overrides.h			\
	menu-parser.c				\
	menu-parser.h				\
	menu-process.c				\
	menu-process.h				\
	menu-tree-cache.c			\
	menu-tree-cache.h			\
	menu-util.c				\
	menu-util.h				\
	dfu-test.h

libmenu_sources_la_SOURCES=			\
	$(menu_sources)

desktop_file_validate_SOURCES=			\
	desktop_file.c				\
	desktop_file.h				\
	validate.c				\
	validate.h				\
	validator.c

desktop_file_install_SOURCES=			\
	desktop_file.c				\
	desktop_file.h				\
	validate.c				\
	validate.h				\
	install.c

desktop_menu_tool_SOURCES=			\
	desktop_file.c				\
	desktop_file.h				\
	gen-compat-tree.c			\
	validate.c				\
	validate.h				\
	vfolder-parser.c			\
	vfolder-parser.h			\
	vfolder-query.c				\
	vfolder-query.h

dfu_test_SOURCES=				\
	dfu-test.h				\
	dfu-test.c

desktop_file_validate_LDADD=$(DESKTOP_FILE_UTILS_LIBS)
desktop_file_install_LDADD= $(DESKTOP_FILE_UTILS_LIBS)
desktop_menu_tool_LDADD=$(DESKTOP_FILE_UTILS_LIBS) libmenu_sources.la
dfu_test_LDADD=$(DESKTOP_FILE_UTILS_LIBS) libmenu_sources.la

EXTRA_DIST =			\
	menu-modules.conf

if HAVE_GNOME_VFS

module_flags = -export_dynamic -avoid-version

modulesconfdir=$(sysconfdir)/gnome-vfs-2.0/modules
modulesconf_DATA = menu-modules.conf

modulesdir = $(libdir)/gnome-vfs-2.0/modules

modules_LTLIBRARIES = libmenu.la

libmenu_la_SOURCES = 				\
	menu-method.c

libmenu_la_LDFLAGS = $(module_flags)
libmenu_la_LIBADD = $(VFS_LIBS) libmenu_sources.la

endif