17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 524da5b34Srie# Common Development and Distribution License (the "License"). 624da5b34Srie# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 2124da5b34Srie 2224da5b34Srie# 23*bea83d02Smike_s# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# ucbcmd/Makefile.ucbcmd 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# Definitions common to ucb command source. 307c478bd9Sstevel@tonic-gate# 317c478bd9Sstevel@tonic-gate# include global definitions; SRC should be defined in the shell. 327c478bd9Sstevel@tonic-gate# SRC is needed until RFE 1026993 is implemented. 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateLN= ln 377c478bd9Sstevel@tonic-gateSH= sh 387c478bd9Sstevel@tonic-gateCHMOD= chmod 397c478bd9Sstevel@tonic-gateMKDIR= mkdir 407c478bd9Sstevel@tonic-gateTOUCH= touch 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateFILEMODE= 0555 437c478bd9Sstevel@tonic-gateLIBFILEMODE= 0444 447c478bd9Sstevel@tonic-gateROOTBIN= $(ROOT)/usr/ucb 457c478bd9Sstevel@tonic-gateROOTLIB= $(ROOT)/usr/ucblib 467c478bd9Sstevel@tonic-gateROOT4LIB= $(ROOT)/usr/4lib 477c478bd9Sstevel@tonic-gateROOTETC= $(ROOT)/etc 487c478bd9Sstevel@tonic-gateROOTSHLIB= $(ROOT)/usr/share/lib 497c478bd9Sstevel@tonic-gateROOTBIN32= $(ROOTBIN)/$(MACH32) 507c478bd9Sstevel@tonic-gateROOTBIN64= $(ROOTBIN)/$(MACH64) 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateROOTPROG= $(PROG:%=$(ROOTBIN)/%) 537c478bd9Sstevel@tonic-gateROOTLIBPROG= $(PROG:%=$(ROOTLIB)/%) 547c478bd9Sstevel@tonic-gateROOT4LIBPROG= $(PROG:%=$(ROOT4LIB)/%) 557c478bd9Sstevel@tonic-gateROOTETCPROG= $(PROG:%=$(ROOTETC)/%) 567c478bd9Sstevel@tonic-gateROOTPROG64= $(PROG:%=$(ROOTBIN64)/%) 577c478bd9Sstevel@tonic-gateROOTPROG32= $(PROG:%=$(ROOTBIN32)/%) 587c478bd9Sstevel@tonic-gate 597c478bd9Sstevel@tonic-gateISAEXEC= $(ROOT)/usr/lib/isaexec 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gate# storing LDLIBS in two macros allows reordering of options 627c478bd9Sstevel@tonic-gateLDLIBS.cmd = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3) 637c478bd9Sstevel@tonic-gateLDLIBS = $(LDLIBS.cmd) 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateLDFLAGS.cmd = \ 668ad60789Srie $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \ 6724da5b34Srie $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) 687c478bd9Sstevel@tonic-gate 698ad60789SrieLDFLAGS = $(LDFLAGS.cmd) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate$(ROOTBIN)/%: % 727c478bd9Sstevel@tonic-gate $(INS.file) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: % 757c478bd9Sstevel@tonic-gate $(INS.file) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate$(ROOT4LIB)/%: % 787c478bd9Sstevel@tonic-gate $(INS.file) 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate$(ROOTETC)/%: % 817c478bd9Sstevel@tonic-gate $(INS.file) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate$(ROOTBIN64)/%: % 847c478bd9Sstevel@tonic-gate $(INS.file) 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate$(ROOTBIN32)/%: % 877c478bd9Sstevel@tonic-gate $(INS.file) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gate# Define the majority text domain in this directory 907c478bd9Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_UCBCMD 91