1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate# with the License. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate# and limitations under the License. 13*7c478bd9Sstevel@tonic-gate# 14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# 23*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 25*7c478bd9Sstevel@tonic-gate# 26*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 27*7c478bd9Sstevel@tonic-gate# 28*7c478bd9Sstevel@tonic-gate# ucbcmd/Makefile.ucbcmd 29*7c478bd9Sstevel@tonic-gate# 30*7c478bd9Sstevel@tonic-gate# Definitions common to ucb command source. 31*7c478bd9Sstevel@tonic-gate# 32*7c478bd9Sstevel@tonic-gate# include global definitions; SRC should be defined in the shell. 33*7c478bd9Sstevel@tonic-gate# SRC is needed until RFE 1026993 is implemented. 34*7c478bd9Sstevel@tonic-gate 35*7c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gateLN= ln 38*7c478bd9Sstevel@tonic-gateCP= cp 39*7c478bd9Sstevel@tonic-gateSH= sh 40*7c478bd9Sstevel@tonic-gateCHMOD= chmod 41*7c478bd9Sstevel@tonic-gateMKDIR= mkdir 42*7c478bd9Sstevel@tonic-gateTOUCH= touch 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gateLDFLAGS += $(STRIPFLAG) 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gateFILEMODE= 0555 47*7c478bd9Sstevel@tonic-gateLIBFILEMODE= 0444 48*7c478bd9Sstevel@tonic-gateROOTBIN= $(ROOT)/usr/ucb 49*7c478bd9Sstevel@tonic-gateROOTLIB= $(ROOT)/usr/ucblib 50*7c478bd9Sstevel@tonic-gateROOT4LIB= $(ROOT)/usr/4lib 51*7c478bd9Sstevel@tonic-gateROOTETC= $(ROOT)/etc 52*7c478bd9Sstevel@tonic-gateROOTSHLIB= $(ROOT)/usr/share/lib 53*7c478bd9Sstevel@tonic-gateROOTBIN32= $(ROOTBIN)/$(MACH32) 54*7c478bd9Sstevel@tonic-gateROOTBIN64= $(ROOTBIN)/$(MACH64) 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gateROOTPROG= $(PROG:%=$(ROOTBIN)/%) 57*7c478bd9Sstevel@tonic-gateROOTSHFILES= $(SHFILES:%=$(ROOTBIN)/%) 58*7c478bd9Sstevel@tonic-gateROOTLIBPROG= $(PROG:%=$(ROOTLIB)/%) 59*7c478bd9Sstevel@tonic-gateROOT4LIBPROG= $(PROG:%=$(ROOT4LIB)/%) 60*7c478bd9Sstevel@tonic-gateROOTETCPROG= $(PROG:%=$(ROOTETC)/%) 61*7c478bd9Sstevel@tonic-gateROOTPROG64= $(PROG:%=$(ROOTBIN64)/%) 62*7c478bd9Sstevel@tonic-gateROOTPROG32= $(PROG:%=$(ROOTBIN32)/%) 63*7c478bd9Sstevel@tonic-gate 64*7c478bd9Sstevel@tonic-gateISAEXEC= $(ROOT)/usr/lib/isaexec 65*7c478bd9Sstevel@tonic-gate 66*7c478bd9Sstevel@tonic-gateNX_MAP_i386= $(SRC)/cmd/mapfile_noexdata 67*7c478bd9Sstevel@tonic-gateNX_MAP_sparc= 68*7c478bd9Sstevel@tonic-gateNX_MAP= $(NX_MAP_$(MACH)) 69*7c478bd9Sstevel@tonic-gateNES_MAPFILE= $(SRC)/cmd/mapfile_noexstk $(NX_MAP) 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gate# storing LDLIBS in two macros allows reordering of options 72*7c478bd9Sstevel@tonic-gateLDLIBS.cmd = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3) 73*7c478bd9Sstevel@tonic-gateLDLIBS = $(LDLIBS.cmd) 74*7c478bd9Sstevel@tonic-gate 75*7c478bd9Sstevel@tonic-gateLDFLAGS.cmd = \ 76*7c478bd9Sstevel@tonic-gate $(STRIPFLAG) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \ 77*7c478bd9Sstevel@tonic-gate $(NES_MAPFILE:%=-M%) \ 78*7c478bd9Sstevel@tonic-gate $(PGA_MAPFILE:%=-M%) 79*7c478bd9Sstevel@tonic-gate 80*7c478bd9Sstevel@tonic-gateLDFLAGS = $(STRIPFLAG) $(LDFLAGS.cmd) 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gateSETRUNPATH= LD_RUN_PATH=/usr/ucblib 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate$(ROOTBIN)/%: % 85*7c478bd9Sstevel@tonic-gate $(INS.file) 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: % 88*7c478bd9Sstevel@tonic-gate $(INS.file) 89*7c478bd9Sstevel@tonic-gate 90*7c478bd9Sstevel@tonic-gate$(ROOT4LIB)/%: % 91*7c478bd9Sstevel@tonic-gate $(INS.file) 92*7c478bd9Sstevel@tonic-gate 93*7c478bd9Sstevel@tonic-gate$(ROOTETC)/%: % 94*7c478bd9Sstevel@tonic-gate $(INS.file) 95*7c478bd9Sstevel@tonic-gate 96*7c478bd9Sstevel@tonic-gate$(ROOTBIN64)/%: % 97*7c478bd9Sstevel@tonic-gate $(INS.file) 98*7c478bd9Sstevel@tonic-gate 99*7c478bd9Sstevel@tonic-gate$(ROOTBIN32)/%: % 100*7c478bd9Sstevel@tonic-gate $(INS.file) 101*7c478bd9Sstevel@tonic-gate 102*7c478bd9Sstevel@tonic-gate# Define the majority text domain in this directory 103*7c478bd9Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_UCBCMD 104