~ubuntu-branches/ubuntu/gutsy/goocanvas/gutsy

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Jose Carlos Garcia Sogo
  • Date: 2007-05-14 22:49:11 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070514224911-vyv39khpicv46oe2
Tags: 0.8-2
Link gtk-doc to /usr/share/doc/libgoocanvas-dev (Closes: #423410)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
libgoocanvas_la_LIBADD = @PACKAGE_LIBS@ $(INTLLIBS)
15
15
 
16
 
libgoocanvas_la_LDFLAGS = -version-info @VERSION_INFO@
 
16
if PLATFORM_WIN32
 
17
no_undefined = -no-undefined
 
18
endif
 
19
 
 
20
libtool_opts =                          \
 
21
  -version-info $(LT_VERSION_INFO)      \
 
22
  -export-dynamic $(no_undefined)       \
 
23
  -rpath $(libdir)
 
24
 
 
25
libgoocanvas_la_LDFLAGS = $(libtool_opts) 
17
26
 
18
27
libgoocanvasincludedir = $(includedir)/goocanvas-1.0
19
28
 
35
44
        goocanvas.h
36
45
 
37
46
libgoocanvas_la_SOURCES =               \
38
 
        goocanvasmarshal.list           \
39
47
        goocanvasatk.h                  \
40
48
        goocanvasatk.c                  \
41
49
        goocanvasellipse.c              \
45
53
        goocanvasitem.c                 \
46
54
        goocanvasitemmodel.c            \
47
55
        goocanvasitemsimple.c           \
 
56
        goocanvasmarshal.c              \
48
57
        goocanvaspolyline.c             \
49
58
        goocanvaspath.c                 \
50
59
        goocanvasprivate.h              \
56
65
        goocanvaswidget.c               \
57
66
        goocanvas.c 
58
67
 
 
68
libgoocanvas_extra_sources =            \
 
69
        goocanvasmarshal.list
 
70
 
59
71
libgoocanvas_built_headers =            \
60
72
        goocanvasenumtypes.h            \
61
73
        goocanvasmarshal.h
62
74
 
63
75
libgoocanvas_built_sources =            \
64
 
        goocanvasenumtypes.c
 
76
        goocanvasenumtypes.c            \
 
77
        goocanvasmarshal.c
 
78
 
 
79
stamp_files =                           \
 
80
        stamp-goocanvasmarshal.h        \
 
81
        stamp-goocanvasenumtypes.h
 
82
 
65
83
 
66
84
libgoocanvasinclude_HEADERS =           \
67
85
        $(libgoocanvas_public_headers)  \
68
86
        $(libgoocanvas_built_headers)
69
87
 
70
88
 
71
 
goocanvasenumtypes.h: $(goo_canvas_public_headers) Makefile
 
89
#
 
90
# Most of the stuff below has been pinched from the GTK+ Makefile.am, as
 
91
# it is tricky to get right and we know it works for GTK+.
 
92
#
 
93
 
 
94
# all autogenerated files need to be generated in the srcdir,
 
95
# so old versions get remade and are not confused with newer
 
96
# versions in the build dir. thus a development setup requires
 
97
# srcdir to be writable, passing --disable-rebuilds to
 
98
# ../configure will supress all autogeneration rules.
 
99
goocanvasmarshal.h: stamp-goocanvasmarshal.h
 
100
        @true
 
101
stamp-goocanvasmarshal.h: @REBUILD@ goocanvasmarshal.list
 
102
        $(GLIB_GENMARSHAL) --prefix=goo_canvas_marshal $(srcdir)/goocanvasmarshal.list --header >> xgen-gmlh \
 
103
        && (cmp -s xgen-gmlh goocanvasmarshal.h || cp xgen-gmlh goocanvasmarshal.h) \
 
104
        && rm -f xgen-gmlh \
 
105
        && echo timestamp > $(@F)       
 
106
goocanvasmarshal.c: @REBUILD@ goocanvasmarshal.list
 
107
        (echo "#include \"goocanvasmarshal.h\""; \
 
108
         $(GLIB_GENMARSHAL) --prefix=goo_canvas_marshal $(srcdir)/goocanvasmarshal.list --body) >> xgen-gmlc \
 
109
        && cp xgen-gmlc goocanvasmarshal.c \
 
110
        && rm -f xgen-gmlc
 
111
 
 
112
 
 
113
goocanvasenumtypes.h: stamp-goocanvasenumtypes.h        
 
114
        @true
 
115
stamp-goocanvasenumtypes.h: @REBUILD@ $(goo_canvas_public_headers) Makefile
72
116
        (cd $(srcdir) && $(GLIB_MKENUMS) \
73
117
                --fhead "#ifndef __GOO_CANVAS_ENUM_TYPES_H__\n#define __GOO_CANVAS_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
74
118
                --fprod "/* Enumerations from \"@filename@\" */\n" \
75
119
                --vhead "GType @enum_name@_get_type (void);\n#define GOO_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n\n\n" \
76
120
                --ftail "G_END_DECLS\n\n#endif /* __GOO_CANVAS_ENUM_TYPES_H__ */" \
77
 
                $(libgoocanvas_public_headers)) > $@
 
121
                $(libgoocanvas_public_headers)) >> xgen-gtbh \
 
122
        && (cmp -s xgen-gtbh goocanvasenumtypes.h || cp xgen-gtbh goocanvasenumtypes.h ) \
 
123
        && rm -f xgen-gtbh \
 
124
        && echo timestamp > $(@F)
78
125
 
79
 
goocanvasenumtypes.c: $(goo_canvas_public_headers) Makefile
 
126
goocanvasenumtypes.c: @REBUILD@ $(goo_canvas_public_headers) Makefile
80
127
        (cd $(srcdir) && $(GLIB_MKENUMS) \
81
128
                --fhead "#include <goocanvas.h>\n" \
82
129
                --fhead "#include <glib-object.h>\n" \
84
131
                --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n if( etype == 0 ) \n  {\n    static const G@Type@Value values[] = {" \
85
132
                --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
86
133
                --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values );\n  }\n  return etype;\n}\n" \
87
 
                $(libgoocanvas_public_headers)) > $@
88
 
 
89
 
 
90
 
GENMARSHAL_COMMAND = $(GLIB_GENMARSHAL) --prefix=goo_canvas_marshal
91
 
SUFFIXES = .list
92
 
 
93
 
.list.h:
94
 
        $(GENMARSHAL_COMMAND) --header $< >$@
95
 
 
96
 
.list.c:
97
 
        (echo '/* This file has been automatically generated.  Do not edit. */' && \
98
 
        echo '#include "$*.h"' && \
99
 
        $(GENMARSHAL_COMMAND) --body $< ) >$@
100
 
 
101
 
# A hint is needed to build the header first:
 
134
                $(libgoocanvas_public_headers)) > xgen-gtbc \
 
135
        && cp xgen-gtbc goocanvasenumtypes.c  \
 
136
        && rm -f xgen-gtbc
 
137
 
 
138
 
 
139
 
 
140
gen_sources = xgen-gdef xgen-gtbh xgen-gtic xgen-gmh xgen-gmc xgen-gmlh xgen-gmlc
 
141
CLEANFILES = $(gen_sources)
102
142
BUILT_SOURCES = $(libgoocanvas_built_headers) $(libgoocanvas_built_sources)
103
 
 
104
 
# Another hint, see bugs #172211 and #172212:
105
 
non-intermediate: goocanvasmarshal.c
106
 
 
107
 
CLEANFILES = $(libgoocanvas_built_headers) $(libgoocanvas_built_sources)
108
 
 
109
 
# Add this to the dist for use on Windows where glib-genmarshal may not work.
110
 
EXTRA_DIST = goocanvasmarshal.c
 
143
MAINTAINERCLEANFILES = $(BUILT_SOURCES) $(stamp_files)
 
144
EXTRA_DIST = $(BUILT_SOURCES) $(libgoocanvas_extra_sources)