xref: /titanic_51/usr/src/ucbcmd/Makefile.ucbcmd (revision 8eea8e29cc4374d1ee24c25a07f45af132db3499)
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#
23# Copyright 2004 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
44LDFLAGS +=	$(STRIPFLAG)
45
46FILEMODE=	0555
47LIBFILEMODE=	0444
48ROOTBIN=	$(ROOT)/usr/ucb
49ROOTLIB=	$(ROOT)/usr/ucblib
50ROOT4LIB=	$(ROOT)/usr/4lib
51ROOTETC=	$(ROOT)/etc
52ROOTSHLIB=	$(ROOT)/usr/share/lib
53ROOTBIN32=	$(ROOTBIN)/$(MACH32)
54ROOTBIN64=	$(ROOTBIN)/$(MACH64)
55
56ROOTPROG=	$(PROG:%=$(ROOTBIN)/%)
57ROOTSHFILES=	$(SHFILES:%=$(ROOTBIN)/%)
58ROOTLIBPROG=	$(PROG:%=$(ROOTLIB)/%)
59ROOT4LIBPROG=	$(PROG:%=$(ROOT4LIB)/%)
60ROOTETCPROG=	$(PROG:%=$(ROOTETC)/%)
61ROOTPROG64=	$(PROG:%=$(ROOTBIN64)/%)
62ROOTPROG32=	$(PROG:%=$(ROOTBIN32)/%)
63
64ISAEXEC=	$(ROOT)/usr/lib/isaexec
65
66NX_MAP_i386=	$(SRC)/cmd/mapfile_noexdata
67NX_MAP_sparc=
68NX_MAP=		$(NX_MAP_$(MACH))
69NES_MAPFILE=	$(SRC)/cmd/mapfile_noexstk $(NX_MAP)
70
71# storing LDLIBS in two macros allows reordering of options
72LDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
73LDLIBS =        $(LDLIBS.cmd)
74
75LDFLAGS.cmd = \
76	$(STRIPFLAG) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
77	$(NES_MAPFILE:%=-M%) \
78	$(PGA_MAPFILE:%=-M%)
79
80LDFLAGS =       $(STRIPFLAG) $(LDFLAGS.cmd)
81
82SETRUNPATH=	LD_RUN_PATH=/usr/ucblib
83
84$(ROOTBIN)/%: %
85	$(INS.file)
86
87$(ROOTLIB)/%: %
88	$(INS.file)
89
90$(ROOT4LIB)/%: %
91	$(INS.file)
92
93$(ROOTETC)/%: %
94	$(INS.file)
95
96$(ROOTBIN64)/%: %
97	$(INS.file)
98
99$(ROOTBIN32)/%: %
100	$(INS.file)
101
102# Define the majority text domain in this directory
103TEXT_DOMAIN= SUNW_OST_UCBCMD
104