xref: /illumos-gate/usr/src/ucbcmd/Makefile.ucbcmd (revision 5801b0f01c3c34499a929ed96164a5a68b470945)
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-gateLN=		ln
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
62cadd68eaSJohn Levon# don't lint any of ucbcmd
63cadd68eaSJohn LevonSMATCH=off
64cadd68eaSJohn Levon
657c478bd9Sstevel@tonic-gate# storing LDLIBS in two macros allows reordering of options
667c478bd9Sstevel@tonic-gateLDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
677c478bd9Sstevel@tonic-gateLDLIBS =        $(LDLIBS.cmd)
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gateLDFLAGS.cmd = \
708ad60789Srie	$(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
71*5801b0f0SToomas Soome	$(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) \
72*5801b0f0SToomas Soome	$(BDIRECT)
737c478bd9Sstevel@tonic-gate
748ad60789SrieLDFLAGS =       $(LDFLAGS.cmd)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate$(ROOTBIN)/%: %
777c478bd9Sstevel@tonic-gate	$(INS.file)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: %
807c478bd9Sstevel@tonic-gate	$(INS.file)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate$(ROOT4LIB)/%: %
837c478bd9Sstevel@tonic-gate	$(INS.file)
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate$(ROOTETC)/%: %
867c478bd9Sstevel@tonic-gate	$(INS.file)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate$(ROOTBIN64)/%: %
897c478bd9Sstevel@tonic-gate	$(INS.file)
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate$(ROOTBIN32)/%: %
927c478bd9Sstevel@tonic-gate	$(INS.file)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate# Define the majority text domain in this directory
957c478bd9Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_UCBCMD
96