Makefile.am 6 KB
Newer Older
1
2
## Process this file with automake to produce Makefile.in

3
4
libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
5
libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
6

7
8
9
10
11
12
13
14
15
16
17
18
19
20
if PLATFORM_WIN32
no_undefined = -no-undefined
endif

if PLATFORM_WIN32
else
libm = -lm
endif

if OS_WIN32
gimpwidgets_def = gimpwidgets.def
libgimpwidgets_export_symbols = -export-symbols gimpwidgets.def

install-libtool-import-lib:
21
	$(INSTALL) .libs/libgimpwidgets-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
22
	$(INSTALL) gimpwidgets.def $(DESTDIR)$(libdir)
23
24

uninstall-libtool-import-lib:
25
	-rm $(DESTDIR)$(libdir)/libgimpwidgets-$(GIMP_API_VERSION).dll.a
26
	-rm $(DESTDIR)$(libdir)/gimpwidgets.def
27
28
29
30
31
32
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif

if MS_LIB_AVAILABLE
33
noinst_DATA = gimpwidgets-$(GIMP_API_VERSION).lib
34
35

install-ms-lib:
36
	$(INSTALL) gimpwidgets-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
37
38

uninstall-ms-lib:
39
	-rm $(DESTDIR)$(libdir)/gimpwidgets-$(GIMP_API_VERSION).lib
40

41
42
gimpwidgets-@GIMP_API_VERSION@.lib: gimpwidgets.def
	lib -name:libgimpwidgets-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpwidgets.def -out:$@
43
44
45
46
47
48

else
install-ms-lib:
uninstall-ms-lib:
endif

49
libgimpwidgetsincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpwidgets
50

51
AM_CPPFLAGS = \
52
	-DG_LOG_DOMAIN=\"LibGimpWidgets\"			\
53
	@GTHREAD_CFLAGS@
54

55
56
57
58
INCLUDES = \
	-I$(top_srcdir)	\
	$(GTK_CFLAGS)	\
	-I$(includedir)
59

60
lib_LTLIBRARIES = libgimpwidgets-2.0.la
61

62
libgimpwidgets_2_0_la_sources = \
63
64
65
	gimpwidgets.c		\
	gimpwidgets.h		\
	gimpwidgetstypes.h	\
66
67
	gimpbrowser.c		\
	gimpbrowser.h		\
68
69
	gimpbutton.c		\
	gimpbutton.h		\
70
71
	gimpcellrenderercolor.c	\
	gimpcellrenderercolor.h	\
72
73
	gimpcellrenderertoggle.c\
	gimpcellrenderertoggle.h\
74
75
76
77
78
79
	gimpchainbutton.c	\
	gimpchainbutton.h	\
	gimpcolorarea.c		\
	gimpcolorarea.h		\
	gimpcolorbutton.c	\
	gimpcolorbutton.h	\
80
81
	gimpcolordisplay.c	\
	gimpcolordisplay.h	\
82
83
	gimpcolordisplaystack.c	\
	gimpcolordisplaystack.h	\
84
85
	gimpenumwidgets.c	\
	gimpenumwidgets.h	\
86
87
	gimpcolorhexentry.c	\
	gimpcolorhexentry.h	\
88
89
	gimpcolornotebook.c	\
	gimpcolornotebook.h	\
90
91
	gimpcolorscale.c	\
	gimpcolorscale.h	\
92
93
	gimpcolorscales.c	\
	gimpcolorscales.h	\
94
95
96
97
	gimpcolorselector.c	\
	gimpcolorselector.h	\
	gimpcolorselect.c	\
	gimpcolorselect.h	\
98
99
	gimpcolorselection.c	\
	gimpcolorselection.h	\
100
101
	gimpcontroller.c	\
	gimpcontroller.h	\
102
103
	gimpdialog.c		\
	gimpdialog.h		\
104
105
106
107
	gimpenumstore.c		\
	gimpenumstore.h		\
	gimpenumcombobox.c	\
	gimpenumcombobox.h	\
Michael Natterer's avatar
Michael Natterer committed
108
109
	gimpfileentry.c		\
	gimpfileentry.h		\
110
111
	gimpframe.c		\
	gimpframe.h		\
112
113
	gimphelpui.c		\
	gimphelpui.h		\
114
115
	gimpintcombobox.c	\
	gimpintcombobox.h	\
116
117
	gimpintstore.c		\
	gimpintstore.h		\
118
119
	gimpmemsizeentry.c	\
	gimpmemsizeentry.h	\
120
121
	gimpoldwidgets.c	\
	gimpoldwidgets.h	\
122
123
	gimpoffsetarea.c	\
	gimpoffsetarea.h	\
124
125
	gimppatheditor.c	\
	gimppatheditor.h	\
126
127
	gimppickbutton.c	\
	gimppickbutton.h	\
128
129
	gimppixmap.c		\
	gimppixmap.h		\
130
131
	gimppreview.c		\
	gimppreview.h		\
132
133
	gimppreviewarea.c	\
	gimppreviewarea.h	\
134
135
	gimppropwidgets.c	\
	gimppropwidgets.h	\
136
137
	gimpquerybox.c		\
	gimpquerybox.h		\
138
139
	gimpscrolledpreview.c	\
	gimpscrolledpreview.h	\
140
141
	gimpsizeentry.c		\
	gimpsizeentry.h		\
142
143
	gimpstock.c		\
	gimpstock.h		\
144
	gimpunitmenu.c		\
145
	gimpunitmenu.h		\
146
147
	gimpwidgets-private.c	\
	gimpwidgets-private.h
148

149
libgimpwidgets_2_0_la_built_sources = \
150
	gimpwidgetsmarshal.c	\
151
	gimpwidgetsmarshal.h
152

153
libgimpwidgets_2_0_la_extra_sources = gimpwidgetsmarshal.list
154
155
156
157

EXTRA_DIST = \
	makefile.msc				\
	gimpwidgets.def				\
158
	$(libgimpwidgets_2_0_la_extra_sources)
159

160
161
162
libgimpwidgets_2_0_la_SOURCES = 		\
	$(libgimpwidgets_2_0_la_built_sources)	\
	$(libgimpwidgets_2_0_la_sources)
163

164
libgimpwidgetsinclude_HEADERS = \
165
166
	gimpwidgets.h		\
	gimpwidgetstypes.h	\
167
	gimpbrowser.h		\
168
	gimpbutton.h		\
Sven Neumann's avatar
Sven Neumann committed
169
170
	gimpcellrenderercolor.h	\
	gimpcellrenderertoggle.h\
171
172
173
	gimpchainbutton.h	\
	gimpcolorarea.h		\
	gimpcolorbutton.h	\
174
	gimpcolordisplay.h	\
175
	gimpcolordisplaystack.h	\
Sven Neumann's avatar
Sven Neumann committed
176
	gimpcolorhexentry.h	\
177
	gimpcolornotebook.h	\
Sven Neumann's avatar
Sven Neumann committed
178
	gimpcolorscale.h	\
179
	gimpcolorscales.h	\
180
181
	gimpcolorselector.h	\
	gimpcolorselect.h	\
182
	gimpcolorselection.h	\
183
	gimpcontroller.h	\
184
	gimpdialog.h		\
185
186
	gimpenumcombobox.h	\
	gimpenumstore.h		\
187
	gimpenumwidgets.h	\
Michael Natterer's avatar
Michael Natterer committed
188
	gimpfileentry.h		\
189
	gimpframe.h		\
190
	gimphelpui.h		\
191
	gimpintcombobox.h	\
192
	gimpintstore.h		\
193
	gimpmemsizeentry.h	\
194
	gimpoldwidgets.h	\
195
	gimpoffsetarea.h	\
196
	gimppatheditor.h	\
197
	gimppickbutton.h	\
198
	gimppixmap.h		\
199
	gimppreview.h		\
200
	gimppreviewarea.h	\
201
	gimppropwidgets.h	\
202
	gimpquerybox.h		\
203
	gimpscrolledpreview.h	\
204
	gimpsizeentry.h		\
205
	gimpstock.h		\
206
	gimpunitmenu.h
207

208
libgimpwidgets_2_0_la_LDFLAGS = \
209
210
	-version-info $(LT_VERSION_INFO)	\
	$(no_undefined) 			\
211
212
	$(libgimpwidgets_export_symbols)

213
libgimpwidgets_2_0_la_LIBADD = \
214
	$(libgimpcolor) \
215
	$(libgimpconfig) \
216
	$(libgimpbase)	\
217
218
	$(GTK_LIBS) 	\
	$(libm)
219

220
libgimpwidgets_2_0_la_DEPENDENCIES = $(gimpwidgets_def)
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239

#
# rules to generate built sources
#
# setup autogeneration dependancies
gen_sources = xgen-gwmh xgen-gwmc
CLEANFILES = $(gen_sources)

$(srcdir)/gimpwidgetsmarshal.h: $(srcdir)/gimpwidgetsmarshal.list
	$(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --header >> xgen-gwmh \
	&& (cmp -s xgen-gwmh $(@F) || cp xgen-gwmh $(@F)) \
	&& rm -f xgen-gwmh xgen-gwmh~

$(srcdir)/gimpwidgetsmarshal.c: $(srcdir)/gimpwidgetsmarshal.h
	echo "#include \"gimpwidgetsmarshal.h\"" >> xgen-gwmc \
	&& $(GLIB_GENMARSHAL) --prefix=_gimp_widgets_marshal $(srcdir)/gimpwidgetsmarshal.list --body >> xgen-gwmc \
	&& cp xgen-gwmc $(@F) \
	&& rm -f xgen-gwmc xgen-gwmc~

240
241
242
243
244

#
# test programs, not to be built by default and never installed
#

245
EXTRA_PROGRAMS = test-preview-area
246
247
248
249
250
251
252
253
254
255
256
257
258

test_preview_area_SOURCES = test-preview-area.c 

test_preview_area_DEPENDENCIES = \
	$(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la	\
	$(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la

test_preview_area_LDADD = \
	$(GTK_LIBS) \
	$(test_preview_area_DEPENDENCIES)



259
260
261
install-data-local: install-ms-lib install-libtool-import-lib

uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib