pkg/solaris/Makefile
author glen.beasley%sun.com
Sun, 11 Jan 2004 03:28:19 +0000
branchNSPRPUB_RELEASE_4_1_BRANCH
changeset 3011 0b76d0a200bc1fecc0ff892610e1fd0f5be9abdf
parent 2847 05de8f429f14a9b445d15a7e5a10ea0f72c0b08a
child 3012 d5ed8ea899a0e8d372220c7ea5e64afcadec169c
permissions -rw-r--r--
added secv1 directory

#
# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"$Id$"
#

MOD_DEPTH = ../..

%: %.ksh
	$(RM) $@
	cp $< $@
	chmod +x $@

ifeq ($(USE_64), 1)
DIRS = \
	SUNWprx \
	SUNWprdx
else
DIRS = \
	SUNWpr \
	SUNWprd
endif

PROTO = \
	$(ROOT) \
	$(ROOT)/usr \
	$(ROOT)/usr/lib \
	$(ROOT)/usr/lib/mps \
	$(ROOT)/usr/lib/mps/secv1 \
	$(ROOT)/usr/lib/mps/secv1/cpu \
	$(ROOT)/usr/lib/mps/secv1/cpu/sparcv8plus \
	$(ROOT)/usr/include \
	$(ROOT)/usr/include/mps 

ifdef USE_64
PROTO += $(ROOT)/usr/lib/mps/sparcv9 \
	$(ROOT)/usr/include/mps/sparcv9
endif

include Makefile.com

awk_pkginfo: bld_awk_pkginfo
	./bld_awk_pkginfo -m $(MACH) -p "$(PRODUCT_VERSION)" -o $@ -v $(PRODUCT_VERSION)

all:: awk_pkginfo $(PROTO)
publish: awk_pkginfo $(PROTO)
	+$(LOOP_OVER_DIRS)

clean clobber::
	$(RM) awk_pkginfo bld_awk_pkginfo
	$(RM) -r $(ROOT)

$(ROOT) $(ROOT)/%:
	mkdir -p $@

ifdef USE_64
$(ROOT)/usr/lib/mps/sparcv9: $(ROOT)/usr/lib
	$(LN) -sf ../../../../$(DIST)/lib $@
$(ROOT)/usr/include/mps/sparcv9: $(ROOT)/usr/include
	$(LN) -sf ../../../../$(DIST)/include $@
else
$(ROOT)/usr/lib/mps/secv1: $(ROOT)/usr/lib
	mkdir -p $@
	cp $(DIST)/lib/*.so $@ 
$(ROOT)/usr/lib/mps/secv1/cpu/sparcv8plus: $(ROOT)/usr/lib
	$(LN) -sf ../../../../../../$(DIST)/lib $@
$(ROOT)/usr/include/mps: $(ROOT)/usr/include
	$(LN) -sf ../../../$(DIST)/include $@
endif