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 57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only 67c478bd9Sstevel@tonic-gate# (the "License"). You may not use this file except in compliance 77c478bd9Sstevel@tonic-gate# with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 22b39fc4e4Smeem# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 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-gateCP= cp 387c478bd9Sstevel@tonic-gateSH= sh 397c478bd9Sstevel@tonic-gateCHMOD= chmod 407c478bd9Sstevel@tonic-gateMKDIR= mkdir 417c478bd9Sstevel@tonic-gateTOUCH= touch 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateFILEMODE= 0555 447c478bd9Sstevel@tonic-gateLIBFILEMODE= 0444 457c478bd9Sstevel@tonic-gateROOTBIN= $(ROOT)/usr/ucb 467c478bd9Sstevel@tonic-gateROOTLIB= $(ROOT)/usr/ucblib 477c478bd9Sstevel@tonic-gateROOT4LIB= $(ROOT)/usr/4lib 487c478bd9Sstevel@tonic-gateROOTETC= $(ROOT)/etc 497c478bd9Sstevel@tonic-gateROOTSHLIB= $(ROOT)/usr/share/lib 507c478bd9Sstevel@tonic-gateROOTBIN32= $(ROOTBIN)/$(MACH32) 517c478bd9Sstevel@tonic-gateROOTBIN64= $(ROOTBIN)/$(MACH64) 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gateROOTPROG= $(PROG:%=$(ROOTBIN)/%) 547c478bd9Sstevel@tonic-gateROOTLIBPROG= $(PROG:%=$(ROOTLIB)/%) 557c478bd9Sstevel@tonic-gateROOT4LIBPROG= $(PROG:%=$(ROOT4LIB)/%) 567c478bd9Sstevel@tonic-gateROOTETCPROG= $(PROG:%=$(ROOTETC)/%) 577c478bd9Sstevel@tonic-gateROOTPROG64= $(PROG:%=$(ROOTBIN64)/%) 587c478bd9Sstevel@tonic-gateROOTPROG32= $(PROG:%=$(ROOTBIN32)/%) 597c478bd9Sstevel@tonic-gate 607c478bd9Sstevel@tonic-gateISAEXEC= $(ROOT)/usr/lib/isaexec 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gateNX_MAP_i386= $(SRC)/cmd/mapfile_noexdata 637c478bd9Sstevel@tonic-gateNX_MAP_sparc= 647c478bd9Sstevel@tonic-gateNX_MAP= $(NX_MAP_$(MACH)) 657c478bd9Sstevel@tonic-gateNES_MAPFILE= $(SRC)/cmd/mapfile_noexstk $(NX_MAP) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate# storing LDLIBS in two macros allows reordering of options 687c478bd9Sstevel@tonic-gateLDLIBS.cmd = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3) 697c478bd9Sstevel@tonic-gateLDLIBS = $(LDLIBS.cmd) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gateLDFLAGS.cmd = \ 72*8ad60789Srie $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \ 737c478bd9Sstevel@tonic-gate $(NES_MAPFILE:%=-M%) \ 747c478bd9Sstevel@tonic-gate $(PGA_MAPFILE:%=-M%) 757c478bd9Sstevel@tonic-gate 76*8ad60789SrieLDFLAGS = $(LDFLAGS.cmd) 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gateSETRUNPATH= LD_RUN_PATH=/usr/ucblib 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate$(ROOTBIN)/%: % 817c478bd9Sstevel@tonic-gate $(INS.file) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: % 847c478bd9Sstevel@tonic-gate $(INS.file) 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate$(ROOT4LIB)/%: % 877c478bd9Sstevel@tonic-gate $(INS.file) 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gate$(ROOTETC)/%: % 907c478bd9Sstevel@tonic-gate $(INS.file) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate$(ROOTBIN64)/%: % 937c478bd9Sstevel@tonic-gate $(INS.file) 947c478bd9Sstevel@tonic-gate 957c478bd9Sstevel@tonic-gate$(ROOTBIN32)/%: % 967c478bd9Sstevel@tonic-gate $(INS.file) 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate# Define the majority text domain in this directory 997c478bd9Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_UCBCMD 100