summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 455e846ac0b0a06c928d8779b0923a97a4b19bc3 (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
lib_LTLIBRARIES = libmarco-private.la

SUBDIRS=wm-tester tools themes

AM_CPPFLAGS = \
	-I$(srcdir)/include \
	-DMARCO_LIBEXECDIR=\"$(libexecdir)\" \
	-DHOST_ALIAS=\"@HOST_ALIAS@\" \
	-DMARCO_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" \
	-DMARCO_PKGDATADIR=\"$(pkgdatadir)\" \
	-DMARCO_DATADIR=\"$(datadir)\" \
	-DG_LOG_DOMAIN=\"marco\" \
	-DSN_API_NOT_YET_FROZEN=1 \
	@MARCO_CFLAGS@

marco_SOURCES= 				\
	core/main.c				\
	include/main.h

# by setting libmarco_private_la_CFLAGS, the files shared with
# marco proper will be compiled with different names.
libmarco_private_la_CFLAGS =
libmarco_private_la_SOURCES=			\
	core/async-getprop.c \
	core/async-getprop.h \
	core/atomnames.h \
	core/bell.c \
	core/bell.h \
	core/boxes.c \
	include/boxes.h \
	compositor/compositor.c \
	compositor/compositor-private.h \
	compositor/compositor-xrender.c \
	compositor/compositor-xrender.h \
	include/compositor.h \
	core/constraints.c \
	core/constraints.h \
	core/core.c \
	core/delete.c \
	core/display.c \
	core/display-private.h \
	include/display.h \
	ui/draw-workspace.c \
	ui/draw-workspace.h \
	core/edge-resistance.c \
	core/edge-resistance.h \
	core/effects.c \
	core/effects.h \
	core/errors.c \
	include/errors.h \
	core/eventqueue.c \
	core/eventqueue.h \
	core/frame.c \
	core/frame-private.h \
	include/frame.h \
	ui/gradient.c \
	ui/gradient.h \
	core/group-private.h \
	core/group-props.c \
	core/group-props.h \
	core/group.c \
	core/group.h \
	core/iconcache.c \
	core/iconcache.h \
	core/keybindings.c \
	core/keybindings.h \
	core/main.c \
	include/main.h \
	core/marco-Xatomtype.h \
	core/place.c \
	core/place.h \
	core/prefs.c \
	include/prefs.h \
	core/screen.c \
	core/screen-private.h \
	include/screen.h \
	include/types.h \
	core/session.c \
	core/session.h \
	core/stack.c \
	core/stack.h \
	core/util.c \
	include/util.h \
	core/window-props.c \
	core/window-props.h \
	core/window.c \
	core/window-private.h \
	include/window.h \
	core/workspace.c \
	core/workspace.h \
	core/xprops.c \
	include/xprops.h \
	core/common.c \
	include/common.h \
	include/core.h \
	include/ui.h \
	ui/fixedtip.c \
	ui/fixedtip.h \
	ui/frames.c \
	ui/frames.h \
	ui/menu.c \
	ui/menu.h \
	ui/metaaccellabel.c \
	ui/metaaccellabel.h \
	ui/preview-widget.c \
	ui/preview-widget.h \
	ui/resizepopup.c \
	include/resizepopup.h \
	ui/tabpopup.c \
	include/tabpopup.h \
	ui/tile-preview.c \
	include/tile-preview.h \
	ui/theme-parser.c \
	ui/theme-parser.h \
	ui/theme.c \
	ui/theme.h \
	ui/ui.c \
	include/all-keybindings.h

libmarco_private_la_LDFLAGS = -no-undefined -version-info 1:0:0
libmarco_private_la_LIBADD = @MARCO_LIBS@

libmarcoincludedir = $(includedir)/marco-1/marco-private

libmarcoinclude_HEADERS = \
	include/boxes.h \
	ui/gradient.h \
	include/util.h \
	include/common.h \
	ui/preview-widget.h \
	ui/theme-parser.h \
	ui/theme.h

marco_theme_viewer_SOURCES= \
	ui/theme-viewer.c

bin_PROGRAMS=marco marco-theme-viewer

marco_LDADD=@MARCO_LIBS@ libmarco-private.la
marco_theme_viewer_LDADD= @MARCO_LIBS@ libmarco-private.la

testboxes_SOURCES=include/util.h core/util.c include/boxes.h core/boxes.c core/testboxes.c
testgradient_SOURCES=ui/gradient.h ui/gradient.c ui/testgradient.c
testasyncgetprop_SOURCES=core/async-getprop.h core/async-getprop.c core/testasyncgetprop.c

noinst_PROGRAMS=testboxes testgradient testasyncgetprop

testboxes_LDADD= @MARCO_LIBS@
testgradient_LDADD= @MARCO_LIBS@
testasyncgetprop_LDADD= @MARCO_LIBS@

%.desktop: %.desktop.in
	$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@

desktopfilesdir=$(datadir)/applications
desktopfiles_in_files=marco.desktop.in
desktopfiles_files=$(desktopfiles_in_files:.desktop.in=.desktop)
desktopfiles_DATA = $(desktopfiles_files)

wmpropertiesdir=$(datadir)/mate/wm-properties
wmproperties_in_files=marco-wm.desktop.in
wmproperties_files=$(wmproperties_in_files:.desktop.in=.desktop)
wmproperties_DATA = $(wmproperties_files)

gsettings_SCHEMAS = org.mate.marco.gschema.xml
@GSETTINGS_RULES@

xmldir = @MATE_KEYBINDINGS_KEYSDIR@
xml_in_files = \
	50-marco-desktop-key.xml.in \
	50-marco-window-key.xml.in \
	50-marco-global-key.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)

%.xml: %.xml.in
	$(AM_V_GEN) GETTEXTDATADIR=$(top_srcdir) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@

BUILT_SOURCES =
CLEANFILES = \
	marco.desktop \
	marco-wm.desktop \
	50-marco-desktop-key.xml \
	50-marco-global-key.xml \
	50-marco-window-key.xml

pkgconfigdir = $(libdir)/pkgconfig

pkgconfig_DATA = libmarco-private.pc

EXTRA_DIST=$(desktopfiles_files) \
	$(wmproperties_files) \
	$(IMAGES) \
	$(gsettings_SCHEMAS) \
	$(desktopfiles_in_files) \
	$(wmproperties_in_files) \
	$(xml_in_files) \
	libmarco-private.pc.in


-include $(top_srcdir)/git.mk