Makefile.am 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. ## Process this file with automake to produce Makefile.in
  2. libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
  3. libgimpcolor = $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
  4. libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
  5. libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
  6. libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
  7. libgimp = ./libgimp-$(GIMP_API_VERSION).la
  8. if PLATFORM_WIN32
  9. no_undefined = -no-undefined
  10. endif
  11. if OS_WIN32
  12. gimp_def = gimp.def
  13. gimpui_def = gimpui.def
  14. libgimp_export_symbols = -export-symbols gimp.def
  15. libgimpui_export_symbols = -export-symbols gimpui.def
  16. install-libtool-import-lib:
  17. $(INSTALL) .libs/libgimp-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
  18. $(INSTALL) .libs/libgimpui-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
  19. $(INSTALL) gimp.def $(DESTDIR)$(libdir)
  20. $(INSTALL) gimpui.def $(DESTDIR)$(libdir)
  21. uninstall-libtool-import-lib:
  22. -rm $(DESTDIR)$(libdir)/libgimp-$(GIMP_API_VERSION).dll.a
  23. -rm $(DESTDIR)$(libdir)/libgimpui-$(GIMP_API_VERSION).dll.a
  24. -rm $(DESTDIR)$(libdir)/gimp.def
  25. -rm $(DESTDIR)$(libdir)/gimpui.def
  26. else
  27. install-libtool-import-lib:
  28. uninstall-libtool-import-lib:
  29. endif
  30. if MS_LIB_AVAILABLE
  31. noinst_DATA = gimp-$(GIMP_API_VERSION).lib gimpui-$(GIMP_API_VERSION).lib
  32. install-ms-lib:
  33. $(INSTALL) gimp-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
  34. $(INSTALL) gimpui-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
  35. uninstall-ms-lib:
  36. -rm $(DESTDIR)$(libdir)/gimp-$(GIMP_API_VERSION).lib
  37. -rm $(DESTDIR)$(libdir)/gimpui-$(GIMP_API_VERSION).lib
  38. gimp-@GIMP_API_VERSION@.lib: gimp.def
  39. lib -name:libgimp-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimp.def -out:$@
  40. gimpui-@GIMP_API_VERSION@.lib: gimpui.def
  41. lib -name:libgimpui-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpui.def -out:$@
  42. else
  43. install-ms-lib:
  44. uninstall-ms-lib:
  45. endif
  46. gimpincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimp
  47. AM_CPPFLAGS = \
  48. -DG_LOG_DOMAIN=\"LibGimp\" \
  49. -DGIMP_COMPILATION
  50. INCLUDES = \
  51. -I$(top_srcdir) \
  52. $(GTK_CFLAGS) \
  53. $(GEGL_CFLAGS) \
  54. -I$(includedir)
  55. lib_LTLIBRARIES = libgimp-@GIMP_API_VERSION@.la libgimpui-@GIMP_API_VERSION@.la
  56. PDB_WRAPPERS_C = \
  57. gimp_pdb.c \
  58. gimpbrush_pdb.c \
  59. gimpbrushes_pdb.c \
  60. gimpbrushselect_pdb.c \
  61. gimpbuffer_pdb.c \
  62. gimpchannel_pdb.c \
  63. gimpcolor_pdb.c \
  64. gimpcontext_pdb.c \
  65. gimpconvert_pdb.c \
  66. gimpdisplay_pdb.c \
  67. gimpdrawable_pdb.c \
  68. gimpdrawabletransform_pdb.c \
  69. gimpdynamics_pdb.c \
  70. gimpedit_pdb.c \
  71. gimpfileops_pdb.c \
  72. gimpfloatingsel_pdb.c \
  73. gimpfonts_pdb.c \
  74. gimpfontselect_pdb.c \
  75. gimpgimprc_pdb.c \
  76. gimpgradient_pdb.c \
  77. gimpgradients_pdb.c \
  78. gimpgradientselect_pdb.c \
  79. gimpguides_pdb.c \
  80. gimpgrid_pdb.c \
  81. gimphelp_pdb.c \
  82. gimpimage_pdb.c \
  83. gimpimageselect_pdb.c \
  84. gimpitem_pdb.c \
  85. gimpitemtransform_pdb.c \
  86. gimplayer_pdb.c \
  87. gimpmessage_pdb.c \
  88. gimppainttools_pdb.c \
  89. gimppalette_pdb.c \
  90. gimppalettes_pdb.c \
  91. gimppaletteselect_pdb.c \
  92. gimppaths_pdb.c \
  93. gimppattern_pdb.c \
  94. gimppatterns_pdb.c \
  95. gimppatternselect_pdb.c \
  96. gimpplugin_pdb.c \
  97. gimpproceduraldb_pdb.c \
  98. gimpprogress_pdb.c \
  99. gimpselection_pdb.c \
  100. gimpselectiontools_pdb.c \
  101. gimptextlayer_pdb.c \
  102. gimptexttool_pdb.c \
  103. gimptransformtools_pdb.c \
  104. gimpundo_pdb.c \
  105. gimpunit_pdb.c \
  106. gimpvectors_pdb.c
  107. PDB_WRAPPERS_H = \
  108. gimp_pdb_headers.h \
  109. gimp_pdb.h \
  110. gimpbrush_pdb.h \
  111. gimpbrushes_pdb.h \
  112. gimpbrushselect_pdb.h \
  113. gimpbuffer_pdb.h \
  114. gimpchannel_pdb.h \
  115. gimpcolor_pdb.h \
  116. gimpcontext_pdb.h \
  117. gimpconvert_pdb.h \
  118. gimpdisplay_pdb.h \
  119. gimpdrawable_pdb.h \
  120. gimpdrawabletransform_pdb.h \
  121. gimpdynamics_pdb.h \
  122. gimpedit_pdb.h \
  123. gimpfileops_pdb.h \
  124. gimpfloatingsel_pdb.h \
  125. gimpfonts_pdb.h \
  126. gimpfontselect_pdb.h \
  127. gimpgimprc_pdb.h \
  128. gimpgradient_pdb.h \
  129. gimpgradients_pdb.h \
  130. gimpgradientselect_pdb.h \
  131. gimpgrid_pdb.h \
  132. gimpguides_pdb.h \
  133. gimphelp_pdb.h \
  134. gimpimage_pdb.h \
  135. gimpimageselect_pdb.h \
  136. gimpitem_pdb.h \
  137. gimpitemtransform_pdb.h \
  138. gimplayer_pdb.h \
  139. gimpmessage_pdb.h \
  140. gimppainttools_pdb.h \
  141. gimppalette_pdb.h \
  142. gimppalettes_pdb.h \
  143. gimppaletteselect_pdb.h \
  144. gimppaths_pdb.h \
  145. gimppattern_pdb.h \
  146. gimppatterns_pdb.h \
  147. gimppatternselect_pdb.h \
  148. gimpplugin_pdb.h \
  149. gimpproceduraldb_pdb.h \
  150. gimpprogress_pdb.h \
  151. gimpselection_pdb.h \
  152. gimpselectiontools_pdb.h \
  153. gimptextlayer_pdb.h \
  154. gimptexttool_pdb.h \
  155. gimptransformtools_pdb.h \
  156. gimpundo_pdb.h \
  157. gimpunit_pdb.h \
  158. gimpvectors_pdb.h
  159. libgimp_sources = \
  160. gimp.c \
  161. gimp.h \
  162. gimpcompat.h \
  163. gimptypes.h \
  164. gimpenums.h \
  165. ${PDB_WRAPPERS_C} \
  166. ${PDB_WRAPPERS_H} \
  167. gimpbrushes.c \
  168. gimpbrushes.h \
  169. gimpbrushselect.c \
  170. gimpbrushselect.h \
  171. gimpchannel.c \
  172. gimpchannel.h \
  173. gimpdrawable.c \
  174. gimpdrawable.h \
  175. gimpfontselect.c \
  176. gimpfontselect.h \
  177. gimpgimprc.c \
  178. gimpgimprc.h \
  179. gimpgradients.c \
  180. gimpgradients.h \
  181. gimpgradientselect.c \
  182. gimpgradientselect.h \
  183. gimpimage.c \
  184. gimpimage.h \
  185. gimplayer.c \
  186. gimplayer.h \
  187. gimppalette.c \
  188. gimppalette.h \
  189. gimppalettes.c \
  190. gimppalettes.h \
  191. gimppaletteselect.c \
  192. gimppaletteselect.h \
  193. gimppatterns.c \
  194. gimppatterns.h \
  195. gimppatternselect.c \
  196. gimppatternselect.h \
  197. gimppixbuf.c \
  198. gimppixbuf.h \
  199. gimppixelfetcher.c \
  200. gimppixelfetcher.h \
  201. gimppixelrgn.c \
  202. gimppixelrgn.h \
  203. gimpplugin.c \
  204. gimpplugin.h \
  205. gimpproceduraldb.c \
  206. gimpproceduraldb.h \
  207. gimpprogress.c \
  208. gimpprogress.h \
  209. gimpregioniterator.c \
  210. gimpregioniterator.h \
  211. gimpselection.c \
  212. gimpselection.h \
  213. gimptile.c \
  214. gimptile.h \
  215. gimptilebackendplugin.c \
  216. gimptilebackendplugin.h \
  217. gimpunitcache.c \
  218. gimpunitcache.h \
  219. gimpvectors.c \
  220. gimpvectors.h \
  221. stdplugins-intl.h \
  222. libgimp-intl.h
  223. libgimp_built_sources = \
  224. gimpenums.c
  225. libgimp_extra_sources = gimpenums.c.tail
  226. libgimp_@GIMP_API_VERSION@_la_SOURCES = \
  227. $(libgimp_built_sources) \
  228. $(libgimp_sources)
  229. libgimpui_sources = \
  230. gimpui.c \
  231. gimpui.h \
  232. gimpuitypes.h \
  233. gimpaspectpreview.c \
  234. gimpaspectpreview.h \
  235. gimpbrushmenu.c \
  236. gimpbrushmenu.h \
  237. gimpbrushselectbutton.c \
  238. gimpbrushselectbutton.h \
  239. gimpdrawablepreview.c \
  240. gimpdrawablepreview.h \
  241. gimpexport.c \
  242. gimpexport.h \
  243. gimpfontmenu.c \
  244. gimpfontmenu.h \
  245. gimpfontselectbutton.c \
  246. gimpfontselectbutton.h \
  247. gimpgradientmenu.c \
  248. gimpgradientmenu.h \
  249. gimpgradientselectbutton.c \
  250. gimpgradientselectbutton.h \
  251. gimpimagecombobox.c \
  252. gimpimagecombobox.h \
  253. gimpitemcombobox.c \
  254. gimpitemcombobox.h \
  255. gimpmenu.c \
  256. gimpmenu.h \
  257. gimppalettemenu.c \
  258. gimppalettemenu.h \
  259. gimppaletteselectbutton.c \
  260. gimppaletteselectbutton.h \
  261. gimppatternmenu.c \
  262. gimppatternmenu.h \
  263. gimppatternselectbutton.c \
  264. gimppatternselectbutton.h \
  265. gimpprocbrowserdialog.c \
  266. gimpprocbrowserdialog.h \
  267. gimpprocview.c \
  268. gimpprocview.h \
  269. gimpprogressbar.c \
  270. gimpprogressbar.h \
  271. gimpselectbutton.c \
  272. gimpselectbutton.h \
  273. gimpzoompreview.c \
  274. gimpzoompreview.h
  275. libgimpui_built_sources = \
  276. gimpuimarshal.c \
  277. gimpuimarshal.h
  278. libgimpui_extra_sources = gimpuimarshal.list
  279. libgimpui_@GIMP_API_VERSION@_la_SOURCES = \
  280. $(libgimpui_built_sources) \
  281. $(libgimpui_sources)
  282. gimpinclude_HEADERS = \
  283. gimp.h \
  284. gimpcompat.h \
  285. gimptypes.h \
  286. gimpenums.h \
  287. ${PDB_WRAPPERS_H} \
  288. gimpbrushes.h \
  289. gimpbrushselect.h \
  290. gimpchannel.h \
  291. gimpdrawable.h \
  292. gimpfontselect.h \
  293. gimpgimprc.h \
  294. gimpgradients.h \
  295. gimpgradientselect.h \
  296. gimpimage.h \
  297. gimplayer.h \
  298. gimppalette.h \
  299. gimppalettes.h \
  300. gimppaletteselect.h \
  301. gimppatterns.h \
  302. gimppatternselect.h \
  303. gimppixelfetcher.h \
  304. gimppixelrgn.h \
  305. gimpplugin.h \
  306. gimpproceduraldb.h \
  307. gimpprogress.h \
  308. gimpregioniterator.h \
  309. gimpselection.h \
  310. gimptile.h \
  311. gimpvectors.h \
  312. \
  313. gimpui.h \
  314. gimpuitypes.h \
  315. gimpaspectpreview.h \
  316. gimpbrushmenu.h \
  317. gimpbrushselectbutton.h \
  318. gimpdrawablepreview.h \
  319. gimpexport.h \
  320. gimpfontmenu.h \
  321. gimpfontselectbutton.h \
  322. gimpgradientmenu.h \
  323. gimpgradientselectbutton.h \
  324. gimpimagecombobox.h \
  325. gimpitemcombobox.h \
  326. gimpmenu.h \
  327. gimppalettemenu.h \
  328. gimppaletteselectbutton.h \
  329. gimppatternmenu.h \
  330. gimppatternselectbutton.h \
  331. gimppixbuf.h \
  332. gimpprocbrowserdialog.h \
  333. gimpprocview.h \
  334. gimpprogressbar.h \
  335. gimpselectbutton.h \
  336. gimpzoompreview.h
  337. libgimp_@GIMP_API_VERSION@_la_LDFLAGS = \
  338. -version-info $(LT_VERSION_INFO) \
  339. $(no_undefined) \
  340. $(libgimp_export_symbols)
  341. libgimp_@GIMP_API_VERSION@_la_LIBADD = \
  342. $(libgimpconfig) \
  343. $(libgimpcolor) \
  344. $(libgimpbase) \
  345. $(CAIRO_LIBS) \
  346. $(GEGL_LIBS) \
  347. $(GDK_PIXBUF_LIBS) \
  348. $(RT_LIBS)
  349. libgimp_@GIMP_API_VERSION@_la_DEPENDENCIES = \
  350. $(gimp_def) \
  351. $(libgimpconfig) \
  352. $(libgimpcolor) \
  353. $(libgimpbase)
  354. libgimpui_@GIMP_API_VERSION@_la_LDFLAGS = \
  355. -version-info $(LT_VERSION_INFO) \
  356. $(no_undefined) \
  357. $(libgimpui_export_symbols)
  358. libgimpui_@GIMP_API_VERSION@_la_LIBADD = \
  359. $(libgimp) \
  360. $(libgimpwidgets) \
  361. $(libgimpcolor) \
  362. $(libgimpbase) \
  363. $(libgimpmodule) \
  364. $(GTK_LIBS) \
  365. $(RT_LIBS)
  366. libgimpui_@GIMP_API_VERSION@_la_DEPENDENCIES = \
  367. $(gimpui_def) \
  368. $(libgimp) \
  369. $(libgimpwidgets) \
  370. $(libgimpbase)
  371. EXTRA_DIST = \
  372. COPYING \
  373. gimp.def \
  374. gimpui.def \
  375. $(libgimp_extra_sources) \
  376. $(libgimpui_extra_sources)
  377. install-data-local: install-ms-lib install-libtool-import-lib
  378. uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
  379. #
  380. # rules to generate built sources
  381. #
  382. # setup autogeneration dependencies
  383. gen_sources = xgen-cec xgen-umh xgen-umc
  384. CLEANFILES = $(gen_sources)
  385. gimpenums.c: $(srcdir)/gimpenums.h $(srcdir)/gimpenums.c.tail $(GIMP_MKENUMS)
  386. $(GIMP_MKENUMS) \
  387. --fhead "#include \"config.h\"\n#include <glib-object.h>\n#undef GIMP_DISABLE_DEPRECATED\n#include \"libgimpbase/gimpbase.h\"\n#include \"gimpenums.h\"" \
  388. --fprod "\n/* enumerations from \"@filename@\" */" \
  389. --vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
  390. --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
  391. --vtail " { 0, NULL, NULL }\n };\n" \
  392. --dhead " static const Gimp@Type@Desc descs[] =\n {" \
  393. --dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
  394. --dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_type_set_translation_context (type, \"@enumnick@\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
  395. $(srcdir)/gimpenums.h > xgen-cec \
  396. && cat $(srcdir)/gimpenums.c.tail >> xgen-cec \
  397. && cp xgen-cec $(@F) \
  398. && rm -f xgen-cec
  399. gimpuimarshal.h: $(srcdir)/gimpuimarshal.list
  400. $(GLIB_GENMARSHAL) --prefix=_gimpui_marshal $(srcdir)/gimpuimarshal.list --header >> xgen-umh \
  401. && (cmp -s xgen-umh $(@F) || cp xgen-umh $(@F)) \
  402. && rm -f xgen-umh xgen-umh~
  403. gimpuimarshal.c: gimpuimarshal.h
  404. echo "#include \"gimpuimarshal.h\"" >> xgen-umc \
  405. && $(GLIB_GENMARSHAL) --prefix=_gimpui_marshal $(srcdir)/gimpuimarshal.list --body >> xgen-umc \
  406. && cp xgen-umc $(@F) \
  407. && rm -f xgen-umc xgen-umc~