Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
2817aa56ca12139849ba1017ff978833174f6294Evan Hunt#
2817aa56ca12139849ba1017ff978833174f6294Evan Hunt# CDDL HEADER START
2817aa56ca12139849ba1017ff978833174f6294Evan Hunt#
2817aa56ca12139849ba1017ff978833174f6294Evan Hunt# The contents of this file are subject to the terms of the
22e3e00ac95ec1ba89200c5d0e05670ed5ad8fefMark Andrews# Common Development and Distribution License, Version 1.0 only
22e3e00ac95ec1ba89200c5d0e05670ed5ad8fefMark Andrews# (the "License"). You may not use this file except in compliance
22e3e00ac95ec1ba89200c5d0e05670ed5ad8fefMark Andrews# with the License.
ff62d4458acda2110a3763ec576a4f728450662cEvan Hunt#
ff62d4458acda2110a3763ec576a4f728450662cEvan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ff62d4458acda2110a3763ec576a4f728450662cEvan Hunt# or http://www.opensolaris.org/os/licensing.
ff62d4458acda2110a3763ec576a4f728450662cEvan Hunt# See the License for the specific language governing permissions
761d135ed686601f36fe3d0d4aaa6bf41287bb0fEvan Hunt# and limitations under the License.
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Hunt#
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Hunt# When distributing Covered Code, include this CDDL HEADER in each
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Hunt# If applicable, add the following below this CDDL HEADER, with the
b88b75c2b88618f9c885c61e1ab0bd1cddd4474eEvan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
761d135ed686601f36fe3d0d4aaa6bf41287bb0fEvan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt#
11463c0ac24692e229ec87f307f5e7df3c0a7e10Evan Hunt# CDDL HEADER END
cc0a48a38173637f7a833e2da52bcfbcecb960b4Mark Andrews#
cc0a48a38173637f7a833e2da52bcfbcecb960b4Mark Andrews#
cc0a48a38173637f7a833e2da52bcfbcecb960b4Mark Andrews# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
cc0a48a38173637f7a833e2da52bcfbcecb960b4Mark Andrews# Use is subject to license terms.
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark Andrews#
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark Andrews# ident "%Z%%M% %I% %E% SMI"
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark Andrews#
f8eb4e5bfd1129d7639af5c2c768f53f0895952aMark Andrews
b05a50c852608a40d1a06d6124bafb9b500c10c1Mukund SivaramanMETASSIST_TOPLEVEL = .
b05a50c852608a40d1a06d6124bafb9b500c10c1Mukund Sivaraman
b05a50c852608a40d1a06d6124bafb9b500c10c1Mukund SivaramanPROG = metassist
f91c369b4ac84fad07e3106c5c00a15d87250d1eMukund Sivaraman
f91c369b4ac84fad07e3106c5c00a15d87250d1eMukund Sivaraman# Subdirectories with message catalogs
f91c369b4ac84fad07e3106c5c00a15d87250d1eMukund SivaramanPOSUBDIRS = \
f91c369b4ac84fad07e3106c5c00a15d87250d1eMukund Sivaraman common \
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman xml \
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman layout \
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman controller
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# For message catalog
f4dda9cf28f8be880097ee931b3237e09731a28aMark AndrewsPOFILES = $(POSUBDIRS:%=%/%p.po)
f4dda9cf28f8be880097ee931b3237e09731a28aMark Andrews
f4dda9cf28f8be880097ee931b3237e09731a28aMark Andrews# Subdirectories that must be made
79521569952d5e2475f05e4397dc976f4685056eMark AndrewsSUBDIRS = \
79521569952d5e2475f05e4397dc976f4685056eMark Andrews scripts \
79521569952d5e2475f05e4397dc976f4685056eMark Andrews sysfiles \
79521569952d5e2475f05e4397dc976f4685056eMark Andrews $(POSUBDIRS)
d1f1f13c7fc1f1515930053508f1645cfafaa478Mark Andrews
d1f1f13c7fc1f1515930053508f1645cfafaa478Mark AndrewsSUBOBJS = \
d1f1f13c7fc1f1515930053508f1645cfafaa478Mark Andrews common/volume_defaults.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_devconfig.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_dlist.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_error.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_nvpair.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_output.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_request.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt common/volume_string.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt xml/xml_convert.o \
74eb2f5cbc98d9646bcd13ffcb17688f0db5ab8dEvan Hunt layout/layout.o \
b0c18fffd3c81d3cb617dbba4d222d49ae266f28Mark Andrews layout/layout_concat.o \
b0c18fffd3c81d3cb617dbba4d222d49ae266f28Mark Andrews layout/layout_device_cache.o \
b0c18fffd3c81d3cb617dbba4d222d49ae266f28Mark Andrews layout/layout_device_util.o \
b0c18fffd3c81d3cb617dbba4d222d49ae266f28Mark Andrews layout/layout_discovery.o \
511ec77fca2e2df66b36f4756fd2459cfe7998d9Mark Andrews layout/layout_dlist_util.o \
511ec77fca2e2df66b36f4756fd2459cfe7998d9Mark Andrews layout/layout_hsp.o \
44032d3918d4aeb2f0cff3bb90e4a44569016559Mark Andrews layout/layout_messages.o \
44032d3918d4aeb2f0cff3bb90e4a44569016559Mark Andrews layout/layout_mirror.o \
d8f2dd46cba3a16c2433e85657a5b15543013ca6Mark Andrews layout/layout_request.o \
d8f2dd46cba3a16c2433e85657a5b15543013ca6Mark Andrews layout/layout_slice.o \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews layout/layout_stripe.o \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews layout/layout_svm_util.o \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews layout/layout_validate.o \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews controller/getopt_ext.o \
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews controller/metassist.o
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrewsinclude $(METASSIST_TOPLEVEL)/../../Makefile.cmd
3bdcd91c456adec12ee9f69cfe6b0f79174f78c4Evan Huntinclude $(METASSIST_TOPLEVEL)/Makefile.env
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark AndrewsLDLIBS += -ldiskmgt -lmeta -lnvpair -lxml2 -lxslt -lm
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark AndrewsPOFILE = metassistp.po
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrewsinclude $(METASSIST_TOPLEVEL)/Makefile.targ
1e0ed0c6f5c359df88767e2c4f0fda24f2da0468Mark Andrews
47d837a49967a6a1b290024f5efb0669276013b1Mukund Sivaraman# Build master .po file from subdirs' .po files
47d837a49967a6a1b290024f5efb0669276013b1Mukund Sivaraman$(POFILE): $(POSUBDIRS) .WAIT $(POFILES)
47d837a49967a6a1b290024f5efb0669276013b1Mukund Sivaraman $(BUILDPO.pofiles)
47d837a49967a6a1b290024f5efb0669276013b1Mukund Sivaraman