xref: /illumos-gate/usr/src/ucbcmd/Makefile.ucbcmd (revision d362b749)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# ucbcmd/Makefile.ucbcmd
29#
30# Definitions common to ucb command source.
31#
32# include global definitions; SRC should be defined in the shell.
33# SRC is needed until RFE 1026993 is implemented.
34
35include $(SRC)/Makefile.master
36
37LN=		ln
38CP=		cp
39SH=		sh
40CHMOD=		chmod
41MKDIR=		mkdir
42TOUCH=		touch
43
44FILEMODE=	0555
45LIBFILEMODE=	0444
46ROOTBIN=	$(ROOT)/usr/ucb
47ROOTLIB=	$(ROOT)/usr/ucblib
48ROOT4LIB=	$(ROOT)/usr/4lib
49ROOTETC=	$(ROOT)/etc
50ROOTSHLIB=	$(ROOT)/usr/share/lib
51ROOTBIN32=	$(ROOTBIN)/$(MACH32)
52ROOTBIN64=	$(ROOTBIN)/$(MACH64)
53
54ROOTPROG=	$(PROG:%=$(ROOTBIN)/%)
55ROOTLIBPROG=	$(PROG:%=$(ROOTLIB)/%)
56ROOT4LIBPROG=	$(PROG:%=$(ROOT4LIB)/%)
57ROOTETCPROG=	$(PROG:%=$(ROOTETC)/%)
58ROOTPROG64=	$(PROG:%=$(ROOTBIN64)/%)
59ROOTPROG32=	$(PROG:%=$(ROOTBIN32)/%)
60
61ISAEXEC=	$(ROOT)/usr/lib/isaexec
62
63# storing LDLIBS in two macros allows reordering of options
64LDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
65LDLIBS =        $(LDLIBS.cmd)
66
67LDFLAGS.cmd = \
68	$(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
69	$(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
70
71LDFLAGS =       $(LDFLAGS.cmd)
72
73SETRUNPATH=	LD_RUN_PATH=/usr/ucblib
74
75$(ROOTBIN)/%: %
76	$(INS.file)
77
78$(ROOTLIB)/%: %
79	$(INS.file)
80
81$(ROOT4LIB)/%: %
82	$(INS.file)
83
84$(ROOTETC)/%: %
85	$(INS.file)
86
87$(ROOTBIN64)/%: %
88	$(INS.file)
89
90$(ROOTBIN32)/%: %
91	$(INS.file)
92
93# Define the majority text domain in this directory
94TEXT_DOMAIN= SUNW_OST_UCBCMD
95