|
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 ####################################################################### |
|
32 # (5) Execute "global" rules. (OPTIONAL) # |
|
33 ####################################################################### |
|
34 |
|
35 include $(CORE_DEPTH)/coreconf/rules.mk |
|
36 |
|
37 ####################################################################### |
|
38 # (6) Execute "component" rules. (OPTIONAL) # |
|
39 ####################################################################### |
|
40 |
|
41 ifdef NSS_DISABLE_DBM |
|
42 DIRS= |
|
43 endif |
|
44 |
|
45 ####################################################################### |
|
46 # (7) Execute "local" rules. (OPTIONAL). # |
|
47 ####################################################################### |
|
48 |
|
49 export:: private_export |
|
50 |
|
51 # indicates dependency on freebl static lib |
|
52 $(SHARED_LIBRARY): $(CRYPTOLIB) |
|
53 |
|
54 # On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile |
|
55 # pkcs11c.c in 64-bit mode for unknown reasons. A workaround is |
|
56 # to compile it with optimizations turned on. (Bugzilla bug #63815) |
|
57 ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3) |
|
58 ifeq ($(USE_64),1) |
|
59 ifndef BUILD_OPT |
|
60 $(OBJDIR)/pkcs11.o: pkcs11.c |
|
61 @$(MAKE_OBJDIR) |
|
62 $(CC) -o $@ -c -O2 $(CFLAGS) $< |
|
63 $(OBJDIR)/pkcs11c.o: pkcs11c.c |
|
64 @$(MAKE_OBJDIR) |
|
65 $(CC) -o $@ -c -O2 $(CFLAGS) $< |
|
66 endif |
|
67 endif |
|
68 endif |