xref: /titanic_41/usr/src/cmd/lvm/metassist/layout/Makefile (revision cd3e933325e68e23516a196a8fea7f49b1e497c3)
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 (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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28METASSIST_TOPLEVEL = ..
29
30SRCS=	\
31	layout.c \
32	layout_concat.c \
33	layout_device_cache.c \
34	layout_device_util.c \
35	layout_discovery.c \
36	layout_dlist_util.c \
37	layout_hsp.c \
38	layout_messages.c \
39	layout_mirror.c \
40	layout_request.c \
41	layout_slice.c \
42	layout_stripe.c \
43	layout_svm_util.c \
44	layout_validate.c
45
46OBJS = $(SRCS:%.c=%.o)
47HDRS = $(SRCS:%.c=%.h)
48MSGFILES = $(SRCS:%.c=%.i)
49
50include $(METASSIST_TOPLEVEL)/../../Makefile.cmd
51include $(METASSIST_TOPLEVEL)/Makefile.env
52
53INCLUDES += -I../common -I../controller -I../../../../lib/libdiskmgt/common \
54            -I../../../../lib/lvm/libmeta/common/hdrs
55CFLAGS   += $(INCLUDES)
56
57POFILE = layoutp.po
58
59include $(METASSIST_TOPLEVEL)/Makefile.targ
60
61# Build .po file from message files
62$(POFILE): $(MSGFILES)
63	$(BUILDPO.msgfiles)
64
65cstyle:
66	$(CSTYLE) $(CSTYLE_FLAGS) $(SRCS) $(HDRS)
67
68hdrchk:
69	$(HDRCHK) $(HDRCHK_FLAGS) $(HDRS)
70