xref: /titanic_52/usr/src/ucbcmd/Makefile.ucbcmd (revision 2b24ab6b3865caeede9eeb9db6b83e1d89dcd1ea)
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 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
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
37SH=		sh
38CHMOD=		chmod
39MKDIR=		mkdir
40TOUCH=		touch
41
42FILEMODE=	0555
43LIBFILEMODE=	0444
44ROOTBIN=	$(ROOT)/usr/ucb
45ROOTLIB=	$(ROOT)/usr/ucblib
46ROOT4LIB=	$(ROOT)/usr/4lib
47ROOTETC=	$(ROOT)/etc
48ROOTSHLIB=	$(ROOT)/usr/share/lib
49ROOTBIN32=	$(ROOTBIN)/$(MACH32)
50ROOTBIN64=	$(ROOTBIN)/$(MACH64)
51
52ROOTPROG=	$(PROG:%=$(ROOTBIN)/%)
53ROOTLIBPROG=	$(PROG:%=$(ROOTLIB)/%)
54ROOT4LIBPROG=	$(PROG:%=$(ROOT4LIB)/%)
55ROOTETCPROG=	$(PROG:%=$(ROOTETC)/%)
56ROOTPROG64=	$(PROG:%=$(ROOTBIN64)/%)
57ROOTPROG32=	$(PROG:%=$(ROOTBIN32)/%)
58
59ISAEXEC=	$(ROOT)/usr/lib/isaexec
60
61# storing LDLIBS in two macros allows reordering of options
62LDLIBS.cmd =    $(ENVLDLIBS1)  $(ENVLDLIBS2)  $(ENVLDLIBS3)
63LDLIBS =        $(LDLIBS.cmd)
64
65LDFLAGS.cmd = \
66	$(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
67	$(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
68
69LDFLAGS =       $(LDFLAGS.cmd)
70
71$(ROOTBIN)/%: %
72	$(INS.file)
73
74$(ROOTLIB)/%: %
75	$(INS.file)
76
77$(ROOT4LIB)/%: %
78	$(INS.file)
79
80$(ROOTETC)/%: %
81	$(INS.file)
82
83$(ROOTBIN64)/%: %
84	$(INS.file)
85
86$(ROOTBIN32)/%: %
87	$(INS.file)
88
89# Define the majority text domain in this directory
90TEXT_DOMAIN= SUNW_OST_UCBCMD
91