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# 23bea83d02Smike_s# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 26cadd68eaSJohn Levon# Copyright (c) 2018, Joyent, Inc. 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# ucbcmd/Makefile.ucbcmd 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate# Definitions common to ucb command source. 317c478bd9Sstevel@tonic-gate# 327c478bd9Sstevel@tonic-gate# include global definitions; SRC should be defined in the shell. 337c478bd9Sstevel@tonic-gate# SRC is needed until RFE 1026993 is implemented. 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gateFILEMODE= 0555 387c478bd9Sstevel@tonic-gateLIBFILEMODE= 0444 397c478bd9Sstevel@tonic-gateROOTBIN= $(ROOT)/usr/ucb 407c478bd9Sstevel@tonic-gateROOTLIB= $(ROOT)/usr/ucblib 417c478bd9Sstevel@tonic-gateROOTETC= $(ROOT)/etc 427c478bd9Sstevel@tonic-gateROOTSHLIB= $(ROOT)/usr/share/lib 437c478bd9Sstevel@tonic-gateROOTBIN32= $(ROOTBIN)/$(MACH32) 447c478bd9Sstevel@tonic-gateROOTBIN64= $(ROOTBIN)/$(MACH64) 457c478bd9Sstevel@tonic-gate 467c478bd9Sstevel@tonic-gateROOTPROG= $(PROG:%=$(ROOTBIN)/%) 477c478bd9Sstevel@tonic-gateROOTLIBPROG= $(PROG:%=$(ROOTLIB)/%) 487c478bd9Sstevel@tonic-gateROOTETCPROG= $(PROG:%=$(ROOTETC)/%) 497c478bd9Sstevel@tonic-gateROOTPROG64= $(PROG:%=$(ROOTBIN64)/%) 507c478bd9Sstevel@tonic-gateROOTPROG32= $(PROG:%=$(ROOTBIN32)/%) 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gateISAEXEC= $(ROOT)/usr/lib/isaexec 537c478bd9Sstevel@tonic-gate 54cadd68eaSJohn Levon# don't lint any of ucbcmd 55cadd68eaSJohn LevonSMATCH=off 56cadd68eaSJohn Levon 577c478bd9Sstevel@tonic-gate# storing LDLIBS in two macros allows reordering of options 587c478bd9Sstevel@tonic-gateLDLIBS.cmd = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3) 597c478bd9Sstevel@tonic-gateLDLIBS = $(LDLIBS.cmd) 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gateLDFLAGS.cmd = \ 628ad60789Srie $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \ 63*85f4cb87SRichard Lowe $(MAPFILE.NES:%=-Wl,-M%) $(MAPFILE.PGA:%=-Wl,-M%) $(MAPFILE.NED:%=-Wl,-M%) \ 645801b0f0SToomas Soome $(BDIRECT) 657c478bd9Sstevel@tonic-gate 668ad60789SrieLDFLAGS = $(LDFLAGS.cmd) 677c478bd9Sstevel@tonic-gate 687c478bd9Sstevel@tonic-gate$(ROOTBIN)/%: % 697c478bd9Sstevel@tonic-gate $(INS.file) 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: % 727c478bd9Sstevel@tonic-gate $(INS.file) 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate$(ROOTETC)/%: % 757c478bd9Sstevel@tonic-gate $(INS.file) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate$(ROOTBIN64)/%: % 787c478bd9Sstevel@tonic-gate $(INS.file) 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate$(ROOTBIN32)/%: % 817c478bd9Sstevel@tonic-gate $(INS.file) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate# Define the majority text domain in this directory 847c478bd9Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_UCBCMD 85