PageRenderTime 59ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/libreoffice-3.6.0.2/mythes/makefile.mk

#
Makefile | 120 lines | 64 code | 25 blank | 31 comment | 3 complexity | 515fffe3e2f28bad0530d8e0704c63aa MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-2.1, AGPL-1.0, BSD-3-Clause-No-Nuclear-License-2014, GPL-3.0, LGPL-3.0
  1. #*************************************************************************
  2. #
  3. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  4. #
  5. # Copyright 2000, 2010 Oracle and/or its affiliates.
  6. #
  7. # OpenOffice.org - a multi-platform office productivity suite
  8. #
  9. # This file is part of OpenOffice.org.
  10. #
  11. # OpenOffice.org is free software: you can redistribute it and/or modify
  12. # it under the terms of the GNU Lesser General Public License version 3
  13. # only, as published by the Free Software Foundation.
  14. #
  15. # OpenOffice.org is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. # GNU Lesser General Public License version 3 for more details
  19. # (a copy is included in the LICENSE file that accompanied this code).
  20. #
  21. # You should have received a copy of the GNU Lesser General Public License
  22. # version 3 along with OpenOffice.org. If not, see
  23. # <http://www.openoffice.org/license.html>
  24. # for a copy of the LGPLv3 License.
  25. #
  26. #*************************************************************************
  27. PRJ=.
  28. PRJNAME=mythes
  29. TARGET=mythes
  30. # --- Settings -----------------------------------------------------
  31. .INCLUDE : settings.mk
  32. # --- Files --------------------------------------------------------
  33. TARFILE_NAME=mythes-1.2.2
  34. TARFILE_MD5=e1e255dc43dbcbb34cb19e8a0eba90ae
  35. ADDITIONAL_FILES += makefile.mk
  36. PATCH_FILES=\
  37. mythes-1.2.0-vanilla-th-gen-idx.patch \
  38. mythes-1.2.0-makefile-mk.diff \
  39. mythes-1.2.0-android.patch
  40. .IF "$(COM)"=="GCC"
  41. .IF "$(SYSTEM_HUNSPELL)" != "YES"
  42. HUNSPELL_CFLAGS +:= -I$(SOLARINCDIR)$/hunspell
  43. HUNSPELL_LIBS +:= -L$(SOLARLIBDIR) -lhunspell-1.3
  44. .ENDIF
  45. .ENDIF
  46. .IF "$(GUI)"=="UNX"
  47. CONFIGURE_DIR=$(BUILD_DIR)
  48. #relative to CONFIGURE_DIR
  49. # still needed also in system-mythes case as it creates the makefile
  50. CONFIGURE_ACTION=configure
  51. CONFIGURE_FLAGS= --disable-shared --with-pic
  52. .IF "$(COM)"=="C52" && "$(CPU)"=="U"
  53. LCL_CONFIGURE_CFLAGS+=-m64
  54. .ELIF "$(OS)"=="AIX"
  55. LCL_CONFIGURE_CFLAG+=-D_LINUX_SOURCE_COMPAT
  56. .ENDIF
  57. .IF "$(SYSBASE)"!=""
  58. .IF "$(EXTRA_CFLAGS)"!=""
  59. LCL_CONFIGURE_CFLAGS+=$(EXTRA_CFLAGS)
  60. CONFIGURE_FLAGS+=CXXFLAGS="$(EXTRA_CFLAGS)"
  61. .ENDIF # "$(EXTRA_CFLAGS)"!=""
  62. .ELIF "$(OS)"=="MACOSX" # "$(SYSBASE)"!=""
  63. CONFIGURE_FLAGS+=CPPFLAGS="$(EXTRA_CDEFS)"
  64. .ENDIF
  65. .IF "$(LCL_CONFIGURE_CFLAGS)"!=""
  66. CONFIGURE_FLAGS+=CFLAGS='$(LCL_CONFIGURE_CFLAGS)'
  67. .ENDIF
  68. .IF "$(CROSS_COMPILING)"=="YES"
  69. CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no LIBS="$(STDLIBCUIMT)"
  70. .ENDIF
  71. BUILD_ACTION=make
  72. OUT2INC += mythes.hxx
  73. .ENDIF # "$(GUI)"=="UNX"
  74. .IF "$(GUI)"=="WNT"
  75. .IF "$(COM)"=="GCC"
  76. CONFIGURE_ACTION=configure
  77. CONFIGURE_FLAGS= --disable-shared --with-pic \
  78. HUNSPELL_CFLAGS="$(HUNSPELL_CFLAGS)" \
  79. HUNSPELL_LIBS="$(HUNSPELL_LIBS)"
  80. .IF "$(CROSS_COMPILING)"=="YES"
  81. CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) gio_can_sniff=no
  82. .ENDIF
  83. BUILD_ACTION=make
  84. .ELSE
  85. BUILD_ACTION=dmake
  86. .ENDIF # "$(COM)"=="GCC"
  87. OUT2INC += mythes.hxx
  88. .ENDIF # "$(GUI)"=="WNT"
  89. # --- Targets ------------------------------------------------------
  90. .INCLUDE : set_ext.mk
  91. .INCLUDE : target.mk
  92. .INCLUDE : tg_ext.mk
  93. .IF "$(SYSTEM_HUNSPELL)" != "YES"
  94. .EXPORT: HUNSPELL_LIBS HUNSPELL_CFLAGS
  95. .ENDIF