summaryrefslogtreecommitdiff
path: root/libs/nss/src/lib/jar/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nss/src/lib/jar/Makefile')
-rw-r--r--libs/nss/src/lib/jar/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/libs/nss/src/lib/jar/Makefile b/libs/nss/src/lib/jar/Makefile
index 245c127a4..650c2ae86 100644
--- a/libs/nss/src/lib/jar/Makefile
+++ b/libs/nss/src/lib/jar/Makefile
@@ -5,7 +5,19 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
include manifest.mn
+
include $(CORE_DEPTH)/coreconf/config.mk
-include config.mk
-include $(CORE_DEPTH)/coreconf/rules.mk
+# NSS_X86 means the target is a 32-bits x86 CPU architecture
+# NSS_X64 means the target is a 64-bits x64 CPU architecture
+# NSS_X86_OR_X64 means the target is either x86 or x64
+ifeq (,$(filter-out i386 x386 x86 x86_64,$(CPU_ARCH)))
+ DEFINES += -DNSS_X86_OR_X64
+ifdef USE_64
+ DEFINES += -DNSS_X64
+else
+ DEFINES += -DNSS_X86
+endif
+endif
+
+include $(CORE_DEPTH)/coreconf/rules.mk