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
34 include $(SRC)/Makefile.master
35
36 LN= ln
37 SH= sh
38 CHMOD= chmod
39 MKDIR= mkdir
40 TOUCH= touch
41
42 FILEMODE= 0555
43 LIBFILEMODE= 0444
44 ROOTBIN= $(ROOT)/usr/ucb
45 ROOTLIB= $(ROOT)/usr/ucblib
46 ROOT4LIB= $(ROOT)/usr/4lib
47 ROOTETC= $(ROOT)/etc
48 ROOTSHLIB= $(ROOT)/usr/share/lib
49 ROOTBIN32= $(ROOTBIN)/$(MACH32)
50 ROOTBIN64= $(ROOTBIN)/$(MACH64)
51
52 ROOTPROG= $(PROG:%=$(ROOTBIN)/%)
53 ROOTLIBPROG= $(PROG:%=$(ROOTLIB)/%)
54 ROOT4LIBPROG= $(PROG:%=$(ROOT4LIB)/%)
55 ROOTETCPROG= $(PROG:%=$(ROOTETC)/%)
56 ROOTPROG64= $(PROG:%=$(ROOTBIN64)/%)
57 ROOTPROG32= $(PROG:%=$(ROOTBIN32)/%)
58
59 ISAEXEC= $(ROOT)/usr/lib/isaexec
60
61 # storing LDLIBS in two macros allows reordering of options
62 LDLIBS.cmd = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3)
63 LDLIBS = $(LDLIBS.cmd)
64
65 LDFLAGS.cmd = \
66 $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
67 $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
68
69 LDFLAGS = $(LDFLAGS.cmd)
70
71 $(ROOTBIN)/%: %
72 $(INS.file)
73
74 $(ROOTLIB)/%: %
75 $(INS.file)
76
77 $(ROOT4LIB)/%: %
78 $(INS.file)
79
80 $(ROOTETC)/%: %
|
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 # # Copyright (c) 2018, Joyent, Inc.
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
35 include $(SRC)/Makefile.master
36
37 LN= ln
38 SH= sh
39 CHMOD= chmod
40 MKDIR= mkdir
41 TOUCH= touch
42
43 FILEMODE= 0555
44 LIBFILEMODE= 0444
45 ROOTBIN= $(ROOT)/usr/ucb
46 ROOTLIB= $(ROOT)/usr/ucblib
47 ROOT4LIB= $(ROOT)/usr/4lib
48 ROOTETC= $(ROOT)/etc
49 ROOTSHLIB= $(ROOT)/usr/share/lib
50 ROOTBIN32= $(ROOTBIN)/$(MACH32)
51 ROOTBIN64= $(ROOTBIN)/$(MACH64)
52
53 ROOTPROG= $(PROG:%=$(ROOTBIN)/%)
54 ROOTLIBPROG= $(PROG:%=$(ROOTLIB)/%)
55 ROOT4LIBPROG= $(PROG:%=$(ROOT4LIB)/%)
56 ROOTETCPROG= $(PROG:%=$(ROOTETC)/%)
57 ROOTPROG64= $(PROG:%=$(ROOTBIN64)/%)
58 ROOTPROG32= $(PROG:%=$(ROOTBIN32)/%)
59
60 ISAEXEC= $(ROOT)/usr/lib/isaexec
61
62 # don't lint any of ucbcmd
63 SMATCH=off
64
65 # storing LDLIBS in two macros allows reordering of options
66 LDLIBS.cmd = $(ENVLDLIBS1) $(ENVLDLIBS2) $(ENVLDLIBS3)
67 LDLIBS = $(LDLIBS.cmd)
68
69 LDFLAGS.cmd = \
70 $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
71 $(MAPFILE.NES:%=-M%) $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%)
72
73 LDFLAGS = $(LDFLAGS.cmd)
74
75 $(ROOTBIN)/%: %
76 $(INS.file)
77
78 $(ROOTLIB)/%: %
79 $(INS.file)
80
81 $(ROOT4LIB)/%: %
82 $(INS.file)
83
84 $(ROOTETC)/%: %
|