1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the License). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/CDDL.txt 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/CDDL.txt. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets [] replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #ident "@(#)Makefile.cmd 1.7 07/11/18 SMI" 27 # 28 # cmd/Makefile.cmd 29 # 30 # Definitions common to command source. 31 # 32 # include global definitions; SRC should be defined in the shell. 33 34 include $(SRC)/Makefile.master 35 36 LDLIBS = $(LDLIBS.cmd) 37 LDFLAGS.cmd = $(STRIPFLAG) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) 38 LDFLAGS = $(LDFLAGS.cmd) 39 40 LINTOUT= lint.out 41 42 .KEEP_STATE: 43 44 ROOTETC= $(VROOT)/etc 45 46 # 47 # Clustering specific additions to Makefile.cmd 48 # 49 50 CLASS = 32 51 52 ROOTCLUSTETC= $(VROOT)/etc/cluster 53 ROOTCLUSTINC= $(VROOT)/usr/cluster/include 54 ROOTCLUSTBIN= $(VROOT)/usr/cluster/bin 55 ROOTCLUSTLIB= $(VROOT)/usr/cluster/lib 56 ROOTOPT= $(VROOT)/opt/$(PKGNAME) 57 ROOTOPTBIN= $(VROOT)/opt/$(PKGNAME)/bin 58 ROOTOPTBIN32= $(VROOT)/opt/$(PKGNAME)/bin/sparcv7 59 ROOTOPTBIN64= $(VROOT)/opt/$(PKGNAME)/bin/sparcv9 60 ROOTOPTETC= $(VROOT)/opt/$(PKGNAME)/etc 61 ROOTOPTETC32= $(VROOT)/opt/$(PKGNAME)/etc/sparcv7 62 ROOTOPTETC64= $(VROOT)/opt/$(PKGNAME)/etc/sparcv9 63 ROOTOPTLIB= $(VROOT)/opt/$(PKGNAME)/lib 64 ROOTOPTLIB32= $(VROOT)/opt/$(PKGNAME)/lib/sparcv7 65 ROOTOPTLIB64= $(VROOT)/opt/$(PKGNAME)/lib/sparcv9 66 ROOTCLUSTLIBRGM= $(ROOTCLUSTLIB)/rgm 67 ROOTCLUSTRT= $(ROOTCLUSTLIBRGM)/rt/$(RTDIRNAME) 68 ROOTCLUSTRTREG= $(ROOTCLUSTLIBRGM)/rtreg 69 70 ROOTCLUSTPROG= $(PROG:%=$(ROOTCLUSTBIN)/%) 71 ROOTOPTBINPROG= $(PROG:%=$(ROOTOPTBIN)/%) 72 ROOTOPTBINPROG32= $(PROG:%=$(ROOTOPTBIN32)/%) 73 ROOTOPTBINPROG64= $(PROG:%=$(ROOTOPTBIN64)/%) 74 ROOTOPTETCPROG= $(PROG:%=$(ROOTOPTETC)/%) 75 ROOTOPTETCSCRIPTS= $(SCRIPTS:%=$(ROOTOPTETC)/%) 76 ROOTOPTETCPROG32= $(PROG:%=$(ROOTOPTETC32)/%) 77 ROOTOPTETCPROG64= $(PROG:%=$(ROOTOPTETC64)/%) 78 ROOTOPTETCCONF= $(CONF:%=$(ROOTOPTETC)/%) 79 ROOTOPTETCRTR= $(RTRFILE:%=$(ROOTOPTETC)/%) 80 ROOTOPTLIBPROG= $(PROG:%=$(ROOTOPTLIB)/%) 81 ROOTOPTLIBPROG32= $(PROG:%=$(ROOTOPTLIB32)/%) 82 ROOTOPTLIBPROG64= $(PROG:%=$(ROOTOPTLIB64)/%) 83 ROOTCLUSTRTPROG= $(PROG:%=$(ROOTCLUSTRT)/%) 84 ROOTCLUSTRTREGRTRFILE= $(RTRFILE:%=$(ROOTCLUSTRTREG)/%) 85 86 # runtime utilities for data-service builder created resource types. 87 ROOTWZDUTIL=$(VROOT)/usr/cluster/lib/scdsbuilder/util 88 89 # Geo directories 90 ROOTCLUSTLIBGEOLIB= $(ROOTCLUSTLIB)/geo/lib 91 ROOTCLUSTLIBGEORT= $(ROOTCLUSTLIB)/geo/rt 92 ROOTCLUSTLIBGEORTBIN= $(ROOTCLUSTLIB)/geo/rt/bin 93 ROOTCLUSTLIBGEORTETC= $(ROOTCLUSTLIB)/geo/rt/etc 94 ROOTCLUSTLIBGEOCLI= $(ROOTCLUSTLIB)/geo/cli 95 96 ROOTOPTRT= $(ROOTOPT)/rt 97 ROOTOPTRTBIN= $(ROOTOPT)/rt/bin 98 ROOTOPTRTETC= $(ROOTOPT)/rt/etc 99 ROOTOPTRTETCRTR= $(RTRFILE:%=$(ROOTOPTRTETC)/%) 100 101 ROOTCLUSTGEOLIBPROG= $(PROG:%=$(ROOTCLUSTLIBGEOLIB)/%) 102 ROOTOPTRTBINPROG= $(PROG:%=$(ROOTOPTRTBIN)/%) 103 104 ROOTOPTLIBPROG= $(PROG:%=$(ROOTOPTLIB)/%) 105 106 CLOBBERFILES += $(LINTFILES) $(PIFILES) $(CHECK_FILES) 107