Makefile (2255B)
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 ####################################################################### 8 # (1) Include initial platform-independent assignments (MANDATORY). # 9 ####################################################################### 10 11 include manifest.mn 12 13 ####################################################################### 14 # (2) Include "global" configuration information. (OPTIONAL) # 15 ####################################################################### 16 17 include $(CORE_DEPTH)/coreconf/config.mk 18 19 ####################################################################### 20 # (3) Include "component" configuration information. (OPTIONAL) # 21 ###################################################################### 22 # 23 24 25 ####################################################################### 26 # (4) Include "local" platform-dependent assignments (OPTIONAL). # 27 ####################################################################### 28 29 include config.mk 30 31 ifeq (,$(filter-out WIN%,$(OS_TARGET))) 32 CSRCS += win32err.c 33 DEFINES += -DIN_LIBSSL 34 else 35 CSRCS += unix_err.c 36 endif 37 38 # Enable key logging by default in debug builds, but not opt builds. 39 # Logging still needs to be enabled at runtime through env vars. 40 # tor-browser#18885, tor-browser#21849 41 NSS_ALLOW_SSLKEYLOGFILE ?= 0 42 ifeq (1,$(NSS_ALLOW_SSLKEYLOGFILE)) 43 DEFINES += -DNSS_ALLOW_SSLKEYLOGFILE=1 44 endif 45 46 ####################################################################### 47 # (5) Execute "global" rules. (OPTIONAL) # 48 ####################################################################### 49 50 include $(CORE_DEPTH)/coreconf/rules.mk 51 52 ####################################################################### 53 # (6) Execute "component" rules. (OPTIONAL) # 54 ####################################################################### 55 56 57 58 ####################################################################### 59 # (7) Execute "local" rules. (OPTIONAL). # 60 #######################################################################