1 | ## Process this file with automake to produce Makefile.in |
---|
2 | |
---|
3 | # |
---|
4 | # Targets |
---|
5 | # |
---|
6 | |
---|
7 | lib_LTLIBRARIES = libgnome-2.la |
---|
8 | |
---|
9 | bin_PROGRAMS = gnome-open |
---|
10 | |
---|
11 | LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@ |
---|
12 | |
---|
13 | libgnomeincludedir = $(includedir)/libgnome-2.0/libgnome |
---|
14 | |
---|
15 | INCLUDES = \ |
---|
16 | -I.. \ |
---|
17 | -I$(srcdir)/.. \ |
---|
18 | $(WARN_CFLAGS) \ |
---|
19 | $(LIBGNOME_CFLAGS) \ |
---|
20 | -DG_DISABLE_DEPRECATED \ |
---|
21 | -DLIBGNOME_PREFIX=\""$(prefix)"\" \ |
---|
22 | -DLIBGNOME_LIBDIR=\""$(libdir)"\" \ |
---|
23 | -DLIBGNOME_DATADIR=\""$(datadir)"\" \ |
---|
24 | -DLIBGNOME_BINDIR=\""$(bindir)"\" \ |
---|
25 | -DLIBGNOME_LOCALSTATEDIR=\""$(localstatedir)"\" \ |
---|
26 | -DLIBGNOME_SYSCONFDIR=\""$(sysconfdir)"\" \ |
---|
27 | -DVERSION=\""$(VERSION)"\" \ |
---|
28 | -DGNOMEVFSVERSION=\"$(GNOME_VFS_VERSION)\" \ |
---|
29 | -DG_LOG_DOMAIN=\"Gnome\" |
---|
30 | |
---|
31 | libgnome_2_la_SOURCES = \ |
---|
32 | libgnometypebuiltins.h \ |
---|
33 | libgnometypebuiltins.c \ |
---|
34 | gnome-config.c \ |
---|
35 | gnome-sound.c \ |
---|
36 | gnome-triggers.c \ |
---|
37 | gnome-triggersP.h \ |
---|
38 | gnome-program.c \ |
---|
39 | gnome-help.c \ |
---|
40 | gnome-exec.c \ |
---|
41 | gnome-gconf.c \ |
---|
42 | gnome-gconfP.h \ |
---|
43 | gnome-i18n.c \ |
---|
44 | gnome-i18nP.h \ |
---|
45 | gnome-url.c \ |
---|
46 | gnome-util.c \ |
---|
47 | gnome-score.c \ |
---|
48 | gnome-init.c |
---|
49 | |
---|
50 | libgnome_headers = \ |
---|
51 | gnome-config.h \ |
---|
52 | gnome-sound.h \ |
---|
53 | gnome-triggers.h \ |
---|
54 | gnome-program.h \ |
---|
55 | gnome-help.h \ |
---|
56 | gnome-i18n.h \ |
---|
57 | gnome-exec.h \ |
---|
58 | gnome-gconf.h \ |
---|
59 | gnome-url.h \ |
---|
60 | gnome-util.h \ |
---|
61 | gnome-macros.h \ |
---|
62 | gnome-score.h \ |
---|
63 | gnome-init.h \ |
---|
64 | libgnome.h |
---|
65 | |
---|
66 | libgnomeinclude_HEADERS = \ |
---|
67 | libgnometypebuiltins.h \ |
---|
68 | $(libgnome_headers) |
---|
69 | |
---|
70 | gnome_open_SOURCES = \ |
---|
71 | gnome-open.c |
---|
72 | |
---|
73 | gnome_open_LDADD = \ |
---|
74 | libgnome-2.la |
---|
75 | |
---|
76 | libgnometypebuiltins.h: stamp-libgnometypebuiltins.h |
---|
77 | @true |
---|
78 | stamp-libgnometypebuiltins.h: @REBUILD@ $(libgnome_headers) |
---|
79 | (cd $(srcdir) \ |
---|
80 | && glib-mkenums \ |
---|
81 | --fhead "#ifndef __LIBGNOMETYPEBUILTINS_H__\n" \ |
---|
82 | --fhead "#define __LIBGNOMETYPEBUILTINS_H__ 1\n\n" \ |
---|
83 | --fhead "#include <libgnome/libgnome.h>\n\n" \ |
---|
84 | --fhead "G_BEGIN_DECLS\n\n" \ |
---|
85 | --ftail "G_END_DECLS\n\n" \ |
---|
86 | --ftail "#endif /* __LIBGNOMETYPEBUILTINS_H__ */\n" \ |
---|
87 | --fprod "\n/* --- @filename@ --- */" \ |
---|
88 | --eprod "#define GNOME_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \ |
---|
89 | --eprod "GType @enum_name@_get_type (void);\n" \ |
---|
90 | $(libgnome_headers) ) > xgen-gth \ |
---|
91 | && (cmp -s xgen-gth libgnometypebuiltins.h || cp xgen-gth libgnometypebuiltins.h) \ |
---|
92 | && rm -f xgen-gth \ |
---|
93 | && echo timestamp > $(@F) |
---|
94 | |
---|
95 | libgnometypebuiltins.c: @REBUILD@ $(libgnome_headers) |
---|
96 | (cd $(srcdir) \ |
---|
97 | && glib-mkenums \ |
---|
98 | --fhead "#include <glib-object.h>\n" \ |
---|
99 | --fhead "#include \"libgnometypebuiltins.h\"\n\n" \ |
---|
100 | --fprod "\n/* enumerations from \"@filename@\" */" \ |
---|
101 | --vhead "static const G@Type@Value _@enum_name@_values[] = {" \ |
---|
102 | --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ |
---|
103 | --vtail " { 0, NULL, NULL }\n};\n\n" \ |
---|
104 | --vtail "GType\n@enum_name@_get_type (void)\n{\n" \ |
---|
105 | --vtail " static GType type = 0;\n\n" \ |
---|
106 | --vtail " if (!type)\n" \ |
---|
107 | --vtail " type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \ |
---|
108 | --vtail " return type;\n}\n\n" \ |
---|
109 | $(libgnome_headers) ) > xgen-gtc \ |
---|
110 | && cp xgen-gtc $(@F) \ |
---|
111 | && rm -f xgen-gtc |
---|
112 | |
---|
113 | BUILT_SOURCES = libgnometypebuiltins.h libgnometypebuiltins.c |
---|
114 | |
---|
115 | MAINTAINERCLEANFILES = stamp-libgnometypebuiltins.h \ |
---|
116 | $(BUILT_SOURCES) |
---|
117 | CLEANFILES = xgen-gth xgen-gtc |
---|
118 | |
---|
119 | # if srcdir!=builddir, clean out maintainer-clean files from builddir |
---|
120 | # this allows dist to pass. |
---|
121 | distclean-local: |
---|
122 | if test $(srcdir) != .; then \ |
---|
123 | rm -f $(MAINTAINERCLEANFILES); \ |
---|
124 | fi |
---|
125 | |
---|
126 | EXTRA_DIST = \ |
---|
127 | libgnome-2.0.pc.in \ |
---|
128 | libgnome-2.0-uninstalled.pc.in \ |
---|
129 | parse-path.cP |
---|
130 | |
---|
131 | libgnome_2_la_LDFLAGS = \ |
---|
132 | -version-info $(LIBGNOME_CURRENT):$(LIBGNOME_REVISION):$(LIBGNOME_AGE) \ |
---|
133 | -no-undefined \ |
---|
134 | -export-symbols-regex "^[^_].*" |
---|
135 | |
---|
136 | libgnome_2_la_LIBADD = \ |
---|
137 | $(LIBGNOME_LIBS) |
---|
138 | |
---|
139 | pkgconfigdir = $(libdir)/pkgconfig |
---|
140 | pkgconfig_DATA = libgnome-2.0.pc |
---|
141 | |
---|