Makefile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. #! gmake
  2. #
  3. # This Source Code Form is subject to the terms of the Mozilla Public
  4. # License, v. 2.0. If a copy of the MPL was not distributed with this
  5. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. #######################################################################
  7. # (1) Include initial platform-independent assignments (MANDATORY). #
  8. #######################################################################
  9. include manifest.mn
  10. #######################################################################
  11. # (2) Include "global" configuration information. (OPTIONAL) #
  12. #######################################################################
  13. include $(CORE_DEPTH)/coreconf/config.mk
  14. #######################################################################
  15. # (3) Include "component" configuration information. (OPTIONAL) #
  16. #######################################################################
  17. #######################################################################
  18. # (4) Include "local" platform-dependent assignments (OPTIONAL). #
  19. #######################################################################
  20. ifndef USE_SYSTEM_ZLIB
  21. ZLIB_SRCDIR = zlib # Add the zlib directory to DIRS.
  22. endif
  23. ifndef MOZILLA_CLIENT
  24. ifndef NSS_USE_SYSTEM_SQLITE
  25. SQLITE_SRCDIR = sqlite # Add the sqlite directory to DIRS.
  26. endif
  27. endif
  28. ifndef MOZILLA_CLIENT
  29. ifeq ($(OS_ARCH),Linux)
  30. SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS.
  31. endif
  32. endif
  33. ifndef NSS_DISABLE_DBM
  34. DBM_SRCDIR = dbm # Add the dbm directory to DIRS.
  35. endif
  36. ifeq ($(NSS_BUILD_UTIL_ONLY),1)
  37. SYSINIT_SRCDIR=
  38. endif
  39. ifndef NSS_DISABLE_LIBPKIX
  40. LIBPKIX_SRCDIR = libpkix # Add the libpkix directory to DIRS.
  41. endif
  42. #######################################################################
  43. # (5) Execute "global" rules. (OPTIONAL) #
  44. #######################################################################
  45. include $(CORE_DEPTH)/coreconf/rules.mk
  46. #######################################################################
  47. # (6) Execute "component" rules. (OPTIONAL) #
  48. #######################################################################
  49. #######################################################################
  50. # (7) Execute "local" rules. (OPTIONAL). #
  51. #######################################################################
  52. ifeq ($(NSS_BUILD_UTIL_ONLY),1)
  53. UTIL_SRCDIR = util
  54. FREEBL_SRCDIR =
  55. SOFTOKEN_SRCDIR =
  56. else
  57. ifeq ($(NSS_BUILD_SOFTOKEN_ONLY),1)
  58. UTIL_SRCDIR =
  59. FREEBL_SRCDIR = freebl
  60. SOFTOKEN_SRCDIR = softoken
  61. else
  62. ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1)
  63. # Not included when building nss without softoken
  64. # This build type uses the build results of the prior
  65. # NSS_BUILD_UTIL_ONLY and NSS_BUILD_SOFTOKEN_ONLY builds
  66. UTIL_SRCDIR =
  67. FREEBL_SRCDIR =
  68. SOFTOKEN_SRCDIR =
  69. else
  70. # default is to include all
  71. UTIL_SRCDIR = util
  72. FREEBL_SRCDIR = freebl
  73. SOFTOKEN_SRCDIR = softoken
  74. endif
  75. endif
  76. endif