Makefile (2344B)
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 # (4) Include "local" platform-dependent assignments (OPTIONAL). # 26 ####################################################################### 27 28 include ../common/gtest.mk 29 30 CFLAGS += -I$(CORE_DEPTH)/lib/ssl 31 32 ifdef NSS_DISABLE_TLS_1_3 33 NSS_DISABLE_TLS_1_3=1 34 # Run parameterized tests only, for which we can easily exclude TLS 1.3 35 CPPSRCS := $(filter-out $(shell grep -l '^TEST_F' $(CPPSRCS)), $(CPPSRCS)) 36 CFLAGS += -DNSS_DISABLE_TLS_1_3 37 endif 38 39 ifdef NSS_ALLOW_SSLKEYLOGFILE 40 SSLKEYLOGFILE_FILES = ssl_keylog_unittest.cc 41 else 42 SSLKEYLOGFILE_FILES = $(NULL) 43 endif 44 45 ifndef NSS_DISABLE_KYBER 46 XYBER_FILES = tls_xyber_unittest.cc 47 else 48 XYBER_FILES = $(NULL) 49 endif 50 51 ####################################################################### 52 # (5) Execute "global" rules. (OPTIONAL) # 53 ####################################################################### 54 55 include $(CORE_DEPTH)/coreconf/rules.mk 56 57 ####################################################################### 58 # (6) Execute "component" rules. (OPTIONAL) # 59 ####################################################################### 60 61 62 ####################################################################### 63 # (7) Execute "local" rules. (OPTIONAL). # 64 #######################################################################