~ubuntu-branches/ubuntu/hoary/gimp/hoary

« back to all changes in this revision

Viewing changes to libgimpwidgets/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-04-04 14:51:23 UTC
  • Revision ID: james.westby@ubuntu.com-20050404145123-9py049eeelfymur8
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to produce Makefile.in
 
2
 
 
3
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
 
4
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
 
5
 
 
6
if PLATFORM_WIN32
 
7
no_undefined = -no-undefined
 
8
endif
 
9
 
 
10
if PLATFORM_WIN32
 
11
else
 
12
libm = -lm
 
13
endif
 
14
 
 
15
if OS_WIN32
 
16
gimpwidgets_def = gimpwidgets.def
 
17
libgimpwidgets_export_symbols = -export-symbols gimpwidgets.def
 
18
 
 
19
install-libtool-import-lib:
 
20
        $(INSTALL) .libs/libgimpwidgets-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
 
21
        $(INSTALL) gimpwidgets.def $(DESTDIR)$(libdir)
 
22
 
 
23
uninstall-libtool-import-lib:
 
24
        -rm $(DESTDIR)$(libdir)/libgimpwidgets-$(GIMP_API_VERSION).dll.a
 
25
        -rm $(DESTDIR)$(libdir)/gimpwidgets.def
 
26
else
 
27
install-libtool-import-lib:
 
28
uninstall-libtool-import-lib:
 
29
endif
 
30
 
 
31
if MS_LIB_AVAILABLE
 
32
noinst_DATA = gimpwidgets-$(GIMP_API_VERSION).lib
 
33
 
 
34
install-ms-lib:
 
35
        $(INSTALL) gimpwidgets-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
 
36
 
 
37
uninstall-ms-lib:
 
38
        -rm $(DESTDIR)$(libdir)/gimpwidgets-$(GIMP_API_VERSION).lib
 
39
 
 
40
gimpwidgets-@GIMP_API_VERSION@.lib: gimpwidgets.def
 
41
        lib -name:libgimpwidgets-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpwidgets.def -out:$@
 
42
 
 
43
else
 
44
install-ms-lib:
 
45
uninstall-ms-lib:
 
46
endif
 
47
 
 
48
libgimpwidgetsincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpwidgets
 
49
 
 
50
AM_CPPFLAGS = \
 
51
        -DG_LOG_DOMAIN=\"LibGimpWidgets\"                       \
 
52
        @GIMP_THREAD_FLAGS@
 
53
 
 
54
INCLUDES = \
 
55
        -I$(top_srcdir) \
 
56
        $(GTK_CFLAGS)   \
 
57
        -I$(includedir)
 
58
 
 
59
lib_LTLIBRARIES = libgimpwidgets-2.0.la
 
60
 
 
61
libgimpwidgets_2_0_la_sources = \
 
62
        gimpwidgets.c           \
 
63
        gimpwidgets.h           \
 
64
        gimpwidgetstypes.h      \
 
65
        gimpbutton.c            \
 
66
        gimpbutton.h            \
 
67
        gimpcellrenderercolor.c \
 
68
        gimpcellrenderercolor.h \
 
69
        gimpcellrenderertoggle.c\
 
70
        gimpcellrenderertoggle.h\
 
71
        gimpchainbutton.c       \
 
72
        gimpchainbutton.h       \
 
73
        gimpcolorarea.c         \
 
74
        gimpcolorarea.h         \
 
75
        gimpcolorbutton.c       \
 
76
        gimpcolorbutton.h       \
 
77
        gimpcolordisplay.c      \
 
78
        gimpcolordisplay.h      \
 
79
        gimpcolordisplaystack.c \
 
80
        gimpcolordisplaystack.h \
 
81
        gimpcolorhexentry.c     \
 
82
        gimpcolorhexentry.h     \
 
83
        gimpcolornotebook.c     \
 
84
        gimpcolornotebook.h     \
 
85
        gimpcolorscale.c        \
 
86
        gimpcolorscale.h        \
 
87
        gimpcolorscales.c       \
 
88
        gimpcolorscales.h       \
 
89
        gimpcolorselector.c     \
 
90
        gimpcolorselector.h     \
 
91
        gimpcolorselect.c       \
 
92
        gimpcolorselect.h       \
 
93
        gimpcolorselection.c    \
 
94
        gimpcolorselection.h    \
 
95
        gimpcontroller.c        \
 
96
        gimpcontroller.h        \
 
97
        gimpdialog.c            \
 
98
        gimpdialog.h            \
 
99
        gimpfileentry.c         \
 
100
        gimpfileentry.h         \
 
101
        gimpframe.c             \
 
102
        gimpframe.h             \
 
103
        gimphelpui.c            \
 
104
        gimphelpui.h            \
 
105
        gimpintcombobox.c       \
 
106
        gimpintcombobox.h       \
 
107
        gimpintstore.c          \
 
108
        gimpintstore.h          \
 
109
        gimpmemsizeentry.c      \
 
110
        gimpmemsizeentry.h      \
 
111
        gimpoldwidgets.c        \
 
112
        gimpoldwidgets.h        \
 
113
        gimpoffsetarea.c        \
 
114
        gimpoffsetarea.h        \
 
115
        gimppatheditor.c        \
 
116
        gimppatheditor.h        \
 
117
        gimppickbutton.c        \
 
118
        gimppickbutton.h        \
 
119
        gimppixmap.c            \
 
120
        gimppixmap.h            \
 
121
        gimppreview.c           \
 
122
        gimppreview.h           \
 
123
        gimppreviewarea.c       \
 
124
        gimppreviewarea.h       \
 
125
        gimpquerybox.c          \
 
126
        gimpquerybox.h          \
 
127
        gimpscrolledpreview.c   \
 
128
        gimpscrolledpreview.h   \
 
129
        gimpsizeentry.c         \
 
130
        gimpsizeentry.h         \
 
131
        gimpstock.c             \
 
132
        gimpstock.h             \
 
133
        gimpunitmenu.c          \
 
134
        gimpunitmenu.h          \
 
135
        gimpwidgets-private.c   \
 
136
        gimpwidgets-private.h
 
137
 
 
138
libgimpwidgets_2_0_la_built_sources = \
 
139
        gimpwidgetsmarshal.c    \
 
140
        gimpwidgetsmarshal.h
 
141
 
 
142
libgimpwidgets_2_0_la_extra_sources = gimpwidgetsmarshal.list
 
143
 
 
144
EXTRA_DIST = \
 
145
        makefile.msc                            \
 
146
        gimpwidgets.def                         \
 
147
        $(libgimpwidgets_2_0_la_extra_sources)
 
148
 
 
149
libgimpwidgets_2_0_la_SOURCES =                 \
 
150
        $(libgimpwidgets_2_0_la_built_sources)  \
 
151
        $(libgimpwidgets_2_0_la_sources)
 
152
 
 
153
libgimpwidgetsinclude_HEADERS = \
 
154
        gimpwidgets.h           \
 
155
        gimpwidgetstypes.h      \
 
156
        gimpbutton.h            \
 
157
        gimpcellrenderercolor.h \
 
158
        gimpcellrenderertoggle.h\
 
159
        gimpchainbutton.h       \
 
160
        gimpcolorarea.h         \
 
161
        gimpcolorbutton.h       \
 
162
        gimpcolordisplay.h      \
 
163
        gimpcolordisplaystack.h \
 
164
        gimpcolorhexentry.h     \
 
165
        gimpcolornotebook.h     \
 
166
        gimpcolorscale.h        \
 
167
        gimpcolorscales.h       \
 
168
        gimpcolorselector.h     \
 
169
        gimpcolorselect.h       \
 
170
        gimpcolorselection.h    \
 
171
        gimpcontroller.h        \
 
172
        gimpdialog.h            \
 
173
        gimpfileentry.h         \
 
174
        gimpframe.h             \
 
175
        gimphelpui.h            \
 
176
        gimpintcombobox.h       \
 
177
        gimpintstore.h          \
 
178
        gimpmemsizeentry.h      \
 
179
        gimpoldwidgets.h        \
 
180
        gimpoffsetarea.h        \
 
181
        gimppatheditor.h        \
 
182
        gimppickbutton.h        \
 
183
        gimppixmap.h            \
 
184
        gimppreview.h           \
 
185
        gimppreviewarea.h       \
 
186
        gimpquerybox.h          \
 
187
        gimpscrolledpreview.h   \
 
188
        gimpsizeentry.h         \
 
189
        gimpstock.h             \
 
190
        gimpunitmenu.h
 
191
 
 
192
libgimpwidgets_2_0_la_LDFLAGS = \
 
193
        -version-info $(LT_VERSION_INFO)        \
 
194
        $(no_undefined)                         \
 
195
        $(libgimpwidgets_export_symbols)
 
196
 
 
197
libgimpwidgets_2_0_la_LIBADD = \
 
198
        $(libgimpbase)  \
 
199
        $(libgimpcolor) \
 
200
        $(GTK_LIBS)     \
 
201
        $(libm)
 
202
 
 
203
libgimpwidgets_2_0_la_DEPENDENCIES = $(gimpwidgets_def)
 
204
 
 
205
#
 
206
# rules to generate built sources
 
207
#
 
208
# setup autogeneration dependancies
 
209
gen_sources = xgen-gwmh xgen-gwmc
 
210
CLEANFILES = $(gen_sources)
 
211
 
 
212
$(srcdir)/gimpwidgetsmarshal.h: $(srcdir)/gimpwidgetsmarshal.list
 
213
        $(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --header >> xgen-gwmh \
 
214
        && (cmp -s xgen-gwmh $(@F) || cp xgen-gwmh $(@F)) \
 
215
        && rm -f xgen-gwmh xgen-gwmh~
 
216
 
 
217
$(srcdir)/gimpwidgetsmarshal.c: $(srcdir)/gimpwidgetsmarshal.h
 
218
        echo "#include \"gimpwidgetsmarshal.h\"" >> xgen-gwmc \
 
219
        && $(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --body >> xgen-gwmc \
 
220
        && cp xgen-gwmc $(@F) \
 
221
        && rm -f xgen-gwmc xgen-gwmc~
 
222
 
 
223
 
 
224
#
 
225
# test programs, not to be built by default and never installed
 
226
#
 
227
 
 
228
EXTRA_PROGRAMS = test-preview-area
 
229
 
 
230
test_preview_area_SOURCES = test-preview-area.c 
 
231
 
 
232
test_preview_area_DEPENDENCIES = \
 
233
        $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la  \
 
234
        $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
 
235
 
 
236
test_preview_area_LDADD = \
 
237
        $(GTK_LIBS) \
 
238
        $(test_preview_area_DEPENDENCIES)
 
239
 
 
240
 
 
241
 
 
242
install-data-local: install-ms-lib install-libtool-import-lib
 
243
 
 
244
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib