1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/softoken/Makefile Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,68 @@ 1.4 +#! gmake 1.5 +# 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +####################################################################### 1.11 +# (1) Include initial platform-independent assignments (MANDATORY). # 1.12 +####################################################################### 1.13 + 1.14 +include manifest.mn 1.15 + 1.16 +####################################################################### 1.17 +# (2) Include "global" configuration information. (OPTIONAL) # 1.18 +####################################################################### 1.19 + 1.20 +include $(CORE_DEPTH)/coreconf/config.mk 1.21 + 1.22 +####################################################################### 1.23 +# (3) Include "component" configuration information. (OPTIONAL) # 1.24 +####################################################################### 1.25 + 1.26 + 1.27 + 1.28 +####################################################################### 1.29 +# (4) Include "local" platform-dependent assignments (OPTIONAL). # 1.30 +####################################################################### 1.31 + 1.32 +include config.mk 1.33 + 1.34 +####################################################################### 1.35 +# (5) Execute "global" rules. (OPTIONAL) # 1.36 +####################################################################### 1.37 + 1.38 +include $(CORE_DEPTH)/coreconf/rules.mk 1.39 + 1.40 +####################################################################### 1.41 +# (6) Execute "component" rules. (OPTIONAL) # 1.42 +####################################################################### 1.43 + 1.44 +ifdef NSS_DISABLE_DBM 1.45 +DIRS= 1.46 +endif 1.47 + 1.48 +####################################################################### 1.49 +# (7) Execute "local" rules. (OPTIONAL). # 1.50 +####################################################################### 1.51 + 1.52 +export:: private_export 1.53 + 1.54 +# indicates dependency on freebl static lib 1.55 +$(SHARED_LIBRARY): $(CRYPTOLIB) 1.56 + 1.57 +# On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile 1.58 +# pkcs11c.c in 64-bit mode for unknown reasons. A workaround is 1.59 +# to compile it with optimizations turned on. (Bugzilla bug #63815) 1.60 +ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3) 1.61 +ifeq ($(USE_64),1) 1.62 +ifndef BUILD_OPT 1.63 +$(OBJDIR)/pkcs11.o: pkcs11.c 1.64 + @$(MAKE_OBJDIR) 1.65 + $(CC) -o $@ -c -O2 $(CFLAGS) $< 1.66 +$(OBJDIR)/pkcs11c.o: pkcs11c.c 1.67 + @$(MAKE_OBJDIR) 1.68 + $(CC) -o $@ -c -O2 $(CFLAGS) $< 1.69 +endif 1.70 +endif 1.71 +endif