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