xref: /titanic_41/usr/src/cmd/lvm/metassist/Makefile (revision ba2e4443695ee6a6f420a35cd4fc3d3346d22932)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29METASSIST_TOPLEVEL = .
30
31PROG = metassist
32
33# Subdirectories with message catalogs
34POSUBDIRS = \
35	common \
36	xml \
37	layout \
38	controller
39
40# For message catalog
41POFILES = $(POSUBDIRS:%=%/%p.po)
42
43# Subdirectories that must be made
44SUBDIRS = \
45	scripts \
46	sysfiles \
47	$(POSUBDIRS)
48
49SUBOBJS = \
50	common/volume_defaults.o \
51	common/volume_devconfig.o \
52	common/volume_dlist.o \
53	common/volume_error.o \
54	common/volume_nvpair.o \
55	common/volume_output.o \
56	common/volume_request.o \
57	common/volume_string.o \
58	xml/xml_convert.o \
59	layout/layout.o \
60	layout/layout_concat.o \
61	layout/layout_device_cache.o \
62	layout/layout_device_util.o \
63	layout/layout_discovery.o \
64	layout/layout_dlist_util.o \
65	layout/layout_hsp.o \
66	layout/layout_messages.o \
67	layout/layout_mirror.o \
68	layout/layout_request.o \
69	layout/layout_slice.o \
70	layout/layout_stripe.o \
71	layout/layout_svm_util.o \
72	layout/layout_validate.o \
73	controller/getopt_ext.o \
74	controller/metassist.o
75
76include $(METASSIST_TOPLEVEL)/../../Makefile.cmd
77include $(METASSIST_TOPLEVEL)/Makefile.env
78
79LDLIBS += -ldiskmgt -lmeta -lnvpair -lxml2 -lxslt -lm
80
81POFILE = metassistp.po
82
83include $(METASSIST_TOPLEVEL)/Makefile.targ
84
85# Build master .po file from subdirs' .po files
86$(POFILE): $(POSUBDIRS) .WAIT $(POFILES)
87	$(BUILDPO.pofiles)
88