1 INCLUDES = -DG_LOG_DOMAIN=\"hildon-widgets\" \
2 -DLOCALEDIR=\"$(localedir)\"
4 MAINTAINERCLEANFILES = Makefile.in \
10 EXTRA_DIST = hildon-marshalers.list
12 lib_LTLIBRARIES = libhildon_@PACKAGE_VERSION_MAJOR@.la
14 libhildon_@PACKAGE_VERSION_MAJOR@_la_LDFLAGS = $(HILDON_WIDGETS_LT_LDFLAGS)
16 libhildon_@PACKAGE_VERSION_MAJOR@_la_LIBADD = $(GTK_LIBS) \
21 libhildon_@PACKAGE_VERSION_MAJOR@_la_CFLAGS = $(GTK_CFLAGS) \
26 libhildon_@PACKAGE_VERSION_MAJOR@_la_SOURCES = hildon-composite-widget.c \
32 hildon-volumebar-range.c \
35 hildon-calendar-popup.c \
36 hildon-date-editor.c \
37 hildon-time-editor.c \
38 hildon-time-picker.c \
39 hildon-weekday-picker.c \
40 hildon-number-editor.c \
41 hildon-range-editor.c \
42 hildon-get-password-dialog.c \
43 hildon-set-password-dialog.c \
44 hildon-sort-dialog.c \
45 hildon-font-selection-dialog.c \
46 hildon-login-dialog.c \
47 hildon-wizard-dialog.c \
48 hildon-color-chooser.c \
49 hildon-color-button.c \
50 hildon-color-chooser-dialog.c \
52 hildon-find-toolbar.c \
57 hildon-code-dialog.c \
61 libhildon_@PACKAGE_VERSION_MAJOR@_includedir = $(includedir)/$(PACKAGE)-$(PACKAGE_VERSION_MAJOR)/$(PACKAGE)
63 libhildon_@PACKAGE_VERSION_MAJOR@_include_HEADERS = hildon-controlbar.h \
70 hildon-calendar-popup.h \
71 hildon-date-editor.h \
72 hildon-time-editor.h \
73 hildon-time-picker.h \
74 hildon-weekday-picker.h \
75 hildon-number-editor.h \
76 hildon-range-editor.h \
77 hildon-get-password-dialog.h \
78 hildon-set-password-dialog.h \
79 hildon-sort-dialog.h \
80 hildon-font-selection-dialog.h \
81 hildon-login-dialog.h \
82 hildon-wizard-dialog.h \
83 hildon-color-chooser.h \
84 hildon-color-button.h \
85 hildon-color-chooser-dialog.h \
87 hildon-find-toolbar.h \
89 hildon-input-mode-hint.h \
93 hildon-window-private.h \
94 hildon-code-dialog.h \
98 # Don't build the library until we have built the header that it needs:
99 $(OBJECTS) $(libhildon_$(PACKAGE_VERSION_MAJOR)_la_OBJECTS): hildon-enum-types.h hildon-marshalers.c hildon-marshalers.h
101 hildon-enum-types.h: @REBUILD@ $(libhildon_$(PACKAGE_VERSION_MAJOR)_include_HEADERS) Makefile
102 (cd $(srcdir) && glib-mkenums \
103 --fhead "#ifndef __HILDON_ENUM_TYPES_H__\n" \
104 --fhead "#define __HILDON_ENUM_TYPES_H__\n" \
106 --fhead "#include <glib-object.h>\n" \
108 --fhead "G_BEGIN_DECLS\n" \
110 --fprod "/* Enumerations from \"@filename@\" */\n" \
111 --vhead "GType @enum_name@_get_type (void);\n#define HILDON_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
112 --ftail "\nG_END_DECLS\n\n#endif /* __HILDON_ENUM_TYPES_H__ */" \
113 $(libhildon_$(PACKAGE_VERSION_MAJOR)_include_HEADERS)) > $@
115 hildon-enum-types.c: @REBUILD@ $(libhildon_$(PACKAGE_VERSION_MAJOR)_include_HEADERS) Makefile
116 (cd $(srcdir) && glib-mkenums \
117 --fhead "#include \"hildon-widgets.h\"\n" \
118 --fhead "#include <glib-object.h>" \
119 --fprod "\n/* enumerations from \"@filename@\" */" \
120 --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
121 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
122 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
123 $(libhildon_$(PACKAGE_VERSION_MAJOR)_include_HEADERS)) > $@
125 hildon-marshalers.h: hildon-marshalers.list
126 glib-genmarshal --prefix _hildon_marshal --header hildon-marshalers.list >hildon-marshalers.h
128 hildon-marshalers.c: hildon-marshalers.list hildon-marshalers.h
129 echo '#include "hildon-marshalers.h"' >hildon-marshalers.c
130 glib-genmarshal --prefix _hildon_marshal --body hildon-marshalers.list >>hildon-marshalers.c