Bug 1914685 - [wpt-sync] Update web-platform-tests to 26c88095d89792c886494e30c85aca3...
[gecko.git] / security / nss / lib / pk11wrap / Makefile
blob9d27595ca1952c02d667c546cd146d4e3e93cea1
1 #! gmake
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/.
7 #######################################################################
8 # (1) Include initial platform-independent assignments (MANDATORY). #
9 #######################################################################
11 include manifest.mn
13 #######################################################################
14 # (2) Include "global" configuration information. (OPTIONAL) #
15 #######################################################################
17 include $(CORE_DEPTH)/coreconf/config.mk
19 #######################################################################
20 # (3) Include "component" configuration information. (OPTIONAL) #
21 #######################################################################
25 #######################################################################
26 # (4) Include "local" platform-dependent assignments (OPTIONAL). #
27 #######################################################################
29 #######################################################################
30 # (5) Execute "global" rules. (OPTIONAL) #
31 #######################################################################
33 include $(CORE_DEPTH)/coreconf/rules.mk
35 #######################################################################
36 # (6) Execute "component" rules. (OPTIONAL) #
37 #######################################################################
41 #######################################################################
42 # (7) Execute "local" rules. (OPTIONAL). #
43 #######################################################################
46 $(OBJDIR)/pk11load$(OBJ_SUFFIX): debug_module.c
48 # On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile
49 # pk11slot.c in 64-bit mode for unknown reasons. A workaround is
50 # to compile it with optimizations turned on. (Bugzilla bug #63815)
51 ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3)
52 ifeq ($(USE_64),1)
53 ifndef BUILD_OPT
54 $(OBJDIR)/pk11slot.o: pk11slot.c | $$(@D)/d
55 $(CC) -o $@ -c -O2 $(CFLAGS) $<
56 endif
57 endif
58 endif