summaryrefslogtreecommitdiff
path: root/gtk-3.0/Makefile.am
blob: b6598061bf6941010ddf132dcbafc70cc352c940 (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

AM_CPPFLAGS = \
	-I$(top_srcdir) \
	-DG_LOG_DOMAIN=\"gtk-xfce-engine\" \
	$(PLATFORM_CPPFLAGS)

enginedir = $(libdir)/gtk-3.0/$(GTK3_BINARY_VERSION)/theming-engines

engine_LTLIBRARIES = libxfce.la

BUILT_SOURCES = \
	xfce_typebuiltin.c \
	xfce_typebuiltin.h

libxfce_la_SOURCES = \
	xfce_theme_main.c \
	xfce_engine.c \
	xfce_engine.h \
	xfce_style_types.h \
	xfce_typebuiltin.c \
	xfce_typebuiltin.h

libxfce_la_CFLAGS = \
	$(GTK3_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(GMODULE_CFLAGS) \
	$(PLATFORM_CFLAGS)

libxfce_la_LIBADD = \
	$(GTK3_LIBS) \
	$(GLIB_LIBS) \
	$(GMODULE_LIBS) \
	$(LIBM)

libxfce_la_LDFLAGS = \
	-module \
	-avoid-version \
	-no-undefined \
	$(PLATFORM_LDFLAGS)

CLEANFILES= $(BUILT_SOURCES)

EXTRA_DIST= \
	xfce_typebuiltin.c.template \
	xfce_typebuiltin.h.template

xfce_typebuiltin.h: xfce_style_types.h Makefile xfce_typebuiltin.h.template
	@( cd $(srcdir) && $(GLIB_MKENUMS) --template ./xfce_typebuiltin.h.template \
	./xfce_style_types.h ) >> xgen-gtbh \
	&& (cmp -s xgen-gtbh $@ || (echo "Creating $@..."; cp xgen-gtbh $@) ) \
	&& rm -f xgen-gtbh

xfce_typebuiltin.c: xfce_style_types.h Makefile xfce_typebuiltin.c.template
	@( cd $(srcdir) && $(GLIB_MKENUMS) --template ./xfce_typebuiltin.c.template \
	./xfce_style_types.h ) >> xgen-gtbc \
	&& (cmp -s xgen-gtbc $@ || (echo "Creating $@..."; cp xgen-gtbc $@) ) \
	&& rm -f xgen-gtbc