michael@0: # michael@0: # Copyright 2005 Sun Microsystems, Inc. All rights reserved. michael@0: # Use is subject to license terms. michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: # michael@0: michael@0: CORE_DEPTH = ../../.. michael@0: michael@0: %: %.ksh michael@0: $(RM) $@ michael@0: cp $< $@ michael@0: chmod +x $@ michael@0: michael@0: HEADER_DIR = public/nss michael@0: michael@0: DIRS = \ michael@0: SUNWtls \ michael@0: SUNWtlsu \ michael@0: SUNWtlsd michael@0: michael@0: include Makefile.com michael@0: michael@0: PROTO = \ michael@0: $(ROOT) \ michael@0: $(ROOT)/usr/lib/mps \ michael@0: $(ROOT)/usr/include/mps \ michael@0: $(ROOT)/usr/sfw/bin michael@0: michael@0: ifeq ($(MACH), sparc) michael@0: PROTO += $(ROOT)/usr/lib/mps/sparcv9 \ michael@0: $(ROOT)/usr/sfw/bin/sparcv9 michael@0: endif michael@0: michael@0: ifeq ($(USE_64), 1) michael@0: ifeq ($(MACH), sparc) michael@0: # Sparc michael@0: PROTO += $(ROOT)/usr/lib/mps/sparcv9 \ michael@0: $(ROOT)/usr/sfw/bin/sparcv9 michael@0: else michael@0: # AMD64 michael@0: PROTO += $(ROOT)/usr/lib/mps/amd64 \ michael@0: $(ROOT)/usr/sfw/bin/amd64 michael@0: endif michael@0: DIST64 = $(DIST) michael@0: DIST32 = $(shell echo $(DIST) | sed -e "s|_64_OPT|_OPT|g" -e "s|_64_DBG|_DBG|g") michael@0: else michael@0: DIST32 = $(DIST) michael@0: DIST64 = $(shell echo $(DIST) | sed -e "s|_OPT|_64_OPT|g" -e "s|_DBG|_64_DBG|g") michael@0: endif michael@0: michael@0: awk_pkginfo: bld_awk_pkginfo michael@0: ./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION) michael@0: michael@0: all:: awk_pkginfo $(PROTO) michael@0: publish: awk_pkginfo $(PROTO) michael@0: +$(LOOP_OVER_DIRS) michael@0: michael@0: clean clobber:: michael@0: $(RM) awk_pkginfo bld_awk_pkginfo michael@0: $(RM) -r $(ROOT) michael@0: michael@0: $(ROOT): michael@0: mkdir -p $@ michael@0: michael@0: $(ROOT)/usr/lib/mps: michael@0: mkdir -p $@ michael@0: $(CP) -r $(DIST32)/lib/*.so $@ michael@0: $(CP) -r $(DIST32)/lib/*.chk $@ michael@0: $(ROOT)/usr/sfw/bin: michael@0: mkdir -p $@ michael@0: -$(CP) -r $(DIST32)/bin/* $@ michael@0: $(ROOT)/usr/include/mps: michael@0: mkdir -p $@ michael@0: $(CP) -r $(SOURCE_PREFIX)/$(HEADER_DIR)/*.h $@ michael@0: $(ROOT)/usr/lib/mps/sparcv9: michael@0: mkdir -p $@ michael@0: $(CP) -r $(DIST64)/lib/*.so $@ michael@0: $(CP) -r $(DIST64)/lib/*.chk $@ michael@0: $(ROOT)/usr/sfw/bin/sparcv9: michael@0: mkdir -p $@ michael@0: $(CP) -r $(DIST64)/bin/* $@ michael@0: $(ROOT)/usr/lib/mps/amd64: michael@0: mkdir -p $@ michael@0: $(CP) -r $(DIST64)/lib/*.so $@ michael@0: $(CP) -r $(DIST64)/lib/*.chk $@ michael@0: $(ROOT)/usr/sfw/bin/amd64: michael@0: mkdir -p $@ michael@0: $(CP) -r $(DIST64)/bin/* $@