aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: 6e1d8133ef51b59e4c2a2e4b2cd313338b03c7c1 (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
CLEANFILES =

VER=3
lib_LTLIBRARIES = libido3-0.1.la

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		\
	idousermenuitem.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		\
	idousermenuitem.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) $(LIBM)
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

-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = \
        --symbol-prefix=ido \
        --warn-all \
        --identifier-prefix=Ido

if HAVE_INTROSPECTION

Ido3-0.1.gir: libido3-0.1.la
Ido3_0_1_gir_INCLUDES = Gtk-3.0
Ido3_0_1_gir_CFLAGS =
Ido3_0_1_gir_LIBS = libido3-0.1.la
Ido3_0_1_gir_FILES = \
	idocalendarmenuitem.h		\
	idoentrymenuitem.h		\
	idomessagedialog.h		\
	idorange.h			\
	idoscalemenuitem.h		\
	idoswitchmenuitem.h		\
	idotimeline.h			\
	$(libido_0_1_la_SOURCES)
Ido3_0_1_gir_NAMESPACE = Ido3
Ido3_0_1_gir_VERSION = 0.1
Ido3_0_1_gir_SCANNER_FLAGS = $(INTROSPECTION_SCANNER_ARGS)

INTROSPECTION_GIRS += Ido3-0.1.gir

girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)

typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)

CLEANFILES += $(gir_DATA) $(typelib_DATA)

endif

if HAVE_INTROSPECTION

vapidir = $(datadir)/vala/vapi
vapi_DATA = Ido3-0.1.vapi

Ido3-0.1.vapi: Ido3-0.1.gir
	$(VALA_API_GEN) --library=Ido3-0.1 \
			--pkg gtk+-3.0 \
			$<

CLEANFILES += $(vapi_DATA)

endif