aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 6ddebb2c17c1a878c05571ddacc992eb18ddb332 (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
if USE_GTK3
VER=3
lib_LTLIBRARIES = libido3-0.1.la
else
VER=
lib_LTLIBRARIES = libido-0.1.la
endif

ido_built_public_sources =		\
	idotypebuiltins.h

stamp_files =				\
	idotypebuiltins.h		\
	idotypebuiltins.c

sources_h =				\
	idocalendarmenuitem.h		\
	idoentrymenuitem.h		\
	idomessagedialog.h		\
	idorange.h			\
	idoscalemenuitem.h		\
	idoswitchmenuitem.h		\
	idotimeline.h			\
	libido.h 

EXTRA_DIST =				\
	ido.list			\
	idotypebuiltins.h.template	\
	idotypebuiltins.c.template


idotypebuiltins.h: stamp-idotypebuiltins.h

stamp-idotypebuiltins.h: $(sources_h)
	( cd $(srcdir) && $(GLIB_MKENUMS) --template idotypebuiltins.h.template \
		$(sources_h) ) >> xgen-gtbh \
	&& (cmp -s xgen-gtbh idotypebuiltins.h || cp xgen-gtbh idotypebuiltins.h ) \
	&& rm -f xgen-gtbh && echo timestamp > $(@F)

idotypebuiltins.c: stamp-idotypebuiltins.h
	( cd $(srcdir) && $(GLIB_MKENUMS) --template idotypebuiltins.c.template \
		$(sources_h) ) > xgen-gtbc \
	&& cp xgen-gtbc idotypebuiltins.c && rm -f xgen-gtbc

INCLUDES =				\
	-I$(srcdir)			\
	-I$(top_srcdir)			\
	-DG_LOG_DOMAIN=\"IDO\"		\
	-DPREFIX=\"$(prefix)"\"		\
	-DLIBDIR=\"$(libdir)"\"		\
	-DG_DISABLE_DEPRECATED		\
	-DGDK_PIXBUF_DISABLE_DEPRECATED	\
	-DGDK_DISABLE_DEPRECATED

AM_CPPFLAGS =				\
	$(GCC_FLAGS)			\
	$(GTK_CFLAGS)			\
	$(MAINTAINER_CFLAGS)    \
	-Wall -Werror -Wextra -Wno-unused-parameter

AM_CFLAGS =                             \
	$(COVERAGE_CFLAGS)

libido_0_1_la_SOURCES =			\
	idotypebuiltins.c		\
	idocalendarmenuitem.c		\
	idoentrymenuitem.c		\
	idomessagedialog.c		\
	idorange.c			\
	idoscalemenuitem.c		\
	idoswitchmenuitem.c		\
	idotimeline.c                   

libido3_0_1_la_SOURCES = $(libido_0_1_la_SOURCES)

libidoincludedir=$(includedir)/libido$(VER)-0.1/libido

libidoinclude_HEADERS =			\
	idocalendarmenuitem.h		\
	idoentrymenuitem.h		\
	idomessagedialog.h		\
	idorange.h			\
	idoscalemenuitem.h		\
	idoswitchmenuitem.h		\
	idotimeline.h			\
	libido.h

libido_0_1_la_LIBADD = $(GTK_LIBS)
libido_0_1_la_LDFLAGS =                 \
	$(GTK_LT_LDFLAGS)               \
	$(COVERAGE_LDFLAGS)
libido3_0_1_la_LIBADD = $(libido_0_1_la_LIBADD)
libido3_0_1_la_LDFLAGS =                \
	$(libido_0_1_la_LDFLAGS)        \
	$(COVERAGE_LDFLAGS)

DISTCLEANFILES =			\
	stamp-idotypebuiltins.h		\
	idotypebuiltins.h		\
	idotypebuiltins.c