Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | # |
michael@0 | 2 | # Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
michael@0 | 3 | # Use is subject to license terms. |
michael@0 | 4 | # |
michael@0 | 5 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 6 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 7 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 8 | # |
michael@0 | 9 | |
michael@0 | 10 | CORE_DEPTH = ../../.. |
michael@0 | 11 | |
michael@0 | 12 | %: %.ksh |
michael@0 | 13 | $(RM) $@ |
michael@0 | 14 | cp $< $@ |
michael@0 | 15 | chmod +x $@ |
michael@0 | 16 | |
michael@0 | 17 | HEADER_DIR = public/nss |
michael@0 | 18 | |
michael@0 | 19 | DIRS = \ |
michael@0 | 20 | SUNWtls \ |
michael@0 | 21 | SUNWtlsu \ |
michael@0 | 22 | SUNWtlsd |
michael@0 | 23 | |
michael@0 | 24 | include Makefile.com |
michael@0 | 25 | |
michael@0 | 26 | PROTO = \ |
michael@0 | 27 | $(ROOT) \ |
michael@0 | 28 | $(ROOT)/usr/lib/mps \ |
michael@0 | 29 | $(ROOT)/usr/include/mps \ |
michael@0 | 30 | $(ROOT)/usr/sfw/bin |
michael@0 | 31 | |
michael@0 | 32 | ifeq ($(MACH), sparc) |
michael@0 | 33 | PROTO += $(ROOT)/usr/lib/mps/sparcv9 \ |
michael@0 | 34 | $(ROOT)/usr/sfw/bin/sparcv9 |
michael@0 | 35 | endif |
michael@0 | 36 | |
michael@0 | 37 | ifeq ($(USE_64), 1) |
michael@0 | 38 | ifeq ($(MACH), sparc) |
michael@0 | 39 | # Sparc |
michael@0 | 40 | PROTO += $(ROOT)/usr/lib/mps/sparcv9 \ |
michael@0 | 41 | $(ROOT)/usr/sfw/bin/sparcv9 |
michael@0 | 42 | else |
michael@0 | 43 | # AMD64 |
michael@0 | 44 | PROTO += $(ROOT)/usr/lib/mps/amd64 \ |
michael@0 | 45 | $(ROOT)/usr/sfw/bin/amd64 |
michael@0 | 46 | endif |
michael@0 | 47 | DIST64 = $(DIST) |
michael@0 | 48 | DIST32 = $(shell echo $(DIST) | sed -e "s|_64_OPT|_OPT|g" -e "s|_64_DBG|_DBG|g") |
michael@0 | 49 | else |
michael@0 | 50 | DIST32 = $(DIST) |
michael@0 | 51 | DIST64 = $(shell echo $(DIST) | sed -e "s|_OPT|_64_OPT|g" -e "s|_DBG|_64_DBG|g") |
michael@0 | 52 | endif |
michael@0 | 53 | |
michael@0 | 54 | awk_pkginfo: bld_awk_pkginfo |
michael@0 | 55 | ./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION) |
michael@0 | 56 | |
michael@0 | 57 | all:: awk_pkginfo $(PROTO) |
michael@0 | 58 | publish: awk_pkginfo $(PROTO) |
michael@0 | 59 | +$(LOOP_OVER_DIRS) |
michael@0 | 60 | |
michael@0 | 61 | clean clobber:: |
michael@0 | 62 | $(RM) awk_pkginfo bld_awk_pkginfo |
michael@0 | 63 | $(RM) -r $(ROOT) |
michael@0 | 64 | |
michael@0 | 65 | $(ROOT): |
michael@0 | 66 | mkdir -p $@ |
michael@0 | 67 | |
michael@0 | 68 | $(ROOT)/usr/lib/mps: |
michael@0 | 69 | mkdir -p $@ |
michael@0 | 70 | $(CP) -r $(DIST32)/lib/*.so $@ |
michael@0 | 71 | $(CP) -r $(DIST32)/lib/*.chk $@ |
michael@0 | 72 | $(ROOT)/usr/sfw/bin: |
michael@0 | 73 | mkdir -p $@ |
michael@0 | 74 | -$(CP) -r $(DIST32)/bin/* $@ |
michael@0 | 75 | $(ROOT)/usr/include/mps: |
michael@0 | 76 | mkdir -p $@ |
michael@0 | 77 | $(CP) -r $(SOURCE_PREFIX)/$(HEADER_DIR)/*.h $@ |
michael@0 | 78 | $(ROOT)/usr/lib/mps/sparcv9: |
michael@0 | 79 | mkdir -p $@ |
michael@0 | 80 | $(CP) -r $(DIST64)/lib/*.so $@ |
michael@0 | 81 | $(CP) -r $(DIST64)/lib/*.chk $@ |
michael@0 | 82 | $(ROOT)/usr/sfw/bin/sparcv9: |
michael@0 | 83 | mkdir -p $@ |
michael@0 | 84 | $(CP) -r $(DIST64)/bin/* $@ |
michael@0 | 85 | $(ROOT)/usr/lib/mps/amd64: |
michael@0 | 86 | mkdir -p $@ |
michael@0 | 87 | $(CP) -r $(DIST64)/lib/*.so $@ |
michael@0 | 88 | $(CP) -r $(DIST64)/lib/*.chk $@ |
michael@0 | 89 | $(ROOT)/usr/sfw/bin/amd64: |
michael@0 | 90 | mkdir -p $@ |
michael@0 | 91 | $(CP) -r $(DIST64)/bin/* $@ |