Print this page
XXX Remove nawk(1)
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/lvm/libmeta/Makefile.com
+++ new/usr/src/lib/lvm/libmeta/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 -# ident "%Z%%M% %I% %E% SMI"
26 -#
27 25
28 26 LIBRARY= libmeta.a
29 27 VERS= .1
30 28 COMMON = $(SRC)/common/lvm
31 29
32 30 CMN_OBJS = md_crc.o md_convert.o md_revchk.o
33 31
34 32 DERIVED_OBJS = \
35 33 mdiox_xdr.o \
36 34 meta_basic_xdr.o \
37 35 metad_clnt.o \
38 36 metad_xdr.o \
39 37 metamed_clnt.o \
40 38 metamed_xdr.o \
41 39 metamhd_clnt.o \
42 40 metamhd_xdr.o \
43 41 mdmn_commd_xdr.o \
44 42 mhdx_xdr.o
45 43
46 44 LOCAL_OBJS= \
47 45 metad_svc_stubs.o \
48 46 meta_admin.o \
49 47 meta_attach.o \
50 48 meta_db.o \
51 49 meta_db_balance.o \
52 50 meta_devadm.o \
53 51 meta_devstamp.o \
54 52 meta_error.o \
55 53 meta_getdevs.o \
56 54 meta_hotspares.o \
57 55 meta_import.o \
58 56 meta_init.o \
59 57 meta_lib_prv.o \
60 58 meta_mdcf.o \
61 59 meta_med_err.o \
62 60 meta_mem.o \
63 61 meta_metad.o \
64 62 meta_metad_subr.o \
65 63 meta_med.o \
66 64 meta_mh.o \
67 65 meta_mirror.o \
68 66 meta_mirror_resync.o \
69 67 meta_mn_comm.o \
70 68 meta_mn_changelog.o \
71 69 meta_mn_handlers.o \
72 70 meta_mn_msg_table.o \
73 71 meta_mn_subr.o \
74 72 meta_mount.o \
75 73 meta_name.o \
76 74 meta_nameinfo.o \
77 75 meta_namespace.o \
78 76 meta_notify.o \
79 77 meta_se_notify.o \
80 78 meta_patch.o \
81 79 meta_patch_root.o \
82 80 meta_print.o \
83 81 meta_raid.o \
84 82 meta_raid_resync.o \
85 83 meta_rename.o \
86 84 meta_repartition.o \
87 85 meta_replace.o \
88 86 meta_reset.o \
89 87 meta_resync.o \
90 88 meta_runtime.o \
91 89 meta_set.o \
92 90 meta_set_drv.o \
93 91 meta_set_hst.o \
94 92 meta_set_med.o \
95 93 meta_set_prv.o \
96 94 meta_set_tkr.o \
97 95 meta_setup.o \
98 96 meta_smf.o \
99 97 meta_stat.o \
100 98 meta_statconcise.o \
101 99 meta_sp.o \
102 100 meta_stripe.o \
103 101 meta_systemfile.o \
104 102 meta_tab.o \
105 103 meta_time.o \
106 104 meta_trans.o \
107 105 meta_userflags.o \
108 106 metarpcopen.o \
109 107 metasplitname.o \
110 108 metagetroot.o \
111 109 sdssc_bind.o
112 110
113 111 SPC_OBJS= meta_check.o
114 112
115 113 CMN_SRCS = $(CMN_OBJS:%.o=$(COMMON)/%.c)
116 114 LOCAL_SRCS = $(LOCAL_OBJS:%.o=../common/%.c)
117 115 DERIVED_SRCS = $(DERIVED_OBJS:%.o=%.c)
118 116 SPC_SRCS = $(SPC_OBJS:%.o=../common/%.c)
119 117
120 118 OBJECTS64 = $(LOCAL_OBJS) $(DERIVED_OBJS) $(CMN_OBJS)
121 119 OBJECTS = $(OBJECTS64) $(SPC_OBJS)
122 120
123 121 include $(SRC)/lib/lvm/Makefile.lvm
124 122
125 123 MSGSRCS = $(LOCAL_SRCS) $(SPC_SRCS)
126 124 MSGFILES = $(MSGSRCS:%.c=%.i)
127 125 POFILE = libmeta.po
128 126
129 127 DCFILES = ../common/meta_print.po
130 128 DCFILE = libmeta.dc
131 129
132 130 CLOBBERFILES += $(POFILE) $(DCFILE)
133 131
134 132 # install this library in the root filesystem
135 133 include ../../../Makefile.rootfs
136 134
137 135 LIBS = $(DYNLIB) $(LINTLIB)
138 136 SRCS = $(CMN_SRCS) $(LOCAL_SRCS) $(DERIVED_SRCS)
139 137 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
140 138 lint := SRCS = $(CMN_SRCS) $(LOCAL_SRCS) $(SPC_SRCS)
141 139 CPPFLAGS += -I$(SRC)/lib/lvm/libmeta/common/hdrs
142 140 LDLIBS += -lnsl -lc -ladm -ldevid -lgen -lefi -ldevinfo -lscf
143 141 CLEANFILES += $(DERIVED_SRCS) $(MSGFILES) $(DCFILES)
144 142
145 143 .KEEP_STATE:
146 144
147 145 BIG_TARGETS = $(OBJECTS64:%=pics/%)
148 146
149 147 $(BIG_TARGETS) := CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
150 148
151 149 $(LINTLIB) := CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
152 150
↓ open down ↓ |
116 lines elided |
↑ open up ↑ |
153 151 all: $(LIBS)
154 152
155 153 install debug: all $(ROOTLIBS) $(ROOTLINT) $(ROOTLINKS)
156 154
157 155 objs/%.o profs/%.o pics/%.o: $(COMMON)/%.c
158 156 $(COMPILE.c) -o $@ $<
159 157 $(POST_PROCESS_O)
160 158
161 159 mdiox_xdr.c: $(SRC)/uts/common/sys/lvm/mdiox.x
162 160 $(RPCGEN) $(RPCGENFLAGS) -c -i 100 $(SRC)/uts/common/sys/lvm/mdiox.x | \
163 - nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
161 + /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
164 162
165 163 meta_basic_xdr.c: $(SRC)/uts/common/sys/lvm/meta_basic.x
166 164 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/meta_basic.x | \
167 - nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
165 + /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
168 166
169 167 metad_clnt.c: $(SRC)/head/metad.x
170 168 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metad.x -o $@
171 169
172 170 metad_xdr.c: $(SRC)/head/metad.x
173 171 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metad.x -o $@
174 172
175 173 metamed_clnt.c: $(SRC)/uts/common/sys/lvm/metamed.x
176 174 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/uts/common/sys/lvm/metamed.x | \
177 - nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
175 + /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
178 176
179 177 metamed_xdr.c: $(SRC)/uts/common/sys/lvm/metamed.x
180 178 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/metamed.x | \
181 - nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
179 + /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
182 180
183 181 metamhd_clnt.c: $(SRC)/head/metamhd.x
184 182 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metamhd.x -o $@
185 183
186 184 metamhd_xdr.c: $(SRC)/head/metamhd.x
187 185 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
188 186
189 187 mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
190 188 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
191 - nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
189 + /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
192 190
193 191 mdmn_commd_xdr.c: $(SRC)/uts/common/sys/lvm/mdmn_commd.x
194 192 $(RPCGEN) -c $(SRC)/uts/common/sys/lvm/mdmn_commd.x -o $@
195 193
196 194 $(DCFILE):= XGETFLAGS = -c TRANSLATION_NOTE_LC_TIME -t
197 195
198 196 $(DCFILE): $(DCFILES)
199 197 $(CAT) $(DCFILES) > $(DCFILE)
200 198
201 199 $(POFILE): $(MSGFILES)
202 200 $(BUILDPO.msgfiles)
203 201
204 202 _msg: $(MSGDOMAINPOFILE)
205 203
206 204 _dc: $(DCMSGDOMAINPOFILE)
207 205
208 206 include $(SRC)/lib/lvm/Makefile.targ
209 207 include $(SRC)/Makefile.msg.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX