* ./: added some dummy files to build.
@@ -0,0 +1,34 @@ | ||
1 | +/* -*- c-file-style: ruby; indent-tabs-mode: nil -*- */ | |
2 | + | |
3 | +/* | |
4 | + * Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org> | |
5 | + * | |
6 | + * This library is free software; you can redistribute it and/or | |
7 | + * modify it under the terms of the GNU Lesser General Public | |
8 | + * License as published by the Free Software Foundation; either | |
9 | + * version 2 of the License, or (at your option) any later version. | |
10 | + * | |
11 | + * This library is distributed in the hope that it will be useful, | |
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + * GNU Lesser General Public License for more details. | |
15 | + * | |
16 | + * You should have received a copy of the GNU Lesser General Public | |
17 | + * License along with this program; if not, write to the | |
18 | + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, | |
19 | + * Boston, MA 02111-1307 USA | |
20 | + * | |
21 | + * $Id: comatz.h 923 2006-12-01 01:40:38Z ikezoe $ | |
22 | + */ | |
23 | + | |
24 | +#ifndef __RB_COMATZ_H__ | |
25 | +#define __RB_COMATZ_H__ | |
26 | + | |
27 | +#include <glib.h> | |
28 | +#include <ruby.h> | |
29 | + | |
30 | +G_BEGIN_DECLS | |
31 | + | |
32 | +G_END_DECLS | |
33 | + | |
34 | +#endif /* __RB_COMATZ_H__ */ |
@@ -4,23 +4,22 @@ | ||
4 | 4 | |
5 | 5 | EXTRA_DIST = $(ruby_lib_DATA) |
6 | 6 | |
7 | -ruby_ext_HEADERS = rbcomatz.h | |
7 | +ruby_ext_HEADERS = rb-comatz.h | |
8 | 8 | ruby_ext_LTLIBRARIES = comatz.la |
9 | 9 | |
10 | -INCLUDES = \ | |
11 | - $(COMATZ_CFLAGS) \ | |
10 | +INCLUDES = \ | |
11 | + $(COMATZ_CFLAGS) \ | |
12 | 12 | $(RUBY_CFLAGS) |
13 | 13 | |
14 | 14 | comatz_la_SOURCES = |
15 | 15 | |
16 | - | |
17 | 16 | comatz_la_LDFLAGS = \ |
18 | 17 | -module \ |
19 | - -version-info $(LT_VERSION_INFO) \ | |
18 | + -avoid-verion \ | |
20 | 19 | $(RUBY_LDFLAGS) \ |
21 | 20 | $(RUBY_EXT_LDFLAGS) |
22 | 21 | |
23 | -comatz_la_LIBADD = \ | |
24 | - $(COMATZ_LIBS) \ | |
25 | - $(RUBY_LIBS) \ | |
26 | - $(top_builddir)/lib/libcomatz.la | |
22 | +comatz_la_LIBADD = \ | |
23 | + $(COMATZ_LIBS) \ | |
24 | + $(RUBY_LIBS) \ | |
25 | + $(top_builddir)/comatz/libcomatz.la |
@@ -1,11 +1,11 @@ | ||
1 | 1 | prefix=@prefix@ |
2 | 2 | exec_prefix=@exec_prefix@ |
3 | 3 | libdir=@libdir@ |
4 | -includedir=@includedir@ | |
4 | +includedir=@includedir@/@PACKAGE@ | |
5 | 5 | |
6 | 6 | Name: coMatz |
7 | 7 | Description: Respecting for Matz and Komatsu |
8 | 8 | Version: @VERSION@ |
9 | -Requires: glib-2.0 >= 2.4 | |
9 | +Requires: glib-2.0 >= 2.6 | |
10 | 10 | Libs: -L${libdir} -lcomatz |
11 | -Cflags: -I${includedir}/comatz | |
11 | +Cflags: -I${includedir} |
@@ -222,17 +222,18 @@ | ||
222 | 222 | AM_CONDITIONAL([WITH_RUBY], [test "$ruby_available" = "yes"]) |
223 | 223 | |
224 | 224 | dnl ************************************************************** |
225 | -dnl Configure for Tomoe. | |
225 | +dnl Configure for coMatz. | |
226 | 226 | dnl ************************************************************** |
227 | 227 | |
228 | +enum_types_prefix="cm-enum-types" | |
229 | +AC_SUBST(enum_types_prefix) | |
230 | + | |
228 | 231 | COMATZ_CFLAGS="$COMATZ_CFLAGS \$(GLIB_CFLAGS)" |
229 | 232 | COMATZ_CFLAGS="$COMATZ_CFLAGS -DCONFDIR=\\\"\"\$(confdir)\"\\\"" |
230 | 233 | COMATZ_CFLAGS="$COMATZ_CFLAGS -DDATADIR=\\\"\"\$(pkgdatadir)\"\\\"" |
231 | 234 | COMATZ_CFLAGS="$COMATZ_CFLAGS -DDICT_DATADIR=\\\"\"\$(dict_datadir)\"\\\"" |
232 | -COMATZ_CFLAGS="$COMATZ_CFLAGS -DRECOGNIZER_DATADIR=\\\"\"\$(recognizer_datadir)\"\\\"" | |
233 | -COMATZ_CFLAGS="$COMATZ_CFLAGS -DDICT_MODULEDIR=\\\"\"\$(dict_moduledir)\"\\\"" | |
234 | -COMATZ_CFLAGS="$COMATZ_CFLAGS -DRECOGNIZER_MODULEDIR=\\\"\"\$(recognizer_moduledir)\"\\\"" | |
235 | -COMATZ_CFLAGS="$COMATZ_CFLAGS -I\$(top_srcdir)/lib" | |
235 | +COMATZ_CFLAGS="$COMATZ_CFLAGS -I\$(srcdir)" | |
236 | +COMATZ_CFLAGS="$COMATZ_CFLAGS -I\$(top_srcdir)" | |
236 | 237 | AC_SUBST(COMATZ_CFLAGS) |
237 | 238 | |
238 | 239 | COMATZ_LIBS='$(GLIB_LIBS)' |
@@ -0,0 +1,6 @@ | ||
1 | +2007-04-03 Kouhei Sutou <kou@cozmixng.org> | |
2 | + | |
3 | + * ./: added some dummy files to build. | |
4 | + | |
5 | + * po/: supported. | |
6 | + |
@@ -18,7 +18,7 @@ | ||
18 | 18 | ## Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
19 | 19 | ## Boston, MA 02111-1307 USA |
20 | 20 | |
21 | -SUBDIRS = ext test | |
21 | +SUBDIRS = comatz ext test | |
22 | 22 | |
23 | 23 | EXTRA_DIST = autogen.sh comatz.pc |
24 | 24 |
@@ -0,0 +1,40 @@ | ||
1 | +/* -*- mode: c; c-file-style: gnu; indent-tabs-mode: nil -*- */ | |
2 | + | |
3 | +/* | |
4 | + * Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org> | |
5 | + * | |
6 | + * This library is free software; you can redistribute it and/or | |
7 | + * modify it under the terms of the GNU Lesser General Public | |
8 | + * License as published by the Free Software Foundation; either | |
9 | + * version 2 of the License, or (at your option) any later version. | |
10 | + * | |
11 | + * This library is distributed in the hope that it will be useful, | |
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + * GNU Lesser General Public License for more details. | |
15 | + * | |
16 | + * You should have received a copy of the GNU Lesser General Public | |
17 | + * License along with this program; if not, write to the | |
18 | + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, | |
19 | + * Boston, MA 02111-1307 USA | |
20 | + * | |
21 | + * $Id: comatz.h 923 2006-12-01 01:40:38Z ikezoe $ | |
22 | + */ | |
23 | + | |
24 | +#ifndef __COMATZ_H__ | |
25 | +#define __COMATZ_H__ | |
26 | + | |
27 | +#include <glib.h> | |
28 | + | |
29 | +G_BEGIN_DECLS | |
30 | + | |
31 | +#include <comatz/cm-dict.h> | |
32 | + | |
33 | +#include <comatz/cm-enum-types.h> | |
34 | + | |
35 | +void cm_init (void); | |
36 | +void cm_quit (void); | |
37 | + | |
38 | +G_END_DECLS | |
39 | + | |
40 | +#endif /* __COMATZ_H__ */ |
@@ -0,0 +1,33 @@ | ||
1 | +/* -*- mode: c; c-file-style: gnu; indent-tabs-mode: nil -*- */ | |
2 | + | |
3 | +/* | |
4 | + * Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org> | |
5 | + * | |
6 | + * This library is free software; you can redistribute it and/or | |
7 | + * modify it under the terms of the GNU Lesser General Public | |
8 | + * License as published by the Free Software Foundation; either | |
9 | + * version 2 of the License, or (at your option) any later version. | |
10 | + * | |
11 | + * This library is distributed in the hope that it will be useful, | |
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + * GNU Lesser General Public License for more details. | |
15 | + * | |
16 | + * You should have received a copy of the GNU Lesser General Public | |
17 | + * License along with this program; if not, write to the | |
18 | + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, | |
19 | + * Boston, MA 02111-1307 USA | |
20 | + * | |
21 | + * $Id: comatz.h 923 2006-12-01 01:40:38Z ikezoe $ | |
22 | + */ | |
23 | + | |
24 | +#ifndef __CM_DICT_H__ | |
25 | +#define __CM_DICT_H__ | |
26 | + | |
27 | +#include <glib.h> | |
28 | + | |
29 | +G_BEGIN_DECLS | |
30 | + | |
31 | +G_END_DECLS | |
32 | + | |
33 | +#endif /* __CM_DICT_H__ */ |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- Mode: Makefile; tab-width: 8; indent-tabs-mode: t; -*- |
2 | 2 | |
3 | -## Makefile.am -- Process this file with automake to produce Makefile.in | |
4 | -## Copyright (C) 2005 Takuro Ashie <ashie@homa.ne.jp> | |
3 | +## Copyright (C) 2007 Hiroyuki Ikezoe | |
4 | +## Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org> | |
5 | 5 | ## |
6 | 6 | ## This library is free software; you can redistribute it and/or |
7 | 7 | ## modify it under the terms of the GNU Lesser General Public |
@@ -23,33 +23,39 @@ | ||
23 | 23 | AM_CPPFLAGS = -DG_LOG_DOMAIN=\"coMatz\" |
24 | 24 | INCLUDES = $(COMATZ_CFLAGS) |
25 | 25 | |
26 | -comatz_public_h_sources = | |
26 | +comatz_public_h_sources = \ | |
27 | + cm-dict.h | |
27 | 28 | |
28 | -enum_source_prefix = comatz-enum-types | |
29 | +enum_types_c = $(enum_types_prefix).c | |
30 | +enum_types_h = $(enum_types_prefix).h | |
31 | +enum_types_sources = \ | |
32 | + $(enum_types_c) \ | |
33 | + $(enum_types_h) | |
29 | 34 | |
30 | -enum_sources_h = \ | |
35 | +enum_sources_h = \ | |
31 | 36 | $(comatz_public_h_sources) |
32 | 37 | |
33 | -enum_sources = \ | |
34 | - $(enum_source_prefix).c \ | |
35 | - $(enum_source_prefix).h | |
38 | +BUILT_SOURCES = $(enum_types_sources) | |
36 | 39 | |
37 | -BUILT_SOURCES = $(enum_sources) | |
40 | +pkginclude_HEADERS = \ | |
41 | + comatz.h | |
38 | 42 | |
39 | -pkginclude_HEADERS = \ | |
40 | - $(comatz_public_h_sources) \ | |
41 | - $(enum_source_prefix).h | |
43 | +pkgsubincludedir = $(pkgincludedir)/comatz | |
44 | +pkgsubinclude_HEADERS = \ | |
45 | + $(comatz_public_h_sources) \ | |
46 | + $(enum_types_h) | |
42 | 47 | |
43 | 48 | lib_LTLIBRARIES = libcomatz.la |
44 | 49 | |
45 | -libcomatz_la_SOURCES = | |
50 | +libcomatz_la_SOURCES = \ | |
51 | + comatz.c \ | |
52 | + @enum_types_prefix@.c | |
46 | 53 | |
47 | 54 | libcomatz_la_LDFLAGS = \ |
48 | 55 | -version-info $(LT_VERSION_INFO) \ |
49 | 56 | -export-dynamic $(no_undefined) $(LIBTOOL_EXPORT_OPTIONS) |
50 | 57 | |
51 | -libcomatz_la_LD_ADD = \ | |
52 | - -lm | |
58 | +libcomatz_la_LD_ADD = | |
53 | 59 | |
54 | 60 | libcomatz_la_LIBADD = $(COMATZ_LIBS) |
55 | 61 |
@@ -58,10 +64,10 @@ | ||
58 | 64 | stamp-$(enum_source_prefix)-c \ |
59 | 65 | stamp-$(enum_source_prefix)-h |
60 | 66 | |
61 | -$(enum_source_prefix).c: stamp-$(enum_source_prefix)-c $(enum_source_prefix).h | |
67 | +$(enum_types_c): stamp-$(enum_types_prefix)-c $(enum_types_h) | |
62 | 68 | @true |
63 | 69 | |
64 | -stamp-$(enum_source_prefix)-c: $(enum_sources_h) Makefile | |
70 | +stamp-$(enum_types_prefix)-c: $(enum_sources_h) Makefile | |
65 | 71 | (cd $(srcdir) && \ |
66 | 72 | include_headers="" && \ |
67 | 73 | for h in $(enum_sources_h); do \ |
@@ -68,21 +74,21 @@ | ||
68 | 74 | include_headers="$${include_headers}#include \"$${h}\"\n"; \ |
69 | 75 | done && \ |
70 | 76 | $(GLIB_MKENUMS) \ |
71 | - --fhead "#include \"$(enum_source_prefix).h\"\n$${include_headers}" \ | |
77 | + --fhead "#include \"$(enum_types_h)\"\n$${include_headers}" \ | |
72 | 78 | --fprod "\n/* enumerations from \"@filename@\" */" \ |
73 | 79 | --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[] = {" \ |
74 | 80 | --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ |
75 | 81 | --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ |
76 | - $(enum_sources_h)) > tmp-$(enum_source_prefix).c && \ | |
77 | - (cmp -s tmp-$(enum_source_prefix).c $(enum_source_prefix).c || \ | |
78 | - cp tmp-$(enum_source_prefix).c $(enum_source_prefix).c ) && \ | |
79 | - rm -f tmp-$(enum_source_prefix).c && \ | |
82 | + $(enum_sources_h)) > tmp-$(enum_types_c) && \ | |
83 | + (cmp -s tmp-$(enum_types_c) $(enum_types_c) || \ | |
84 | + cp tmp-$(enum_types_c) $(enum_types_c) ) && \ | |
85 | + rm -f tmp-$(enum_types_c) && \ | |
80 | 86 | echo timestamp > $(@F) |
81 | 87 | |
82 | -$(enum_source_prefix).h: stamp-$(enum_source_prefix)-h | |
88 | +$(enum_types_h): stamp-$(enum_types_prefix)-h | |
83 | 89 | @true |
84 | 90 | |
85 | -stamp-$(enum_source_prefix)-h: $(enum_sources_h) Makefile | |
91 | +stamp-$(enum_types_prefix)-h: $(enum_sources_h) Makefile | |
86 | 92 | (cd $(srcdir) && \ |
87 | 93 | mark="__`echo $(enum_source_prefix) | sed -e 's/-/_/g' | tr a-z A-Z`_H__" && \ |
88 | 94 | $(GLIB_MKENUMS) \ |
@@ -90,8 +96,8 @@ | ||
90 | 96 | --fprod "/* enumerations from \"@filename@\" */\n" \ |
91 | 97 | --vhead "GType @enum_name@_get_type (void);\n#define COMATZ_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ |
92 | 98 | --ftail "G_END_DECLS\n\n#endif /* $${mark} */" \ |
93 | - $(enum_sources_h)) > tmp-$(enum_source_prefix).h && \ | |
94 | - (cmp -s tmp-$(enum_source_prefix).h $(enum_source_prefix).h || \ | |
95 | - cp tmp-$(enum_source_prefix).h $(enum_source_prefix).h) && \ | |
96 | - rm -f tmp-$(enum_source_prefix).h && \ | |
99 | + $(enum_sources_h)) > tmp-$(enum_types_h) && \ | |
100 | + (cmp -s tmp-$(enum_types_h) $(enum_types_h) || \ | |
101 | + cp tmp-$(enum_types_h) $(enum_types_h)) && \ | |
102 | + rm -f tmp-$(enum_types_h) && \ | |
97 | 103 | echo timestamp > $(@F) |
@@ -0,0 +1,34 @@ | ||
1 | +/* -*- mode: c; c-file-style: gnu; indent-tabs-mode: nil -*- */ | |
2 | + | |
3 | +/* | |
4 | + * Copyright (C) 2007 Kouhei Sutou <kou@cozmixng.org> | |
5 | + * | |
6 | + * This library is free software; you can redistribute it and/or | |
7 | + * modify it under the terms of the GNU Lesser General Public | |
8 | + * License as published by the Free Software Foundation; either | |
9 | + * version 2 of the License, or (at your option) any later version. | |
10 | + * | |
11 | + * This library is distributed in the hope that it will be useful, | |
12 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | + * GNU Lesser General Public License for more details. | |
15 | + * | |
16 | + * You should have received a copy of the GNU Lesser General Public | |
17 | + * License along with this program; if not, write to the | |
18 | + * Free Software Foundation, Inc., 59 Temple Place, Suite 330, | |
19 | + * Boston, MA 02111-1307 USA | |
20 | + * | |
21 | + * $Id: comatz.h 923 2006-12-01 01:40:38Z ikezoe $ | |
22 | + */ | |
23 | + | |
24 | +#include "comatz.h" | |
25 | + | |
26 | +void | |
27 | +cm_init (void) | |
28 | +{ | |
29 | +} | |
30 | + | |
31 | +void | |
32 | +cm_quit (void) | |
33 | +{ | |
34 | +} |