michael@0: #! gmake michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ####################################################################### michael@0: # (1) Include initial platform-independent assignments (MANDATORY). # michael@0: ####################################################################### michael@0: michael@0: include manifest.mn michael@0: michael@0: ####################################################################### michael@0: # (2) Include "global" configuration information. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: include $(CORE_DEPTH)/coreconf/config.mk michael@0: michael@0: ####################################################################### michael@0: # (3) Include "component" configuration information. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: michael@0: michael@0: ####################################################################### michael@0: # (4) Include "local" platform-dependent assignments (OPTIONAL). # michael@0: ####################################################################### michael@0: michael@0: ifndef USE_SYSTEM_ZLIB michael@0: ZLIB_SRCDIR = zlib # Add the zlib directory to DIRS. michael@0: endif michael@0: michael@0: ifndef MOZILLA_CLIENT michael@0: ifndef NSS_USE_SYSTEM_SQLITE michael@0: SQLITE_SRCDIR = sqlite # Add the sqlite directory to DIRS. michael@0: endif michael@0: endif michael@0: michael@0: ifndef MOZILLA_CLIENT michael@0: ifeq ($(OS_ARCH),Linux) michael@0: SYSINIT_SRCDIR = sysinit # Add the sysinit directory to DIRS. michael@0: endif michael@0: endif michael@0: michael@0: ifndef NSS_DISABLE_DBM michael@0: DBM_SRCDIR = dbm # Add the dbm directory to DIRS. michael@0: endif michael@0: michael@0: ####################################################################### michael@0: # (5) Execute "global" rules. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: include $(CORE_DEPTH)/coreconf/rules.mk michael@0: michael@0: ####################################################################### michael@0: # (6) Execute "component" rules. (OPTIONAL) # michael@0: ####################################################################### michael@0: michael@0: michael@0: michael@0: ####################################################################### michael@0: # (7) Execute "local" rules. (OPTIONAL). # michael@0: ####################################################################### michael@0: michael@0: ifeq ($(NSS_BUILD_WITHOUT_SOFTOKEN),1) michael@0: # Not included when building nss without softoken michael@0: UTIL_SRCDIR = michael@0: FREEBL_SRCDIR = michael@0: SOFTOKEN_SRCDIR = michael@0: else michael@0: # default is to include all michael@0: UTIL_SRCDIR = util michael@0: FREEBL_SRCDIR = freebl michael@0: SOFTOKEN_SRCDIR = softoken michael@0: endif