diff options
author | Tim Taubert <ttaubert@mozilla.com> | 2017-06-08 16:57:35 +0200 |
---|---|---|
committer | Tim Taubert <ttaubert@mozilla.com> | 2017-06-08 16:57:35 +0200 |
commit | 3adde469bf542407a9f9a42593500af8bad76738 (patch) | |
tree | 75187b44bd7f9dcbd00a96d323166ffc35fffe36 /cpputil | |
parent | 810f0862e4edbb89af04bebb6738b9757a9d4ae1 (diff) | |
download | nss-hg-3adde469bf542407a9f9a42593500af8bad76738.tar.gz |
Bug 1357319 - Add proper Makefile for cpputil r=mt
Differential Revision: https://nss-review.dev.mozaws.net/D349
Diffstat (limited to 'cpputil')
-rw-r--r-- | cpputil/Makefile | 49 | ||||
-rw-r--r-- | cpputil/config.mk | 15 | ||||
-rw-r--r-- | cpputil/manifest.mn | 18 |
3 files changed, 82 insertions, 0 deletions
diff --git a/cpputil/Makefile b/cpputil/Makefile new file mode 100644 index 000000000..7adfc6117 --- /dev/null +++ b/cpputil/Makefile @@ -0,0 +1,49 @@ +#! gmake +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +####################################################################### +# (1) Include initial platform-independent assignments (MANDATORY). # +####################################################################### + +include manifest.mn + +####################################################################### +# (2) Include "global" configuration information. (OPTIONAL) # +####################################################################### + +include $(CORE_DEPTH)/coreconf/config.mk + +####################################################################### +# (3) Include "component" configuration information. (OPTIONAL) # +####################################################################### + +ifeq (WINNT,$(OS_ARCH)) +OS_CFLAGS += -EHsc +else +CXXFLAGS += -std=c++0x +endif + +####################################################################### +# (4) Include "local" platform-dependent assignments (OPTIONAL). # +####################################################################### + +include config.mk + +####################################################################### +# (5) Execute "global" rules. (OPTIONAL) # +####################################################################### + +include $(CORE_DEPTH)/coreconf/rules.mk + +####################################################################### +# (6) Execute "component" rules. (OPTIONAL) # +####################################################################### + + + +####################################################################### +# (7) Execute "local" rules. (OPTIONAL). # +####################################################################### diff --git a/cpputil/config.mk b/cpputil/config.mk new file mode 100644 index 000000000..b8c03de79 --- /dev/null +++ b/cpputil/config.mk @@ -0,0 +1,15 @@ +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +# +# Override TARGETS variable so that only static libraries +# are specifed as dependencies within rules.mk. +# + +TARGETS = $(LIBRARY) +SHARED_LIBRARY = +IMPORT_LIBRARY = +PROGRAM = + diff --git a/cpputil/manifest.mn b/cpputil/manifest.mn new file mode 100644 index 000000000..ad2d31b45 --- /dev/null +++ b/cpputil/manifest.mn @@ -0,0 +1,18 @@ +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +CORE_DEPTH = .. +DEPTH = .. + +MODULE = nss +LIBRARY_NAME = cpputil + +CPPSRCS = \ + dummy_io.cc \ + dummy_io_fwd.cc \ + tls_parser.cc \ + $(NULL) + +EXPORTS = \ + $(NULL) |