internal_buildpaths.mk 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #
  2. # BEGIN COPYRIGHT BLOCK
  3. # This Program is free software; you can redistribute it and/or modify it under
  4. # the terms of the GNU General Public License as published by the Free Software
  5. # Foundation; version 2 of the License.
  6. #
  7. # This Program is distributed in the hope that it will be useful, but WITHOUT
  8. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  10. #
  11. # You should have received a copy of the GNU General Public License along with
  12. # this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  13. # Place, Suite 330, Boston, MA 02111-1307 USA.
  14. #
  15. # In addition, as a special exception, Red Hat, Inc. gives You the additional
  16. # right to link the code of this Program with code not covered under the GNU
  17. # General Public License ("Non-GPL Code") and to distribute linked combinations
  18. # including the two, subject to the limitations in this paragraph. Non-GPL Code
  19. # permitted under this exception must only link to the code of this Program
  20. # through those well defined interfaces identified in the file named EXCEPTION
  21. # found in the source code files (the "Approved Interfaces"). The files of
  22. # Non-GPL Code may instantiate templates or use macros or inline functions from
  23. # the Approved Interfaces without causing the resulting work to be covered by
  24. # the GNU General Public License. Only Red Hat, Inc. may make changes or
  25. # additions to the list of Approved Interfaces. You must obey the GNU General
  26. # Public License in all respects for all of the Program code and other code used
  27. # in conjunction with the Program except the Non-GPL Code covered by this
  28. # exception. If you modify this file, you may extend this exception to your
  29. # version of the file, but you are not obligated to do so. If you do not wish to
  30. # provide this exception without modification, you must delete this exception
  31. # statement from your version and license this file solely under the GPL without
  32. # exception.
  33. #
  34. #
  35. # Copyright (C) 2005 Red Hat, Inc.
  36. # All rights reserved.
  37. # END COPYRIGHT BLOCK
  38. #
  39. # This file is where you tell the build process where to find the
  40. # various components used during the build process.
  41. # You can either use components built locally from source or
  42. # pre-built components. The reason for the different macros
  43. # for SOURCE and BUILD is that the locations for the libs, includes,
  44. # etc. are usually different for packages built from source vs.
  45. # pre-built packages. As an example, when building NSPR from
  46. # source, the includes are in mozilla/dist/$(OBJDIR_NAME)/include
  47. # where OBJDIR_NAME includes the OS, arch, compiler, thread model, etc.
  48. # When using the pre-built NSPR from Mozilla FTP, the include files
  49. # are just in nsprdir/include. This is why we have to make the
  50. # distinction between a SOURCE component and a BUILD (pre-built)
  51. # component. See components.mk for the gory details.
  52. # For each component, specify the source root OR the pre-built
  53. # component directory. If both a SOURCE_ROOT and a BUILD_DIR are
  54. # defined for a component, the SOURCE_ROOT will be used - don't do
  55. # this, it's confusing.
  56. # For the Mozilla components, if using source for all of them,
  57. # you can just define MOZILLA_SOURCE_ROOT - the build will
  58. # assume all of them have been built in that same directory
  59. # (as per the recommended build instructions)
  60. # For all components, the recommended way is to put each
  61. # component in a subdirectory of the parent directory of
  62. # BUILD_ROOT, both with pre-built and source components
  63. # work around vsftpd -L problem
  64. ifeq ($(COMPONENT_PULL_METHOD), FTP)
  65. ifdef USING_VSFTPD
  66. VSFTPD_HACK=1
  67. endif
  68. endif
  69. #MOZILLA_SOURCE_ROOT = $(BUILD_ROOT)/../mozilla
  70. #NSPR_SOURCE_ROOT = $(MOZILLA_SOURCE_ROOT)
  71. ifndef NSPR_SOURCE_ROOT
  72. NSPR_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/nspr
  73. # NSPR also needs a build dir with a full, absolute path for some reason
  74. NSPR_ABS_BUILD_DIR = $(NSCP_ABS_DISTDIR_FULL_RTL)/nspr
  75. endif # NSPR_SOURCE_ROOT
  76. #DBM_SOURCE_ROOT = $(MOZILLA_SOURCE_ROOT)
  77. ifndef DBM_SOURCE_ROOT
  78. DBM_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/dbm
  79. endif # DBM_SOURCE_ROOT
  80. #SECURITY_SOURCE_ROOT = $(MOZILLA_SOURCE_ROOT)
  81. ifndef SECURITY_SOURCE_ROOT
  82. SECURITY_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/nss
  83. endif # SECURITY_SOURCE_ROOT
  84. #SVRCORE_SOURCE_ROOT = $(MOZILLA_SOURCE_ROOT)
  85. ifndef SVRCORE_SOURCE_ROOT
  86. SVRCORE_BUILD_DIR = $(NSCP_DISTDIR)/svrcore
  87. endif # SVRCORE_SOURCE_ROOT
  88. #LDAPSDK_SOURCE_ROOT = $(MOZILLA_SOURCE_ROOT)
  89. ifndef LDAPSDK_SOURCE_ROOT
  90. LDAP_ROOT = $(NSCP_DISTDIR_FULL_RTL)/ldapsdk
  91. endif # LDAPSDK_SOURCE_ROOT
  92. #SASL_SOURCE_ROOT = $(BUILD_ROOT)/../cyrus-sasl-2.1.20
  93. ifndef SASL_SOURCE_ROOT
  94. SASL_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/sasl
  95. endif # SASL_SOURCE_ROOT
  96. #NETSNMP_SOURCE_ROOT = $(BUILD_ROOT)/../net-snmp
  97. ifndef NETSNMP_SOURCE_ROOT
  98. NETSNMP_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/net-snmp
  99. endif # NETSNMP_SOURCE_ROOT
  100. #ICU_SOURCE_ROOT = $(BUILD_ROOT)/../icu
  101. ifndef ICU_SOURCE_ROOT
  102. ICU_BUILD_DIR = $(NSCP_DISTDIR_FULL_RTL)/libicu
  103. endif # ICU_SOURCE_ROOT
  104. #DB_SOURCE_ROOT = $(BUILD_ROOT)/../db-4.2.52.NC
  105. # DB_MAJOR_MINOR is the root name for the db shared library
  106. # source builds use db-4.2 - uncomment this if using source
  107. #DB_MAJOR_MINOR := db-4.2
  108. ifndef DB_SOURCE_ROOT
  109. DB_MAJOR_MINOR := db42
  110. db_component_name=$(DB_MAJOR_MINOR)
  111. db_path_config :=$(NSCP_DISTDIR)/$(db_component_name)
  112. endif # DB_SOURCE_ROOT