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