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 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # ident "%Z%%M% %I% %E% SMI"
26 #
27
28 LIBRARY= libmeta.a
29 VERS= .1
30 COMMON = $(SRC)/common/lvm
31
32 CMN_OBJS = md_crc.o md_convert.o md_revchk.o
33
34 DERIVED_OBJS = \
35 mdiox_xdr.o \
36 meta_basic_xdr.o \
37 metad_clnt.o \
38 metad_xdr.o \
39 metamed_clnt.o \
40 metamed_xdr.o \
41 metamhd_clnt.o \
42 metamhd_xdr.o \
43 mdmn_commd_xdr.o \
44 mhdx_xdr.o
45
46 LOCAL_OBJS= \
143 CLEANFILES += $(DERIVED_SRCS) $(MSGFILES) $(DCFILES)
144
145 .KEEP_STATE:
146
147 BIG_TARGETS = $(OBJECTS64:%=pics/%)
148
149 $(BIG_TARGETS) := CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
150
151 $(LINTLIB) := CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
152
153 all: $(LIBS)
154
155 install debug: all $(ROOTLIBS) $(ROOTLINT) $(ROOTLINKS)
156
157 objs/%.o profs/%.o pics/%.o: $(COMMON)/%.c
158 $(COMPILE.c) -o $@ $<
159 $(POST_PROCESS_O)
160
161 mdiox_xdr.c: $(SRC)/uts/common/sys/lvm/mdiox.x
162 $(RPCGEN) $(RPCGENFLAGS) -c -i 100 $(SRC)/uts/common/sys/lvm/mdiox.x | \
163 nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
164
165 meta_basic_xdr.c: $(SRC)/uts/common/sys/lvm/meta_basic.x
166 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/meta_basic.x | \
167 nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
168
169 metad_clnt.c: $(SRC)/head/metad.x
170 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metad.x -o $@
171
172 metad_xdr.c: $(SRC)/head/metad.x
173 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metad.x -o $@
174
175 metamed_clnt.c: $(SRC)/uts/common/sys/lvm/metamed.x
176 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/uts/common/sys/lvm/metamed.x | \
177 nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
178
179 metamed_xdr.c: $(SRC)/uts/common/sys/lvm/metamed.x
180 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/metamed.x | \
181 nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
182
183 metamhd_clnt.c: $(SRC)/head/metamhd.x
184 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metamhd.x -o $@
185
186 metamhd_xdr.c: $(SRC)/head/metamhd.x
187 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
188
189 mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
190 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
191 nawk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
192
193 mdmn_commd_xdr.c: $(SRC)/uts/common/sys/lvm/mdmn_commd.x
194 $(RPCGEN) -c $(SRC)/uts/common/sys/lvm/mdmn_commd.x -o $@
195
196 $(DCFILE):= XGETFLAGS = -c TRANSLATION_NOTE_LC_TIME -t
197
198 $(DCFILE): $(DCFILES)
199 $(CAT) $(DCFILES) > $(DCFILE)
200
201 $(POFILE): $(MSGFILES)
202 $(BUILDPO.msgfiles)
203
204 _msg: $(MSGDOMAINPOFILE)
205
206 _dc: $(DCMSGDOMAINPOFILE)
207
208 include $(SRC)/lib/lvm/Makefile.targ
209 include $(SRC)/Makefile.msg.targ
|
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 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
26 LIBRARY= libmeta.a
27 VERS= .1
28 COMMON = $(SRC)/common/lvm
29
30 CMN_OBJS = md_crc.o md_convert.o md_revchk.o
31
32 DERIVED_OBJS = \
33 mdiox_xdr.o \
34 meta_basic_xdr.o \
35 metad_clnt.o \
36 metad_xdr.o \
37 metamed_clnt.o \
38 metamed_xdr.o \
39 metamhd_clnt.o \
40 metamhd_xdr.o \
41 mdmn_commd_xdr.o \
42 mhdx_xdr.o
43
44 LOCAL_OBJS= \
141 CLEANFILES += $(DERIVED_SRCS) $(MSGFILES) $(DCFILES)
142
143 .KEEP_STATE:
144
145 BIG_TARGETS = $(OBJECTS64:%=pics/%)
146
147 $(BIG_TARGETS) := CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
148
149 $(LINTLIB) := CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
150
151 all: $(LIBS)
152
153 install debug: all $(ROOTLIBS) $(ROOTLINT) $(ROOTLINKS)
154
155 objs/%.o profs/%.o pics/%.o: $(COMMON)/%.c
156 $(COMPILE.c) -o $@ $<
157 $(POST_PROCESS_O)
158
159 mdiox_xdr.c: $(SRC)/uts/common/sys/lvm/mdiox.x
160 $(RPCGEN) $(RPCGENFLAGS) -c -i 100 $(SRC)/uts/common/sys/lvm/mdiox.x | \
161 /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
162
163 meta_basic_xdr.c: $(SRC)/uts/common/sys/lvm/meta_basic.x
164 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/meta_basic.x | \
165 /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
166
167 metad_clnt.c: $(SRC)/head/metad.x
168 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metad.x -o $@
169
170 metad_xdr.c: $(SRC)/head/metad.x
171 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metad.x -o $@
172
173 metamed_clnt.c: $(SRC)/uts/common/sys/lvm/metamed.x
174 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/uts/common/sys/lvm/metamed.x | \
175 /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
176
177 metamed_xdr.c: $(SRC)/uts/common/sys/lvm/metamed.x
178 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/metamed.x | \
179 /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
180
181 metamhd_clnt.c: $(SRC)/head/metamhd.x
182 $(RPCGEN) $(RPCGENFLAGS) -l $(SRC)/head/metamhd.x -o $@
183
184 metamhd_xdr.c: $(SRC)/head/metamhd.x
185 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/head/metamhd.x -o $@
186
187 mhdx_xdr.c: $(SRC)/uts/common/sys/lvm/mhdx.x
188 $(RPCGEN) $(RPCGENFLAGS) -c $(SRC)/uts/common/sys/lvm/mhdx.x | \
189 /usr/xpg4/bin/awk '{sub(/uts\/common\/sys\/lvm/, "head"); print $$0}' >$@
190
191 mdmn_commd_xdr.c: $(SRC)/uts/common/sys/lvm/mdmn_commd.x
192 $(RPCGEN) -c $(SRC)/uts/common/sys/lvm/mdmn_commd.x -o $@
193
194 $(DCFILE):= XGETFLAGS = -c TRANSLATION_NOTE_LC_TIME -t
195
196 $(DCFILE): $(DCFILES)
197 $(CAT) $(DCFILES) > $(DCFILE)
198
199 $(POFILE): $(MSGFILES)
200 $(BUILDPO.msgfiles)
201
202 _msg: $(MSGDOMAINPOFILE)
203
204 _dc: $(DCMSGDOMAINPOFILE)
205
206 include $(SRC)/lib/lvm/Makefile.targ
207 include $(SRC)/Makefile.msg.targ
|