makefile.mk (3ba18013) | makefile.mk (e32eb42e) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 25 unchanged lines hidden (view full) --- 34 35.IF "$(ENABLE_NSS_MODULE)"!="YES" || "$(SYSTEM_NSS)"=="YES" 36 37all: 38 @echo "NSS will not be built because ENABLE_NSS_MODULE='$(ENABLE_NSS_MODULE)' and SYSTEM_NSS='$(SYSTEM_NSS)'" 39 40.ELSE 41 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 25 unchanged lines hidden (view full) --- 34 35.IF "$(ENABLE_NSS_MODULE)"!="YES" || "$(SYSTEM_NSS)"=="YES" 36 37all: 38 @echo "NSS will not be built because ENABLE_NSS_MODULE='$(ENABLE_NSS_MODULE)' and SYSTEM_NSS='$(SYSTEM_NSS)'" 39 40.ELSE 41 |
42TARFILE_NAME=nss-3.14.4-with-nspr-4.9.5 43TARFILE_MD5=067a04150b1d8b64f7da3019688a7547 44TARFILE_ROOTDIR=nss-3.14.4 | 42TARFILE_NAME=nss-3.25-with-nspr-4.12 43TARFILE_MD5=4ec9a36c0f7c9360b149491c013b8d50 44TARFILE_ROOTDIR=nss-3.25 |
45PATCH_FILES=nss.patch 46 47.IF "$(OS)"=="MACOSX" 48MACOS_SDK_DIR=$(SDK_PATH) 49.EXPORT : MACOS_SDK_DIR 50PATCH_FILES+=nss_macosx.patch 51.ENDIF # "$(OS)"=="MACOSX" 52 | 45PATCH_FILES=nss.patch 46 47.IF "$(OS)"=="MACOSX" 48MACOS_SDK_DIR=$(SDK_PATH) 49.EXPORT : MACOS_SDK_DIR 50PATCH_FILES+=nss_macosx.patch 51.ENDIF # "$(OS)"=="MACOSX" 52 |
53.IF "$(OS)"=="FREEBSD" 54PATCH_FILES+=nss_freebsd.patch 55.ENDIF 56 | |
57.IF "$(debug)" != "" 58.ELSE 59BUILD_OPT=1 60.EXPORT: BUILD_OPT 61.ENDIF 62 63.IF "$(BUILD64)"=="1" 64# force the 64-bit build mode for 64bit targets 65USE_64:=1 66.EXPORT : USE_64 67.ENDIF # "$(BUILD64)"=="1" 68 | 53.IF "$(debug)" != "" 54.ELSE 55BUILD_OPT=1 56.EXPORT: BUILD_OPT 57.ENDIF 58 59.IF "$(BUILD64)"=="1" 60# force the 64-bit build mode for 64bit targets 61USE_64:=1 62.EXPORT : USE_64 63.ENDIF # "$(BUILD64)"=="1" 64 |
69OUT2LIB=mozilla$/dist$/out$/lib$/*$(DLLPOST) | 65OUT2LIB=dist$/out$/lib$/*$(DLLPOST) |
70 | 66 |
71BUILD_DIR=mozilla$/security$/nss | 67BUILD_DIR=nss |
72BUILD_ACTION= $(GNUMAKE) nss_build_all 73#See #i105566# && moz#513024# 74.IF "$(OS)"=="LINUX" | 68BUILD_ACTION= $(GNUMAKE) nss_build_all 69#See #i105566# && moz#513024# 70.IF "$(OS)"=="LINUX" |
75BUILD_ACTION+=FREEBL_NO_DEPEND=1 FREEBL_LOWHASH=1 | 71BUILD_ACTION+=FREEBL_NO_DEPEND=1 FREEBL_LOWHASH=1 NSS_DISABLE_GTESTS=1 |
76PATCH_FILES+=nss_linux.patch 77.ENDIF 78 | 72PATCH_FILES+=nss_linux.patch 73.ENDIF 74 |
75.IF "$(OS)"=="FREEBSD" 76BUILD_ACTION+=FREEBL_LOWHASH=1 NSS_DISABLE_GTESTS=1 77.ENDIF |
|
79 | 78 |
79 |
|
80.IF "$(GUI)"=="WNT" 81 82.IF "$(COM)"=="GCC" 83 84PATCH_FILES+=nss.patch.mingw 85 86moz_build:=$(shell cygpath -p $(MOZILLABUILD)) 87PATH!:=$(moz_build)/bin:$(PATH) --- 6 unchanged lines hidden (view full) --- 94.ENDIF 95 96nss_LIBS= 97.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 98nss_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 99.ENDIF 100 101 | 80.IF "$(GUI)"=="WNT" 81 82.IF "$(COM)"=="GCC" 83 84PATCH_FILES+=nss.patch.mingw 85 86moz_build:=$(shell cygpath -p $(MOZILLABUILD)) 87PATH!:=$(moz_build)/bin:$(PATH) --- 6 unchanged lines hidden (view full) --- 94.ENDIF 95 96nss_LIBS= 97.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 98nss_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 99.ENDIF 100 101 |
102BUILD_DIR=mozilla$/security$/nss 103BUILD_ACTION=NS_USE_GCC=1 CC="$(nss_CC)" CXX="$(nss_CXX)" OS_LIBS="$(nss_LIBS)" OS_TARGET=WIN95 _WIN32_IE=0x500 PATH="$(PATH)" DEFINES=-D_WIN32_IE=0x500 $(GNUMAKE) nss_build_all | 102BUILD_DIR=nss 103BUILD_ACTION= NSS_DISABLE_GTESTS=1 NS_USE_GCC=1 CC="$(nss_CC)" CXX="$(nss_CXX)" OS_LIBS="$(nss_LIBS)" OS_TARGET=WIN95 _WIN32_IE=0x500 PATH="$(PATH)" DEFINES=-D_WIN32_IE=0x500 $(GNUMAKE) nss_build_all |
104 105OUT2LIB= \ | 104 105OUT2LIB= \ |
106 mozilla$/dist$/out$/lib$/libnspr4.a \ 107 mozilla$/dist$/out$/lib$/libnss3.a \ 108 mozilla$/dist$/out$/lib$/libnssdbm3.a \ 109 mozilla$/dist$/out$/lib$/libnssutil3.a \ 110 mozilla$/dist$/out$/lib$/libplc4.a \ 111 mozilla$/dist$/out$/lib$/libplds4.a \ 112 mozilla$/dist$/out$/lib$/libsmime3.a \ 113 mozilla$/dist$/out$/lib$/libsoftokn3.a \ 114 mozilla$/dist$/out$/lib$/libsqlite3.a \ 115 mozilla$/dist$/out$/lib$/libssl3.a | 106 dist$/out$/lib$/libnspr4.a \ 107 dist$/out$/lib$/libnss3.a \ 108 dist$/out$/lib$/libnssdbm3.a \ 109 dist$/out$/lib$/libnssutil3.a \ 110 dist$/out$/lib$/libplc4.a \ 111 dist$/out$/lib$/libplds4.a \ 112 dist$/out$/lib$/libsmime3.a \ 113 dist$/out$/lib$/libsoftokn3.a \ 114 dist$/out$/lib$/libsqlite3.a \ 115 dist$/out$/lib$/libssl3.a |
116 117.ELSE # "$(COM)"=="GCC" 118MOZ_MSVCVERSION= 9 119.EXPORT : MOZ_MSVCVERSION 120moz_build:=$(shell cygpath -p $(MOZILLABUILD)) 121 122#Using WINNT will cause at least that nspr4.dll, plc4.dll, plds4.dll 123#become libnspr4.dll, libplc4.dll, libplds4.dll 124#WINNT causes the use of Microsoft fibers (specific to Windows NT and Windows 2000). 125#OS_TARGET= WINNT 126OS_TARGET=WIN95 127.EXPORT : OS_TARGET 128 129# make use of stlport headerfiles 130EXT_USE_STLPORT=TRUE 131 132#To build nss one has to call "make nss_build_all" in | 116 117.ELSE # "$(COM)"=="GCC" 118MOZ_MSVCVERSION= 9 119.EXPORT : MOZ_MSVCVERSION 120moz_build:=$(shell cygpath -p $(MOZILLABUILD)) 121 122#Using WINNT will cause at least that nspr4.dll, plc4.dll, plds4.dll 123#become libnspr4.dll, libplc4.dll, libplds4.dll 124#WINNT causes the use of Microsoft fibers (specific to Windows NT and Windows 2000). 125#OS_TARGET= WINNT 126OS_TARGET=WIN95 127.EXPORT : OS_TARGET 128 129# make use of stlport headerfiles 130EXT_USE_STLPORT=TRUE 131 132#To build nss one has to call "make nss_build_all" in |
133#mozilla/security/nss 134NSS_BUILD_DIR= $(subst,\,/ $(PWD)/$(MISC)/build/$(TARFILE_ROOTDIR)/mozilla/security/nss) | 133#nss 134NSS_BUILD_DIR= $(subst,\,/ $(PWD)/$(MISC)/build/$(TARFILE_ROOTDIR)/nss) |
135BUILD_ACTION= PATH="$(PATH):$(moz_build)/msys/bin:$(moz_build)/moztools/bin" && $(subst,/,$/ $(MOZILLABUILD)/msys/bin/bash) -i \ | 135BUILD_ACTION= PATH="$(PATH):$(moz_build)/msys/bin:$(moz_build)/moztools/bin" && $(subst,/,$/ $(MOZILLABUILD)/msys/bin/bash) -i \ |
136 -c "cd $(NSS_BUILD_DIR) && make nss_build_all" | 136 -c "cd $(NSS_BUILD_DIR) && make nss_build_all NSS_DISABLE_GTESTS=1" |
137 138OUT2LIB= \ | 137 138OUT2LIB= \ |
139 mozilla$/dist$/out$/lib$/nspr4.lib \ 140 mozilla$/dist$/out$/lib$/nss3.lib \ 141 mozilla$/dist$/out$/lib$/nssdbm3.lib \ 142 mozilla$/dist$/out$/lib$/nssutil3.lib \ 143 mozilla$/dist$/out$/lib$/plc4.lib \ 144 mozilla$/dist$/out$/lib$/plds4.lib \ 145 mozilla$/dist$/out$/lib$/smime3.lib \ 146 mozilla$/dist$/out$/lib$/softokn3.lib \ 147 mozilla$/dist$/out$/lib$/sqlite3.lib \ 148 mozilla$/dist$/out$/lib$/ssl3.lib | 139 dist$/out$/lib$/nspr4.lib \ 140 dist$/out$/lib$/nss3.lib \ 141 dist$/out$/lib$/nssdbm3.lib \ 142 dist$/out$/lib$/nssutil3.lib \ 143 dist$/out$/lib$/plc4.lib \ 144 dist$/out$/lib$/plds4.lib \ 145 dist$/out$/lib$/smime3.lib \ 146 dist$/out$/lib$/softokn3.lib \ 147 dist$/out$/lib$/sqlite3.lib \ 148 dist$/out$/lib$/ssl3.lib |
149 150.ENDIF # "$(COM)"=="GCC" 151 | 149 150.ENDIF # "$(COM)"=="GCC" 151 |
152OUT2BIN=mozilla$/dist$/out$/lib$/*$(DLLPOST) | 152OUT2BIN=dist$/out$/lib$/*$(DLLPOST) |
153.ENDIF # "$(GUI)"=="WNT" 154 155 | 153.ENDIF # "$(GUI)"=="WNT" 154 155 |
156OUTDIR2INC=mozilla$/dist$/public$/nss mozilla$/dist$/out$/include | 156OUTDIR2INC=dist$/public$/nss dist$/out$/include |
157 158# --- Targets ------------------------------------------------------ 159 160.INCLUDE : set_ext.mk 161.INCLUDE : target.mk 162.INCLUDE : tg_ext.mk 163 164.ENDIF | 157 158# --- Targets ------------------------------------------------------ 159 160.INCLUDE : set_ext.mk 161.INCLUDE : target.mk 162.INCLUDE : tg_ext.mk 163 164.ENDIF |